[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microsound] ***new microsound project -- RNDTXT***



Assuming this project is still going on, but I seemed to have missed 5 digest 
messages (anybody else had this problem?), and the RNDTXT dropbox seemed
quite bare. I have uploaded the first 3 pictures generated for the RNDTXT project.

Here is a little description of how the images were produced.

I wrote a simple ADA program (chose ADA, as I have been an ADA programmer for 
13 years, and thought it would be quicker).

The program reads the RNDTXT file character by character and converts them
to simple vector drawing commands, for a drawing package that I use at work.

The program reads each character on a word basis, and uses a random function to
decide whether the character ASCII code should be converted to a POSITION command 
or a VECTOR command. 

If a POSITION command is chosen then the first character is used as the X 
coordinate, and the next character as Y coordinate.  Following a completed 
POSITION command a new random command is chosen. If a VECTOR command is chosen
then the rest of the characters in the word are also translated into VECTOR commands
 
So a single word could generate a number of POSITION commands, a POSITION Command 
and a number of VECTOR commands or all VECTOR commands.

When a VECTOR command is chosen the first character is converted into an angle,
the second translated into a line length. Another random function is used to 
determine whether the Angle is Clockwise or Counter-clockwise. 

I then ran chunks of the generated commands through my Vector Drawing program at work, and 
produced the images, that have been uploaded.


regards

Paul