<?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[Assemble message from several MIDI CC messages to send to [vline~] ADSR]]></title><description><![CDATA[<p>I am trying to control a simple [vline~] ADSR with a MIDI controller. Building the ADSR was easy - it's basically just the [vline~] object. But how can I achieve the following:</p>
<p>I have a MIDI controller with 4 sliders. I want each single slider to be the value for A, D, S and R levels. I am aware of the [ctlin] object. But how would I assemble a message like ([slider1] 1000, [slider2] 1000 1000, [slider3] 1000 3000, [slider4]) ?</p>
<p>Thanks for any help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 12:53:08 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13802.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Jan 2022 21:58:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Mon, 24 Jan 2022 21:58:50 GMT]]></title><description><![CDATA[<p>I am trying to control a simple [vline~] ADSR with a MIDI controller. Building the ADSR was easy - it's basically just the [vline~] object. But how can I achieve the following:</p>
<p>I have a MIDI controller with 4 sliders. I want each single slider to be the value for A, D, S and R levels. I am aware of the [ctlin] object. But how would I assemble a message like ([slider1] 1000, [slider2] 1000 1000, [slider3] 1000 3000, [slider4]) ?</p>
<p>Thanks for any help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr</guid><dc:creator><![CDATA[chrisby]]></dc:creator><pubDate>Mon, 24 Jan 2022 21:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Mon, 24 Jan 2022 22:20:03 GMT]]></title><description><![CDATA[<p>Here's the simplest ADSR routine I could come up with in a hurry:</p>
<p><a href="/uploads/files/1643062790924-adsr_example.pd">ADSR_Example.pd</a></p>
<p><img src="/uploads/files/1643062800268-screenshot_2022-01-24_23-18-53.png" alt="Screenshot_2022-01-24_23-18-53.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/2</guid><dc:creator><![CDATA[bocanegra]]></dc:creator><pubDate>Mon, 24 Jan 2022 22:20:03 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Tue, 25 Jan 2022 00:00:12 GMT]]></title><description><![CDATA[<p>Ok so, my mash-up has some serious flaws. First of all the sustain part does not account the magnitude for the midi controller being &gt; 1 most of the time &gt;.&lt;</p>
<p>Second, as is, you can only set attack/decay/release times to midi numbers ranging from 0 to 127 (ms). So here's a fix for that:</p>
<p><a href="/uploads/files/1643068084621-adsr.zip">ADSR.zip</a></p>
<p><img src="/uploads/files/1643068662101-screenshot_2022-01-25_00-56-42.png" alt="Screenshot_2022-01-25_00-56-42.png" class="img-responsive img-markdown" /></p>
<p>The [MinMax] module is a small abstraction included in the .zip. You could add any kind of math where the scaling is done. For example some sort of log-ish bending of the midi input might be useful, and since all controller values are now normalized, this should trivial.</p>
<p>Apologies for not getting it right the first time <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/stuck_out_tongue_winking_eye.png" title=":P" alt=":P" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/3</guid><dc:creator><![CDATA[bocanegra]]></dc:creator><pubDate>Tue, 25 Jan 2022 00:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Tue, 25 Jan 2022 19:02:40 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bocanegra">@bocanegra</a> Hey, thank you so much for this!! I gathered that [pack] could be a solution, but I am pretty new to PD (thankfully not to programming or electronics) and it's pretty hard to find good documentation. I will give your solution a try, thank you again!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/4</guid><dc:creator><![CDATA[chrisby]]></dc:creator><pubDate>Tue, 25 Jan 2022 19:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Tue, 25 Jan 2022 20:14:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/chrisby">@chrisby</a> you are welcome. I am just happy I didn't blow up your speakers with my first attempt <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>On a side note, this ADSR is pretty basic and lacking in features. Among other things it would be preferable to have exponential curves on each segment like most analog synths...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/5</guid><dc:creator><![CDATA[bocanegra]]></dc:creator><pubDate>Tue, 25 Jan 2022 20:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Tue, 25 Jan 2022 23:30:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/bocanegra">@bocanegra</a> said:</p>
<blockquote>
<p>Among other things it would be preferable to have exponential curves on each segment like most analog synths...</p>
</blockquote>
<p>Just last week I made a lincurve~ abstraction, <a href="http://github.com/jamshark70/hjh-abs" rel="nofollow">http://github.com/jamshark70/hjh-abs</a> (if I'm writing the address correctly from memory).</p>
<p>Btw the gymnastics at the top could be simplified a bit by [swap], no?</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/6</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Tue, 25 Jan 2022 23:30:10 GMT</pubDate></item><item><title><![CDATA[Reply to Assemble message from several MIDI CC messages to send to [vline~] ADSR on Tue, 25 Jan 2022 23:53:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> said:</p>
<blockquote>
<p>Just last week I made a lincurve~ abstraction, <a href="http://github.com/jamshark70/hjh-abs" rel="nofollow">http://github.com/jamshark70/hjh-abs</a> (if I'm writing the address correctly from memory).</p>
</blockquote>
<p>yes, I remember. I use similar concoctions of my own.</p>
<blockquote>
<p>Btw the gymnastics at the top could be simplified a bit by [swap], no?</p>
</blockquote>
<p>Yes, but for didactic reasons I think the trigger is more appropriate (transparent).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13802/assemble-message-from-several-midi-cc-messages-to-send-to-vline-adsr/7</guid><dc:creator><![CDATA[bocanegra]]></dc:creator><pubDate>Tue, 25 Jan 2022 23:53:42 GMT</pubDate></item></channel></rss>