<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What is causing hanging notes in this patch??]]></title><description><![CDATA[<p>Hi, guys,</p>
<p>can anyone please examine this simple patch and explain why is it causing hanging notes? I already tried few things with it and found out that when I disable adding of the random numbers, the note offs are working fine.</p>
<p>So what is wrong? I believe the data flow order should be fine.</p>
<p>This is the patch: <a href="/uploads/files/upload-c37d26ce-f287-4c47-9a15-d77638319d8a.zip">HangingNotes.zip</a></p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 23:06:19 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9190.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Apr 2015 22:03:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What is causing hanging notes in this patch?? on Wed, 01 Apr 2015 22:03:55 GMT]]></title><description><![CDATA[<p>Hi, guys,</p>
<p>can anyone please examine this simple patch and explain why is it causing hanging notes? I already tried few things with it and found out that when I disable adding of the random numbers, the note offs are working fine.</p>
<p>So what is wrong? I believe the data flow order should be fine.</p>
<p>This is the patch: <a href="/uploads/files/upload-c37d26ce-f287-4c47-9a15-d77638319d8a.zip">HangingNotes.zip</a></p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch</guid><dc:creator><![CDATA[Mr_Slow]]></dc:creator><pubDate>Wed, 01 Apr 2015 22:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to What is causing hanging notes in this patch?? on Wed, 01 Apr 2015 23:12:07 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I believe I know what's the problem here. Let's say that you have an original MIDI file with the following ordered MIDI events (I am not adding a time stamp for each one of them for the sake of simplicity -- like real MIDI files have -- so just think of them as ordered):</p>
<pre><code>60 127
60 0
67 80
65 104
65 0
67 0
</code></pre>
<p>That is, a note C starts then finishes, then a note G is held, a note F starts and finishes, and then finally that G that is still sounding is released. So now if we randomly add numbers between 1-4 to these notes, this is what happens:</p>
<pre><code>61 127
64 0
63 80
63 104
62 0
64 0
</code></pre>
<p>A note C# starts, a note E stops (but it was not being played anyway), a note D# is played and then again (without a note off in between), then a note D and a note E stop (though they were also not being played). This means that the notes C# and D# are still being played and will forever (or more exactly, until you turn off your computer <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" />)</p>
<p>Thus, you can see that since the note on and note off events should have the same MIDI note value, randomizing them is not a good idea (at least not with this method of yours). That's why the notes are hanging when the <strong>[random]</strong> objects is being used, and why they work just fine without it.</p>
<p>Hope this helps,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch/2</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Wed, 01 Apr 2015 23:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to What is causing hanging notes in this patch?? on Thu, 02 Apr 2015 05:59:46 GMT]]></title><description><![CDATA[<p>Oh, I see! This makes a lot of sense. Thank you, Gilberto.</p>
<p>I will have to come up with a different solution.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9190/what-is-causing-hanging-notes-in-this-patch/3</guid><dc:creator><![CDATA[Mr_Slow]]></dc:creator><pubDate>Thu, 02 Apr 2015 05:59:46 GMT</pubDate></item></channel></rss>