<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Not a direct answer to your question, but I've proposed a few
additional features for the [poly] object, including a [sustain(
message: <a class="moz-txt-link-freetext" href="https://github.com/pure-data/pure-data/pull/661">https://github.com/pure-data/pure-data/pull/661</a></p>
<p>For implementing a sustain pedal in Pd vanilla, the [bag] object
will probably help. Unfortunately, I don't have time at the moment
to come up with a full solution.<br>
</p>
<p>Christof<br>
</p>
<div class="moz-cite-prefix">On 02.01.2021 18:07, alfonso santimone
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPpSNCtW0S3pyScYiq5E=VgLrFy5gPyJq3G=h0kdarF96R3U+A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,
<div>i'm trying to build a polyphonic voice allocation patch
that include sustain pedal (MIDI CC(64) ).</div>
<div>Is there any abstraction that i can look into?</div>
<div>My problems are :</div>
<div><br>
</div>
<div>1. How to deal with [poly] when the same note number is
received (i.e, three C4 in a row)</div>
<div>[poly] always assign a new voice slot to the incoming
notes.</div>
<div>I'm trying to make it assign the same voice slot when the
same note number is received consecutively. I guess that i
should mess with some arrays keeping track of note numbers and
voice slots.</div>
<div><br>
</div>
<div>2. How to deal with sustain pedal.</div>
<div>In the "real" world as with keyboard instruments like
piano, rhodes etc. the sustain pedal is used in different ways
but the most common one is to press the pedal
immediately after a chord or note is played and then release
it when a new chord is played.</div>
<div>It can be used in more "effect" oriented ways.</div>
<div>Is there any patch or abstraction that i can look into? I
guess i should use a combination of [stripnote] and
arrays/table/list to keep track of the notes on and off
events.</div>
<div>How this can be integrated with a polyphonic voice
management with stealing algorithm etc. etc.?</div>
<div><br>
</div>
<div>thanks and all the best<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" moz-do-not-send="true">www.elgallorojorecords.bandcamp.com/</a><br>
<div><a
href="http://soundcloud.com/alfonsosantimone"
target="_blank" moz-do-not-send="true">soundcloud.com/alfonsosantimone</a></div>
<div><a
href="http://www.facebook.com/alfonsosantimone"
target="_blank" moz-do-not-send="true">www.facebook.com/alfonsosantimone</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
</body>
</html>