<div dir="ltr">Probably i didn't explain it correctly.<div>Bag does store all the notes on so when receive [ flush ( it sends out all the notes of.</div><div>I.e when the sustain pedal is on and three [ 64 127 ( in a row are received no [ 64 0 ( are sent out before the new [ 64 127 ( arrives but they are sent out all together only when sustain turns off.</div><div>This is conceptually the same way as [poly] works with voice allocation so that repeated notes with the same MIDI note number are treated without a specific system. So probably solving those voice allocation things with an array of 128 values (one for each possible midi note) is the only way to model the piano behavior with polyphony and the sustain pedal.</div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><a href="https://elgallorojorecords.bandcamp.com/" target="_blank">www.elgallorojorecords.bandcamp.com/</a><br><div><a href="http://soundcloud.com/alfonsosantimone" target="_blank">soundcloud.com/alfonsosantimone</a></div><div><a href="http://www.facebook.com/alfonsosantimone" target="_blank">www.facebook.com/alfonsosantimone</a><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 7, 2021 at 1:01 PM Peter P. <<a href="mailto:peterparker@fastmail.com">peterparker@fastmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* alfonso santimone <<a href="mailto:alfonso.santimone@gmail.com" target="_blank">alfonso.santimone@gmail.com</a>> [2021-01-07 12:53]:<br>
> Sebastian's one is surely a more compact solution and probably more<br>
> efficient. But it doesn't deal with repeated notes, better said repeated<br>
> MIDI notes with the same MIDI note number, as the Hans' one does.<br>
> best<br>
Are you sure? Sebastian's solution is the one with [bag]? Without<br>
checking myself I thought that [bag] can deal with multiple copies of<br>
the same number being stored. And trying its helpfile shows it is so.<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>