I’m doing a sampler for my SC introductory course. The specific thing about it is that every note on the keyboard (88 notes needed) has a designated sound and is supposed to have variations coming randomly with each notepress of that sound. So what I have is 88 buffers with 5 sounds (recorded words, actually) in them each, so every time I for example press the C4 note on a keyboard, some random variation of that word will sound, choosing one the 5 of that specific buffer.
While I’m able to make it work like this…
arg vel, note, chan, src;
Synth(\sampleRandom, [\buf, ~buffers1.choose]);
…This MIDIdef gets triggered no matter what note I press. I just can’t figure out a easy way to make it work so that C4 triggers ~buffers1, and C#4 triggers ~buffers2, etc.
Is it something I have to specify here already?
~buffers1 = SoundFile.collectIntoBuffers("/Users/blabla/Desktop/Sounds/Buffer1sounds/*");