store held notes and trigger on bang

teeshirtguy5's icon

is there a simpler way than using a coll to hold all currently sustained notes in a list and bang them when a bang is received?

trying to make a simple chord trigger arp thing where all the currently sustained notes are held in a list and then sent out to midi out when a bang is recieved

thanks

Roman Thilenius's icon

you can also use zl, but i think coll is perfect because it already comes with all the commands for insertion and deletion of new list members already.

if you dont like to bang (dump?) coll in realtime, you could make it update a zl reg always after a change and trigger the chords from there.

teeshirtguy5's icon

great, thanks roman

seems to do the trick was just interested to see if there was a shorter way

Christopher Dobrian's icon

If all you need is to grab the pitches, you might like bag.

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