Midi Map Pads to Different Preset States In Granulator

isaacfox's icon

Hello,
I set up a pattrstorage system to cycle through different sounds in Granulator. The intention is to have all the good sounding articulations of a sample be accessible, like a chopped sample, but with the flexibility of Granulator. My question is; how can I map each state to my drum pads? Without using a knob or slider to cycle through, because I'd like to completly switch from state to state.
Thank you,
Isaac

bkshepard's icon

I'm assuming the pads transmit MIDI note numbers for each specific pad. In that case, assign a specific note number for each preset and use the notein object to get the incoming note number. If you are getting two quick note messages (note on and note off), use the stripnote object to remove the note off messages. That should do the trick.

isaacfox's icon

Thank you! Much appreciated will try that out

isaacfox's icon

I connected a notein object to the preset object, I am confused about how to assign specific note numbers. Do you mean in Live or Max patcher window?
Thank you

bkshepard's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I'm talking about in the Max patcher. The simplest way would be to use a select object for the various MIDI note numbers you want to use. Then, you will get a bang each time that number is received. Use the bang to trigger the preset events you want to happen.

bkshepard's icon

I just re-read your original post and saw that you are using pattrstorage. In that case, you could probably just use a subtraction object on the note number to lower it to the values of your store presets. If the pads output note numbers sequentially (i.e. 48, 49, 50, 51, 52, etc.), you could just subtract 47 from each of the note numbers to get values 1, 2, 3, 4, 5, etc.