Help on midi keyboard triggering its own assigned bang

musicgandhi's icon

Is there an object or method that allows each key on my midi keyboard to trigger its own assigned bang?

cheers, andy

brendan mccloskey's icon

Hi Andy
not too clear what you need, but if you use the [key] object to identify keyboard presses, use the [select] or [route] objects to pass the ASCII values to independent bangs.......is this what you want? For example [key]->[select 32]->[bang] will trigger only when you hit the spacebar.
Brendan

musicgandhi's icon

sorry it wasn't so clear. i mean a midi keyboard

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

Here's an octave's worth:

brendan mccloskey's icon

Maybe I should have read your original post a little slower - oops my bad.

Use [select] in the same way; connect a [number] object to the right(?) outlet of [midiin] to see the midi note numbers; then set these as arguments to [select], eg [select 64 66 68 69 71 73 75 76].

Brendan

musicgandhi's icon

great stuff, thanks mate :)