Forums > MaxMSP

Help on midi keyboard triggering its own assigned bang

Jan 02 2011 | 10:07 pm

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

cheers, andy

Jan 02 2011 | 10:16 pm

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.

Jan 02 2011 | 10:20 pm

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

Jan 02 2011 | 10:28 pm

Here’s an octave’s worth:

-- Pasted Max Patch, click to expand. --

Jan 02 2011 | 10:32 pm

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].


Jan 02 2011 | 10:40 pm

great stuff, thanks mate :)

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP