Greetings,<br>     Well, I used two [vline~] objects and it works fine, but only when I set the right input one of the one [expr~] to 0 and the other to 1, which both lead to division through 0 and the corresponding error message.  I believe you mentioned this problem, Mr. Farnell, regarding your own patches.  To what complications does this problem lead?  Does anyone know how I could modify the equation to be rid of it?  Why does the patch nonetheless work?<br>
<br>Many thanks,<br>Stephan<br><div class="gmail_quote">On Sat, Jun 4, 2011 at 12:54 PM, Andy Farnell <span dir="ltr">&lt;<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
[vline~] is versatile :) It can be used to solve many problems<br>
with envelopes. Also, don&#39;t be scared to use two vlines if<br>
it makes the problem easier to understand, their good time accuracy<br>
ensures they will do what you expect most times.<br>
<br>
<br>
On Sat, 4 Jun 2011 01:22:34 +0200<br>
<div><div></div><div class="h5">Stephan Elliot Perez &lt;<a href="mailto:dreamoftheshoreofanotherworld@gmail.com">dreamoftheshoreofanotherworld@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Thanks for your response.  I tried to apply the branching principal using<br>
&gt; the equation from the [exact-ead~] by having the envelope go to 1 and then<br>
&gt; to 2 instead of 0, using min 1 and max 1 to create a branch, using an<br>
&gt; expression to convert the ascending numbers over 1 into descending numbers<br>
&gt; under 1, and then jumping to 0.  I think the problem is that, during the<br>
&gt; switches, two 1s are sent at the same time, leading to a 2 (as seen in the<br>
&gt; graph), where I actually need a 0...<br>
&gt;<br>
&gt; -Stephan<br>
&gt;<br>
&gt; On Mon, May 30, 2011 at 8:34 PM, Andy Farnell &lt;<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; You might be able to easily get that behaviour by<br>
&gt; &gt; quickly editing the example I gave you.<br>
&gt; &gt;<br>
&gt; &gt; The maths is really geometry.<br>
&gt; &gt;<br>
&gt; &gt; There are a few things that can be done as time domain<br>
&gt; &gt; transforms when thinking about envelopes and suchlike<br>
&gt; &gt; in this way.<br>
&gt; &gt;<br>
&gt; &gt; 1) Flip it around zero with [*~ -1]<br>
&gt; &gt; 2) Invert arithmetically wrt 1.0 using [sig~ 1][-~]<br>
&gt; &gt; 3) Get the [min~] or the [max~] wrt another value<br>
&gt; &gt; 4) Clamp at a value using [clip~] ... is special case of (3)<br>
&gt; &gt; 5) Shift by an amount using [-~] or [+~]<br>
&gt; &gt; 6) Scale by some factor with [*~]<br>
&gt; &gt;<br>
&gt; &gt; IIRC the idiom for a two stage envelope like that is<br>
&gt; &gt; to use [min~]/[max~] to create a split point and treat<br>
&gt; &gt; each of the two branches differently (you can do piecewise<br>
&gt; &gt; waveform construction the same way).<br>
&gt; &gt;<br>
&gt; &gt; If you want time symmetry then have the [vline~] go to 1.0<br>
&gt; &gt; and back to [0.0] and just use one of the branches.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, 30 May 2011 18:45:55 +0200<br>
&gt; &gt; Stephan Elliot Perez &lt;<a href="mailto:dreamoftheshoreofanotherworld@gmail.com">dreamoftheshoreofanotherworld@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Greetings,<br>
&gt; &gt; &gt;      Thank you for your responses.  I tried your suggestion, hardoff, and<br>
&gt; &gt; &gt; the result is the attached [ead-reverse~].  Unfortunately, the expression<br>
&gt; &gt; &gt; behaves differently with this [vline~]-construction as with the<br>
&gt; &gt; [phasor~].<br>
&gt; &gt; &gt; Here, if 1 is entered into the right input of [expr~], the result is an<br>
&gt; &gt; &gt; envelope whose steepness becomes exponentially smaller while ascending<br>
&gt; &gt; and<br>
&gt; &gt; &gt; exponentially greater while descending (if near 0, the opposite form is<br>
&gt; &gt; &gt; produced and values between 1 and 0 produce a divided, confused form). I<br>
&gt; &gt; &gt; however wish to produce an envelope that becomes exponentially steeper<br>
&gt; &gt; both<br>
&gt; &gt; &gt; ascending and descending.<br>
&gt; &gt; &gt;      My problem with this [expr~] as well as with Mr. Farnell&#39;s patches<br>
&gt; &gt; is<br>
&gt; &gt; &gt; that I do not quite understand the math behind them.  Any ideas?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best regards,<br>
&gt; &gt; &gt; Stephan Elliot Perez<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Fri, May 27, 2011 at 5:54 PM, hard off &lt;<a href="mailto:hard.off@gmail.com">hard.off@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; instead of the [phaser~], send a [line~] (or [vline~]) signal.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; for example:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; [1, 0.5 500, 0 1000 500(<br>
&gt; &gt; &gt; &gt; |<br>
&gt; &gt; &gt; &gt; [vline~]<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; like most of my patches, i don&#39;t think i originally made that one,<br>
&gt; &gt; someone<br>
&gt; &gt; &gt; &gt; else posted it, and i just copied.   ;)<br>
&gt; &gt; &gt; &gt; must have been a long time ago though, cos i barely remember it.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Sat, May 28, 2011 at 12:24 AM, Stephan Elliot Perez &lt;<br>
&gt; &gt; &gt; &gt; <a href="mailto:dreamoftheshoreofanotherworld@gmail.com">dreamoftheshoreofanotherworld@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; Greetings,<br>
&gt; &gt; &gt; &gt;&gt;        I wish to produce a wave form with the opposite form of the<br>
&gt; &gt; normal<br>
&gt; &gt; &gt; &gt;&gt; ead~ wave (the curves become exponentially steeper instead of<br>
&gt; &gt; flatter),<br>
&gt; &gt; &gt; &gt;&gt; which I can achieve by entering a negative number into the phasor in<br>
&gt; &gt; hard<br>
&gt; &gt; &gt; &gt;&gt; off&#39;s exact-ead~ patch, which I downloaded from the archive.  However,<br>
&gt; &gt; I<br>
&gt; &gt; &gt; &gt;&gt; still want to be able to independently change the length of the<br>
&gt; &gt; ascent,<br>
&gt; &gt; &gt; &gt;&gt; decline, and distance between waves as is possible with ead~.  Does<br>
&gt; &gt; anyone<br>
&gt; &gt; &gt; &gt;&gt; know how I could do this, or possibly have access to an<br>
&gt; &gt; abstraction-version<br>
&gt; &gt; &gt; &gt;&gt; of ead~?<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Best regards,<br>
&gt; &gt; &gt; &gt;&gt; Stephan<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; _______________________________________________<br>
&gt; &gt; &gt; &gt;&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; &gt; &gt; &gt;&gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt; &gt; &gt; &gt;&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Andy Farnell &lt;<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; &gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt; &gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt; &gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Andy Farnell &lt;<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>&gt;<br>
</div></div></blockquote></div><br>