remove element in list
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"
also it might be worth looking at [borax] and see if that fits your needs better than using zl
If it doesn't have to be a list, it's fairly easy to achieve this using Borax and coll.
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.
how do i make it so this patch can take flonums? I cannot figure it out
coll is great in inserting and deleting single items from a list.
Thanks! It's only 6 years later.
Here is @RAYTRACER patch using matrixcntrl to easily build any one octave scale or set of notes.
I'm playing notes random. Would be great to see other ways of playing this. For example: alternate between 2 pitches, step through pitches, play 1 pitch once then the second pitch twice... etc
I see in first place massive simplification of that patch...
makes it responsive to dynamic root/scale/octave shift changes

@SOURCE AUDIO. Fantastic! Thank You!.
I have a lot of cases where my solutions are to awkwardly write everything out.
Also, been thinking for a while the difference between 12 note chromatic and 13 note scale with the extra octave. I think because I build everything from the bass upwards, I like for that upper octave to be available sometimes.
you are welcome, it is easier to continue with new ideas
when constructs are reduced to bare minimum and efficient.
now you just take it further and add to zl.scramble all that ideas, sorting, picking few items from the list randomly and togging between them, etc