Two Simultaneous Random Melodies:
To create this a bang is needed, when pressed it creates a number between 0 and 800. This randomly generated number is then increased by 200 by running it into an object with the code +200.
The next number box contains the result of the random output with the 200 added, this is then run into the oscillator (which has a tilde after its name to signify output) to produce the sound.
This chain is copied so to produce two random melodies simultaneously.
The final object before routing it all out divides the signal by 0.5
A Quarter Tone Scale:
This sequence starts off with a toggle, a toggle is a switch triggered by a click that can be either on or off, to the computer that is 1 or 0. This is routed into a metronome which acts to set off a series of bangs at a set tempo. The tempo here is set at 700 which translates to 0.7 of a second.
The metronome is then routed into the left input of a float, a float being a way of storing numbers, this is then sent to an object that adds 0.5 to what has been input. Meanwhile the right input to the float is supplied by a message box, the number contained is sent on by a click, to avoid having to click a bang is sent as the patch is opened by having an object containing 'loadbang' routing to the message box.
The result of the float plus modifier is routed back to the original toggle. A parameter is set using the command 'sel' which only produces an output (a bang) when the input equals a certain value, in this case 72.
Before going to the oscillator the signal is run through an mtof object to convert MIDI numbers into frequencies.
Intervals Using Two Bangs:
The first bang routes to two message boxes containing 400 and 600 respectively (the numbers translate to frequencies), these then go into seperate oscillators and are combined at the end to produce one sound. When the second bang is clicked the signal is triggered to run through another two message boxes containing 600 and 700, the sound produced differs from that of the first bang, this difference is an interval.
Glissando Linear
The process for this patch is started with a bang, another bang is triggered at intervals of half a second by a metronome the output of which generates a new random number at these intervals. The 'line' object is the key to the glissando as it allows ramping in between the randomly generated pitches, giving it the glissando effect.
Linear Logarithmic
The two chains in this patch start with message boxes which, when clicked, send the data into a a line which has the effect of ramping the pitches. To output the signal the result is routed to an oscillator, the linear one however has an object to convert midi to frequency.





No comments:
Post a Comment