Forums > MaxMSP

remove element in list


May 17 2012 | 9:21 pm

Hello.

I dont know how to solve this. I have tryed zl filter but it seams not to be what i want.

I want to store all note on messages in a list, and when the note off comes in, i want them removed from the very same list.

With other words… i want the opposite to "append $1"

May 17 2012 | 10:28 pm

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

May 17 2012 | 11:57 pm

also it might be worth looking at [borax] and see if that fits your needs better than using zl

May 18 2012 | 2:44 am

If it doesn’t have to be a list, it’s fairly easy to achieve this using Borax and coll.

Dec 11 2016 | 2:37 am

I had the same requirement as the OP.

The patch below is for a "stack" object. Items are added to the top of the stack. Items can be removed from anywhere in the stack. The object outputs the top most value any time the top most item changes. No duplicates are allowed in the stack. If a duplicate is already in the stack, it’s moved to the top of the stack.

The object is designed for keeping track of the last held MIDI note when playing monophonic synth lines. When the most recent note is released, the pitch will jump back to last key that was pressed and is still being held down.


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

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

Forums > MaxMSP