Holy shit, why did I not know about bag!? That object would have saved me alot of time …

Thank you :D

--------
Dan Wilcox
@danomatika





On Nov 12, 2014, at 11:08 PM, pd-list-request@lists.iem.at wrote:

From: Simon Wise <simonzwise@gmail.com>
Date: November 12, 2014 at 10:02:39 PM EST
Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?


On 13/11/14 10:29, JC Pedroza wrote:
But how can poly be used to solve this problem? Can someone provide an
example? You are the second person that suggests its use but I can't for the
life of me figure out why. A note-velocity pair comes in, a
voicenumber-pitch-velocity triple comes out. That's all it does, right? What
am I missing?

It keeps a list internally ... doing the required housekeeping re on off etc, but it cannot be queried for the contents ... [bag] is what you need

see patch ... this one works even if you use multiple notes of the same value, while Patrice's patch deletes too much when there are multiples.


Simon