Could anyone give me an example of how to select between a list of different patterns using the 'select' function. I don't understand the documentation well enough.
Ideally, I would like to have a list of pre-written drum patterns, and to be able to switch which pattern is playing by changing one simple value, such as an integer.
in the first argument you specify a value between 0 and 1, the second argument will be a list of your patterns. Say you have two patterns in that list, then all values from 0 to 0.5 will result in the first pattern in the list and all values greater will result in the second pattern in the list.
This generalizes to a list of n patterns and the fractions 1/n, 2/n, ... , n/n.
Can anyone think of a way to use the select function to choose between different stacks?
I can choose between layered patterns like this. But it would be really nice to have to the flexibility of working within a stack, not to mention that it's much cleaner.
Is there any way to randomise the select function?
I would like the select function to pick a random pattern from a list of patterns, every 8 bars, but every way i've tried to do this so far has failed.
I was gonna propose something convoluted using scramble and outside, but then I realized that randcat existed and that this seems to do what you're looking for:
Thanks Yaxu, segment certainly makes things much easier.
I am now trying to create a series of let statements describing patterns. I would like 'select' to pick the patterns at random every few bars. But the patterns in each variable should always be laid over each other according to the order they appear in the list.
Rand allows me to achieve this within a single patch, as the random stream is the same for each channel. But I can't get it to work as a series of let statements. Can anybody work out why, and how I might write this so it works?
Thank you very much for your reply, but I'm not sure I can use this in the context I need it. I'm using the numbers to multiple sequence patterns in the same stack, using fit.