[PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
IOhannes m zmölnig
zmoelnig at iem.at
Wed Nov 12 19:38:40 CET 2014
On 11/11/2014 01:53 PM, 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.
>
> 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?
use [poly] instead?
it seems that it does exactly what you are trying to do.
gdmsr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141112/b47cb038/attachment-0001.sig>
More information about the Pd-list
mailing list