changing momentary buttons on a Nanokontrol to latch

outoftheaircrash's icon

Does anyone know how to convert a temporary midi bang to a 'latch'?

I've got a Nanokontrol, and all the buttons are temp rather than latches. So when I'm trying to assign one to a toggle, it is only 'active' of course, while the button on the nano is depressed..

(i.e. it's sending out 127 when it's pressed, and 0 when it's not..)

I just need something that will make it ignore the 0, and not unclick the max button until the next 127 message is sent.. I tried 'select', but as soon as it stops sending the 127 message, the box unselects..

Anyone got any ideas?

Kris

Tim Lloyd's icon

I had a similar issue trying to use a sustain pedal as an on/off switch.

Check out change, togedge and trigger

outoftheaircrash's icon

Correction..

With the 'select 127' object in there, the box is checked, and only UNCHECKS when the button is pressed on the Kontrol.. If that makes sense.

outoftheaircrash's icon

freakin brilliant.. fixed it

legend!

Luke Hall's icon

So the [sel 127] method in the patch below doesn't work for you?

lh

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

Tim Lloyd's icon

I was going to suggest this, in case your interested:

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

outoftheaircrash's icon

i ended up doing this with togedge..

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

it was weird, the select object wasn't making it latch, but thereishopeforus, in your patched it WAS.. Hmmmm...!

outoftheaircrash's icon

actually.. another question with this patch..

When I send in two commands at once, i.e. pushing up two faders at once, only one works.. Is thre an easy way to enable multiple data streams? check out the patch below..

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

antialias's icon

try this with midi in replacing ctl in:

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

outoftheaircrash's icon

GENIUS.

Thank you SO MUCH. Man. Every time I use Max/learn something new via this awesome forum I love it more and more. Most fun program EVER.

maaaxit's icon

You can change the button behavior from "momentary" to "toggle" (I mean in the Editor of nanoKontrol), and then use only a toggle in max.
But if you need change the scene, maybe it's better the solution above, because nanoKontrol doesn't recall the state of the toggle if you change scene.

outoftheaircrash's icon

yeah i did think of that.. but the problem was that i use the controller in other apps as well, and wanted to avoid having to go and change all the mapping i'd already set up. For the moment anyway.. It's working awesomely now though.