<?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[[midiin] to note values?]]></title><description><![CDATA[<p>I'm using a raspberry pi 4 running Patchbox OS and Pisound. I've found that using [notein] adds up to 40 ms latency when using the hardware midi inputs of Pisound. However, using [midiin] instead I can get it as low as 5 ms latency! Not sure why notein adds so much delay... Anyway now I need a way to sort the midi data coming in from [midiin] into note values and velocity, But the stream of numbers enter sequentially and not as a list, so I don't have a way of sorting the numbers. Any ideas how to way easily route the incoming note value and velocity down different paths? Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 14:35:33 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14475.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Sep 2023 12:12:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [midiin] to note values? on Fri, 15 Sep 2023 12:12:17 GMT]]></title><description><![CDATA[<p>I'm using a raspberry pi 4 running Patchbox OS and Pisound. I've found that using [notein] adds up to 40 ms latency when using the hardware midi inputs of Pisound. However, using [midiin] instead I can get it as low as 5 ms latency! Not sure why notein adds so much delay... Anyway now I need a way to sort the midi data coming in from [midiin] into note values and velocity, But the stream of numbers enter sequentially and not as a list, so I don't have a way of sorting the numbers. Any ideas how to way easily route the incoming note value and velocity down different paths? Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values</guid><dc:creator><![CDATA[bamsehopp]]></dc:creator><pubDate>Fri, 15 Sep 2023 12:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Sat, 16 Sep 2023 03:45:15 GMT]]></title><description><![CDATA[<p>&quot;Easy,&quot; not really -- because the meaning of byte 'n' depends on what was byte 'n-1'. The current received byte has to set the routing for the next byte, which is a bit outside of normal straight-shot patching.</p>
<p>However I tested this with some simulated messages (including running status bytes) and it does seem to parse them out correctly. You could extend it for other message types too, but I don't have time to go further than this.</p>
<p><img src="/uploads/files/1694835870602-pd-state-machine.png" alt="pd-state-machine.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1694835883452-23-0916-midiin-state-machine.pd">23-0916-midiin-state-machine.pd</a></p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/2</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 16 Sep 2023 03:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Sat, 16 Sep 2023 09:12:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a></p>
<p>Wow that proved to be more complicated than I first thought! Thanks a ton for that patch, It works great! I don't really need more than note values for this project anyway.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/3</guid><dc:creator><![CDATA[bamsehopp]]></dc:creator><pubDate>Sat, 16 Sep 2023 09:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Sat, 16 Sep 2023 14:46:29 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bamsehopp">@bamsehopp</a> said:</p>
<blockquote>
<p>Thanks a ton for that patch, It works great!</p>
</blockquote>
<p>Oh, glad to hear that, I did only the barest minimal testing so I wasn't sure if there were any bugs. I had done state machines in SuperCollider but not so much in Pd up to this point.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/4</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 16 Sep 2023 14:46:29 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Sun, 17 Sep 2023 16:07:38 GMT]]></title><description><![CDATA[<p>I didn't notice any bugs, and was actually able to play a whole gig last night using your code in my custom built pd sampler! So i think its safe to say its an efficient method!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/5</guid><dc:creator><![CDATA[bamsehopp]]></dc:creator><pubDate>Sun, 17 Sep 2023 16:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Thu, 19 Oct 2023 08:43:10 GMT]]></title><description><![CDATA[<p>(edit: updated patch in following message)</p>
<p>Hello, I have been fiddling around wondering about how to make a vanilla midiparser that can handle MPE messages like release velocity - your patch was really helpful, thanks!</p>
<p>I've completed it with all the types of 'midi status bytes' that I know of, and changed the routing system a little bit. It seems to be working well for me.</p>
<p>Thanks for the info about latency and the native notein object.</p>
<p>Hope someone finds this useful,<br />
Sam.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/6</guid><dc:creator><![CDATA[unclewayback]]></dc:creator><pubDate>Thu, 19 Oct 2023 08:43:10 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Fri, 20 Oct 2023 18:33:05 GMT]]></title><description><![CDATA[<p><a href="/uploads/files/1697826780385-midi-up.pd">midi-up.pd</a></p>
<p>This is an updated patch, I hadn't quite got the hang of 'running status'. The patch now also has all the midi real time messages. The most helpful tutorial I have found for understanding how to handle midi is this one: <a href="https://learn.sparkfun.com/tutorials/midi-tutorial/all" rel="nofollow">https://learn.sparkfun.com/tutorials/midi-tutorial/all</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/7</guid><dc:creator><![CDATA[unclewayback]]></dc:creator><pubDate>Fri, 20 Oct 2023 18:33:05 GMT</pubDate></item><item><title><![CDATA[Reply to [midiin] to note values? on Wed, 15 Nov 2023 10:12:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/unclewayback">@unclewayback</a> said:</p>
<blockquote>
<p>midi-up.pd</p>
</blockquote>
<p>amazing work ,thank you</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14475/midiin-to-note-values/8</guid><dc:creator><![CDATA[kazeko]]></dc:creator><pubDate>Wed, 15 Nov 2023 10:12:58 GMT</pubDate></item></channel></rss>