On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list