Checking note-offs in a list of note-ons and note-offs

Jan 5, 2010 at 11:06pm

Checking note-offs in a list of note-ons and note-offs

I have a list of note-ons and note-offs represented as symbols: (“60 100″ “65 127″ “65 0″ “61 99″ “65 0″).

From this list I need to know wich note-ons in this list (notes with a velocity value higher then 0) did not receive a corresponding note-off (a note with a velocity value of 0). Those note-ons should be placed at the very end of this list in the order they occur in the first list.

Can’t figure out how to make a system to do this nice and efficient, the system would also have to be capable of doing this within 10 milliseconds.

Any suggestions?

#47589
Jan 5, 2010 at 11:43pm

I’d probably look to [bag] which is pretty handy in situations like this.

lh

– Pasted Max Patch, click to expand. –
#171160
Jan 5, 2010 at 11:45pm

Borax may help in cobbling together a system like this.

#171161
Jan 6, 2010 at 9:56pm

Thanks for the suggestions but I’m not there yet.

The first suggestion would be precisely what I need if it would output exactly the same list as inputted with the “cancelled” values removed.

I’m still trying to find a other solutions.

#171162
Feb 9, 2010 at 2:47pm

This sounds a bit like standard poly stuff, maybe this is helpful:

– Pasted Max Patch, click to expand. –
#171163

You must be logged in to reply to this topic.