Notein velocity toggle

Qbrick's icon

Hi!

I'm having trouble figuring out how I can get the velocity 0-127 to act as a toggle for each key on my midi pad.

This is what I thought would do it (code below) but it doesn't work because it misses an if statement or something similar. I want to have it so that when I press a key = 1 that the velocity goes thru a select 127 to activate or disactivate a toggle. And when I press key = 3 and so on. But the velocity of key 3 should not inflict with the toggle of key 1.

Max Patch
Copy patch and select New From Clipboard in Max.

Bill 2's icon

Hi LFT, in case you haven't solved this yet...

If I understand what you're wanting to do, i.e. use each note-press from your midi pad to toggle something on or off, you can separate each pad by the pitch it sends using a route object, not by the pad number. And the part after your receive objects can be simpler:

Max Patch
Copy patch and select New From Clipboard in Max.

If I misunderstood you, please ignore. ;-)

Qbrick's icon

Wow just adding the pack with the route, I've should've seen that one, afterall I did the same with ctlin for my faders...

Anyways major thank you!!