<?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[MIDI rotary encoders values get confused]]></title><description><![CDATA[<p>I have a controller with rotary encoders that sends relative values ; 63 when turned counter-clock wise, 65 when turned clockwise.</p>
<p>With two encoders, I want to control the In/out point of a MIDI sampler.<br />
The values needs to be between 0-127 for the In/Out point of the sampler.<br />
Also, I want to make sure that the In/Out points values does not cross each others.<br />
I made patch for this purpose that works fine.</p>
<p>I then route these values to the [ctlout] object.</p>
<p>With the Sampler receiving these MIDI messages, the problem I get is that if I turn the two rotary encoders into opposite direction at the same time, both values seems to be confused by the other. I’m wondering it it has to do with the way I format the message to be outputted by [ctlout].</p>
<p>Does anyone has an idea what is going wrong?<br />
Thanks a lot for any help.<br />
Regards</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 18:12:03 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13385.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Apr 2021 22:37:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MIDI rotary encoders values get confused on Fri, 02 Apr 2021 22:37:12 GMT]]></title><description><![CDATA[<p>I have a controller with rotary encoders that sends relative values ; 63 when turned counter-clock wise, 65 when turned clockwise.</p>
<p>With two encoders, I want to control the In/out point of a MIDI sampler.<br />
The values needs to be between 0-127 for the In/Out point of the sampler.<br />
Also, I want to make sure that the In/Out points values does not cross each others.<br />
I made patch for this purpose that works fine.</p>
<p>I then route these values to the [ctlout] object.</p>
<p>With the Sampler receiving these MIDI messages, the problem I get is that if I turn the two rotary encoders into opposite direction at the same time, both values seems to be confused by the other. I’m wondering it it has to do with the way I format the message to be outputted by [ctlout].</p>
<p>Does anyone has an idea what is going wrong?<br />
Thanks a lot for any help.<br />
Regards</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused</guid><dc:creator><![CDATA[Doug_Meatloaf]]></dc:creator><pubDate>Fri, 02 Apr 2021 22:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to MIDI rotary encoders values get confused on Fri, 02 Apr 2021 23:35:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/doug_meatloaf">@Doug_Meatloaf</a> No idea about your issues, best to post the patch in such situations, but this should do it for you. <a href="/uploads/files/1617405001980-cc.zip">cc.zip</a></p>
<p>Really should finish up this abstraction. Think it has one minor bug, but I do not recall what it is and I have grown used to working around it, nothing major.</p>
<p>Edit: Just realized that the abstraction does not show the control outs, just need to add the appropriate <code>[ctlout]</code> to the nbx output.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/2</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Fri, 02 Apr 2021 23:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to MIDI rotary encoders values get confused on Fri, 02 Apr 2021 23:41:01 GMT]]></title><description><![CDATA[<p>Thank you very much for your quick answer oid.<br />
I will take a look at your patch.<br />
Here's mine in case.</p>
<p><a href="/uploads/files/1617406784295-relative-encoders-to-midi-cc.pd">relative encoders to MIDI CC.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/3</guid><dc:creator><![CDATA[Doug_Meatloaf]]></dc:creator><pubDate>Fri, 02 Apr 2021 23:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to MIDI rotary encoders values get confused on Sat, 03 Apr 2021 00:28:40 GMT]]></title><description><![CDATA[<p>With your [cc] abstraction it works!<br />
Thanks a lot again oid!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/4</guid><dc:creator><![CDATA[Doug_Meatloaf]]></dc:creator><pubDate>Sat, 03 Apr 2021 00:28:40 GMT</pubDate></item><item><title><![CDATA[Reply to MIDI rotary encoders values get confused on Sat, 03 Apr 2021 00:42:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/doug_meatloaf">@Doug_Meatloaf</a> your if statement in the <code>[expr]</code> reverses the output, it sends the value of out to the in output if $f1 is less than $f2 and vise versa, so it swaps outputs based on if the inputs are greater than or less than each other. I am not completely sure what you are trying to accomplish with this, are the in and out points the starting point and ending point of the sample? If so you can just use <code>[clip]</code> instead of <code>[expr]</code>, out sets the upper clip point for in and in sets the lower clip point for out.</p>
<p>Edit; Never mind <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13385/midi-rotary-encoders-values-get-confused/5</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 03 Apr 2021 00:42:17 GMT</pubDate></item></channel></rss>