I’m working on writing generator functions to help me compose music. I’ve recently written a polyrhythm generator that generates a thread for each subrythm, using duration and sleep with some math to keep timing proportional. It takes two arguments; an array for polyrhythms, and an integer for # of iterations. It’s just triggering the same sample for each rhythm.
I’m thinking instead of having a sample trigger, I could generate cues in each thread, have the function return an array of cue names, and then write another function to handle voicing/sampling that uses the array to prompt user input, or take a predefined selection of samples. I was thinking I’d like sampling/voicing to be independent from the rhythm; that way I’d have the ability, to say, alternate between a snare and a kick for one rhythm, and keep another rhythm voiced to just a hi hat.
I’m wondering if maybe there’s a better way to do this, or if this would even be possible with cues – I haven’t really touched cues yet, but I was reading the tutorial last night and scavenging for ideas on github. Any ideas or suggestions are welcome!