Device Details

Device Overview

Name/Version: MIDI Note Latch 1.0
Author: noach  
Description: Holds note(s) on until the same note(s) are pressed again, effectively making a note into a toggle rather than a momentary switch. Latch is different from sustain, in that the on/off values of notes can be controlled individually. The patch demonstrates the use of midiselect and midiformat, stripnote, flush, pack and unpack, table, send and receive.

Two issues remain, for which I'd appreciate any help or comments: how to control presentation/patcher layers so that not everything is shown in the Live window, as now; and how to encapsulate the device so that it can be instanced on more than one track at a time.

Device Details

Downloads: 1729
Tags effect
Live Version Used: 8.1
Max Version Used:
Date Added: Dec 02 2009 01:27:16
Date Last Updated: Dec 02 2009 01:28:53
Average Rating (1) 5
Rate this device: (must be logged in to rate devices login)
Device Type: midi_device
URL (optional):
License (more info): None

Device Files

Device File: note latch.amxd


Hi Noach,

To change it so that you only have the things you want in the device window, add those specific things to "presentation mode" in max, and under "patcher inspector" turn on the option to "open in presentation mode" by default.

To change it so that you can have multiple instances, change your send / receive objects to this format [s ---Pitch], [s ---SetTable] and [r ---Pitch], [r ---SetTable] and so on. That will make those routing paths unique for each instance.

Thanks synnack.

Is there an RSS feed for this site?


This doesn't seem to work at all for me. I noticed that this was uploaded in December. Perhaps the new version of Live (and hence maxforlive) breaks it?

I've been looking for this exact functionality, and I'd really like to use this.

Any help?

Never mind, got it fixed. Works as advertised!

Thanks, just what I need right now to get some oddly-programmed old midi footpedals on to my side!

this is so awesome. thanks so much!

This is useful, thanks! How could I change this to automatically turn off the previously latched note when I press the new one?

I have 16 drum loops (4 bars each) set up in a drum rack. Your patch lets me latch each loop effortlessly.

Except I have to remember which key I'm looping every time I launch a new loop, and UN-latch it.. getting the timing just right for the on/off switching is tricky.

How can I have each incoming midi note clear the previous latch automatically? Any assistance or advice would be appreciated.. I don't program m4L yet.. :)


about your questions :
to make a "s" and "r" local to a patcher, just prefix the name with "---" like so r ---Velocity
about opening in presentation mode, right click the background of your patch, select "patch inspector" and then activate "open in presentation". (how intuitive !)



Hi Noach
Great device, specially that it looks like the only one existing that can do what it does.
Is there any plan to fix the apparence ?

Login to comment on this device.

[ browse device library ]