<?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[Envelope of a signal]]></title><description><![CDATA[<p>Hey!</p>
<p>I'm fairly new to Pure Data, and I'm having a hard time figuring how to extract the envelope of a signal.</p>
<p>Now I'm simply outputting the signal to an array, but I really wanted was to extract the envelope and plot it.<br />
Anyone can help please?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:12:58 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9339.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jun 2015 00:37:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Envelope of a signal on Fri, 12 Jun 2015 00:37:29 GMT]]></title><description><![CDATA[<p>Hey!</p>
<p>I'm fairly new to Pure Data, and I'm having a hard time figuring how to extract the envelope of a signal.</p>
<p>Now I'm simply outputting the signal to an array, but I really wanted was to extract the envelope and plot it.<br />
Anyone can help please?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Fri, 12 Jun 2015 00:37:29 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 18:44:36 GMT]]></title><description><![CDATA[<p>What about using <strong>[env~]</strong>? I mean something like this:</p>
<p><img src="/uploads/files/upload-d6db401f-7268-416c-8b80-82ee83fc75d2.png" alt="Screenshot from 2015-06-13 20:43:58.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/upload-e303bc46-331e-4860-81be-556fdeb75049.pd">envelope.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/2</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 13 Jun 2015 18:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 18:45:20 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gsagostinho">@gsagostinho</a> Too woofing easy!.....</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/3</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 13 Jun 2015 18:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 18:45:24 GMT]]></title><description><![CDATA[<p>And by the way, I am using <strong>[tabletool]</strong> by William Brent (see: <a href="http://williambrent.conflations.com/pages/research.html" rel="nofollow">http://williambrent.conflations.com/pages/research.html</a>)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/4</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 13 Jun 2015 18:45:24 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 18:46:07 GMT]]></title><description><![CDATA[<blockquote>
<p>Too woofing easy!.....</p>
</blockquote>
<p>Should have named my example file <code>dog.wav</code> instead of <code>a.wav</code>! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":D" alt=":D" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/5</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 13 Jun 2015 18:46:07 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 19:31:00 GMT]]></title><description><![CDATA[<p>Thanks for the reply!</p>
<p>I tried using that, but unfortunately what I get is not what I need.</p>
<p>I'm using this patch, that computes a Fourier Transform so I can analyze the frequencies of an incoming signal (the sound received on the microphone to be exact), but I want the envelope of the signal, not the signal itself.</p>
<p>Here goes a part of my patch, the results seem correct, I just wanted the envelope now.</p>
<p>Any help will be greatly appreciated, I feel I'm missing something :/<br />
<a href="/uploads/files/upload-d5c7c1ae-fec7-4c26-91ab-87273ef90922.pd">fft_hz.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/6</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Sat, 13 Jun 2015 19:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sat, 13 Jun 2015 19:32:21 GMT]]></title><description><![CDATA[<p>Oh btw, as I'm using libpd, I can't (as a requirement) use any externals, so no help with tabletool, but going to check it out for future projects! <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/9339/envelope-of-a-signal/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/7</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Sat, 13 Jun 2015 19:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 18:05:00 GMT]]></title><description><![CDATA[<p>Hi Pedro,</p>
<blockquote>
<p>but I want the envelope of the signal, not the signal itself.</p>
</blockquote>
<p>I don't understand. What <strong>[env~]</strong> outputs is the envelope of the signal as far as I know.</p>
<p>Also, I found this about envelope followers (from Miller's book): <a href="http://msp.ucsd.edu/techniques/v0.11/book-html/node158.html" rel="nofollow">http://msp.ucsd.edu/techniques/v0.11/book-html/node158.html</a></p>
<p>See if there is anything there that can help you.</p>
<p>Cheers,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/8</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sun, 14 Jun 2015 18:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 18:15:53 GMT]]></title><description><![CDATA[<p>Yeah, I know that, but when I try to use [env~] on my values and try to plot them, I only get one value (which makes sense, since it only outputts one value).</p>
<p>What I want is something like this in the second plot (sorry for the bad drawing):<br />
<img src="/uploads/files/upload-9132a2d9-0840-49ff-ada4-4a6ecfa20732.png" alt="example.png" class="img-responsive img-markdown" /></p>
<p>I want to plot and be able to save the envelope of the signal like this.<br />
Maybe Im confusing envelope with something else.....</p>
<p>Any help is appreciated, thanks guys!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/9</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Sun, 14 Jun 2015 18:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 18:18:38 GMT]]></title><description><![CDATA[<p>Hi Pedro,</p>
<p>I do understand what you want, but I thought that the <strong>[env~]</strong> does exactly that. Of course it does only for the current signal arriving to it. So my idea was to save <strong>[env~]</strong>'s output to a table and then plot it, and that's what I tried with that patch I posted above.</p>
<p>Cheers,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/10</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sun, 14 Jun 2015 18:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 18:34:21 GMT]]></title><description><![CDATA[<p>Oh I get it now! Makes sense!</p>
<p>Any idea on how to save those values to a table?<br />
I can't seem to get the grasp on how Pure Data handles arrays and tables :/</p>
<p>I can't use externals because I'm going to use the patch with libpd...</p>
<p>Thanks again! <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gsagostinho">@gsagostinho</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/11</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Sun, 14 Jun 2015 18:34:21 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 19:03:27 GMT]]></title><description><![CDATA[<blockquote>
<p>Any idea on how to save those values to a table?</p>
</blockquote>
<p>I did it by using <strong>[tabletool]</strong> but of course you can patch it yourself. The logic I use is as follows:</p>
<ul>
<li>when a new value is sent by <strong>[env~]</strong>, use a <strong>[trigger float bang]</strong></li>
<li>the bang will first shift the table to the left (that is, value at index 2 moves to index 1, the value at index 3 moves to index 2, etc.). This is where <strong>[tabeltool]</strong> is super handy, but you can patch this yourself of course.</li>
<li>then the float from will be written to the last position in the table by using <strong>[tablewrite &lt;tablename&gt;]</strong>. See how I dealt with the second inlet on my patch above (the last index was 100 in my case).</li>
</ul>
<p>Cheers,<br />
GIlberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/12</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sun, 14 Jun 2015 19:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Sun, 14 Jun 2015 21:14:22 GMT]]></title><description><![CDATA[<p>Hm thanks again <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gsagostinho">@gsagostinho</a>! got it working but I don't think this is what I need.</p>
<p>As I showed on the image, I want to do the envelope of a signal after I used FFT on it (now I have an array that tells me for each moment in time what are the frequencies that compose the signal).<br />
And this is right, as I tested it already.</p>
<p>Now I just wanted to use those values and envelope them...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/13</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Sun, 14 Jun 2015 21:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Mon, 15 Jun 2015 06:54:37 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/pedropt">@PedroPT</a> Hello Pedro,  I will post my (not so woofing easy) post again then...<br />
<a href="https://en.wikipedia.org/wiki/Envelope_detector" rel="nofollow">https://en.wikipedia.org/wiki/Envelope_detector</a><br />
the calculation can most likely be done using [expr~] or reading the table into [expr]<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/14</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 15 Jun 2015 06:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Mon, 15 Jun 2015 16:11:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> Those equations are related to FM and AM only and are not a general case, so you can't just use <strong>[expr~]</strong> with them and apply any signal to it.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/pedropt">@PedroPT</a> I thought you had written that you just wanted to visualize the envelope, not use it later. Maybe you can store the envelope in a table, and when necessary recall their values from this table and feed a <strong>[line~]</strong> into which, and multiply it by the signal. For that you have to make sure that you have amplitude between 0 and 1 (<strong>[env~]</strong> actually outputs RMS dB). But maybe there is an easier way to do what you want and I am missing it altogether...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/15</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Mon, 15 Jun 2015 16:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Mon, 15 Jun 2015 17:12:59 GMT]]></title><description><![CDATA[<p>I want to send the values of the signal (as I'm doing now, but now I only have the FFT results, with frequencies distribution) to libpd and present them on an Android tablet.</p>
<p>So far this I have right, but I wanted to send the envelope instead of the FFT values...</p>
<p>But thanks anyway <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/gsagostinho">@gsagostinho</a>, <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>  !!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/16</guid><dc:creator><![CDATA[PedroPT]]></dc:creator><pubDate>Mon, 15 Jun 2015 17:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Envelope of a signal on Mon, 15 Jun 2015 17:13:50 GMT]]></title><description><![CDATA[<p>Pedro, why don't you try posting your problem on the pd mailling list? Those guys there know a lot about audio programming and they may be able to help you better than I can.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9339/envelope-of-a-signal/17</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Mon, 15 Jun 2015 17:13:50 GMT</pubDate></item></channel></rss>