<?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[subtract from abstraction argument then merge into string]]></title><description><![CDATA[<p>I have an abstraction that builds a system exclusive parameter change message.  I pass 3 arguments to the abstraction and it builds a system exclusive message from the 3 arguments and a value sent to the abstraction inlet from a slider.</p>
<p>One of the arguments corresponds to the source (audio channel) in a k1 hardware synthesizer.  The decimal  value of the source that goes into the sysex message is 0,2,4, or 6.  But for ease of use I want to pass 1,2,3,4 as the value of the source argument to the abstraction, then have math convert that 1-4 value into the even numbers 0 - 6.</p>
<p>Here is a screen shot of the abstraction (k1sx) in the main patch with 3 arguments,  0, 41, 1 (channel number, parameter number, source number).</p>
<p><img src="/uploads/files/1541824791868-abstraction-with-arguments.png" alt="abstraction-with-arguments.PNG" class="img-responsive img-markdown" /></p>
<p>The abstraction should generate a midi message with the source number converted from 1 to 0 (1 - 1 * 2).</p>
<p>Here is a screen shot of my attempt to do this with an argument within the abstraction, which did not work...<br />
<img src="/uploads/files/1541824909994-inside-abstraction-with-math.png" alt="inside-abstraction-with-math.PNG" class="img-responsive img-markdown" /></p>
<p>Is there a way that I can take the $3 argument, subtract 1 multiply by 2 and then place this new value as the 2nd to the last value in the message box near the bottom of the patch?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11746/subtract-from-abstraction-argument-then-merge-into-string</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 15:07:30 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11746.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Nov 2018 04:42:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to subtract from abstraction argument then merge into string on Sat, 10 Nov 2018 04:42:50 GMT]]></title><description><![CDATA[<p>I have an abstraction that builds a system exclusive parameter change message.  I pass 3 arguments to the abstraction and it builds a system exclusive message from the 3 arguments and a value sent to the abstraction inlet from a slider.</p>
<p>One of the arguments corresponds to the source (audio channel) in a k1 hardware synthesizer.  The decimal  value of the source that goes into the sysex message is 0,2,4, or 6.  But for ease of use I want to pass 1,2,3,4 as the value of the source argument to the abstraction, then have math convert that 1-4 value into the even numbers 0 - 6.</p>
<p>Here is a screen shot of the abstraction (k1sx) in the main patch with 3 arguments,  0, 41, 1 (channel number, parameter number, source number).</p>
<p><img src="/uploads/files/1541824791868-abstraction-with-arguments.png" alt="abstraction-with-arguments.PNG" class="img-responsive img-markdown" /></p>
<p>The abstraction should generate a midi message with the source number converted from 1 to 0 (1 - 1 * 2).</p>
<p>Here is a screen shot of my attempt to do this with an argument within the abstraction, which did not work...<br />
<img src="/uploads/files/1541824909994-inside-abstraction-with-math.png" alt="inside-abstraction-with-math.PNG" class="img-responsive img-markdown" /></p>
<p>Is there a way that I can take the $3 argument, subtract 1 multiply by 2 and then place this new value as the 2nd to the last value in the message box near the bottom of the patch?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11746/subtract-from-abstraction-argument-then-merge-into-string</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11746/subtract-from-abstraction-argument-then-merge-into-string</guid><dc:creator><![CDATA[hp3]]></dc:creator><pubDate>Sat, 10 Nov 2018 04:42:50 GMT</pubDate></item><item><title><![CDATA[Reply to subtract from abstraction argument then merge into string on Sat, 10 Nov 2018 08:02:43 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/hp3">@hp3</a> It looks as though you are trying to change $4 in the message........ in which case.......<a href="/uploads/files/1541836818291-k1.zip">k1.zip</a><br />
David.<br />
<img src="/uploads/files/1541836953733-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11746/subtract-from-abstraction-argument-then-merge-into-string/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11746/subtract-from-abstraction-argument-then-merge-into-string/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 10 Nov 2018 08:02:43 GMT</pubDate></item></channel></rss>