madamdata's code
Hymn #15 - generative melody by array rewriting
19 Apr'16 20:22
This composition uses a task to read an array of durations and pitches. Every certain number of cycles, the functions scrambRand and octRand are called. scrambRand reverses a random sub-segment of the array. octRand randomly transposes a note up or down an octave. Every so often, all pitches are transposed according to the transp array. Two instances of this process are run simultaneously, one left and one right.