<?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[vline~ to array.]]></title><description><![CDATA[<p>Howdy, y'all! Another day, another question.</p>
<p>I have an ADSR using [vline~], and want to view the envelope in an array, a la Browser &gt; PdDrums &gt; drumcenter. Is this possible? I can't seem to get it going at all. I'd preferably like the array to update live, which I figure I can do by sending a bang from the [vline~]s message box into the array in lieu of a [metro].</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 16:47:54 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9119.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Mar 2015 01:45:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 01:45:08 GMT]]></title><description><![CDATA[<p>Howdy, y'all! Another day, another question.</p>
<p>I have an ADSR using [vline~], and want to view the envelope in an array, a la Browser &gt; PdDrums &gt; drumcenter. Is this possible? I can't seem to get it going at all. I'd preferably like the array to update live, which I figure I can do by sending a bang from the [vline~]s message box into the array in lieu of a [metro].</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array</guid><dc:creator><![CDATA[What]]></dc:creator><pubDate>Tue, 17 Mar 2015 01:45:08 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 01:57:28 GMT]]></title><description><![CDATA[<p>Hi, if you are on pd-extended and just want to see the envelope, you could try <strong>[Scope~]</strong>.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/2</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Tue, 17 Mar 2015 01:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 02:10:20 GMT]]></title><description><![CDATA[<p>Man, never knew that existed! I'm learning all sorts today, just found [envgen] which made me wonder if what I wanted is possible.</p>
<p>Scope won't really cut it though, unfortunately. Looks like it'll only show the data as it passes through, more like an oscilloscope.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/3</guid><dc:creator><![CDATA[What]]></dc:creator><pubDate>Tue, 17 Mar 2015 02:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 02:36:46 GMT]]></title><description><![CDATA[<p>Yes, I love <strong>[Scope~]</strong>, so useful for quick checks. As for <strong>[envgen]</strong>, I abuse that object more than anything else on my compositions <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Anyway, about your question. Try this:</p>
<p><img src="/uploads/files/upload-d5304ea5-c585-43a1-8de7-35dacb6bb80a.png" alt="Screenshot from 2015-03-17 03:34:07.png" class="img-responsive img-markdown" /><br />
<a href="/uploads/files/upload-6fd15b43-58c4-4459-ac47-c1533a46c293.pd">patch.pd</a></p>
<p>I think this is what you need, right? When you bang that button, the envelope will be written to the array. As I wrote in the patch, if you have different envelopes of different size, you will need to resize the array before in order to visualize them properly, but that should be fairly easy to do.</p>
<p>Hope this helps, cheers!<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/4</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Tue, 17 Mar 2015 02:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 03:06:50 GMT]]></title><description><![CDATA[<p>Is there any way you can see to implement the array using this ADSR? <div class="embed-container"><iframe src="//www.youtube.com/embed/49a-IcuDlJE" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/5</guid><dc:creator><![CDATA[What]]></dc:creator><pubDate>Tue, 17 Mar 2015 03:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Tue, 17 Mar 2015 13:16:24 GMT]]></title><description><![CDATA[<p>Hi What,</p>
<p>Well, that's a bit of a problem. The trick is how <strong>[tabwrite~]</strong> works: when you bang it, it will start recording a signal to the table at the sample rate, and the table will show the signal once the its full. So in order to record a 1 second sound, you need a table of size 44100 samples (at least if that's your sample rate, which typically is), but it also means that for the next second the array will not show you anything (it's still recording during that period).</p>
<p>This means that you need to change the array size in order to fit the arriving signal. If you know how long a note lasts, that's trivial. But in the video above, the size of the notes is dynamic: if you hold the key of your input MIDI keyboard longer, the signal is longer, and there is no way to know in advance how long you will have it pressed down!</p>
<p>You can visualize only the attack, decay and sustain, but not the release...  at least not in real time like that. But here is a trick if you simply just want to visualize stuff:</p>
<p><img src="/uploads/files/upload-472adb4f-08bf-45e7-896e-95abb624c2f4.png" alt="Screenshot from 2015-03-17 14:14:59.png" class="img-responsive img-markdown" /><br />
<a href="/uploads/files/upload-c15db8f4-c71e-48f3-b30c-5464a81f483d.pd">adsr-visualization.pd</a></p>
<p>Basically, the trick is that I don't send the same <strong>[vline~]</strong> to the array1: rather, I create a second envelope with a fake duration of 1s + release time (regardless of how long you hold the keyboard note). This way, you can see what is going on, although that is not a representation of the sound you are listening.</p>
<p>Does this make sense? Let me know if you need some help understanding this.</p>
<p>Cheers,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/6</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Tue, 17 Mar 2015 13:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Wed, 18 Mar 2015 00:23:02 GMT]]></title><description><![CDATA[<p>Wow, that's actually really clever! I'm not gonna be using MIDI, but the work-around is so simple and graceful, just like PD should be. I'll buy you a coke we ever end up in the same building.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/7</guid><dc:creator><![CDATA[What]]></dc:creator><pubDate>Wed, 18 Mar 2015 00:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to vline~ to array. on Wed, 18 Mar 2015 01:06:52 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/what">@What</a> hehe I will remember that <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> Cheers!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9119/vline-to-array/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9119/vline-to-array/8</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Wed, 18 Mar 2015 01:06:52 GMT</pubDate></item></channel></rss>