<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hey,</div>

<div> </div>

<div>> I actually know of two other adsr envelopes out there for Pd, both non linear, they are: bsaylor/aenv~ and creb/eadsr~ - both are hardcoded.</div>

<div> </div>

<div>attached you'll find my own personal envelope generator (cadsr~) which allows you to set the shape individually for each segments. Exponential segments take another argument to control the shape ( >0 fast rise, <0 slow rise).</div>

<div> </div>

<div>---</div>

<div> </div>

<div>For a "natural" envelope generator, like those found in analog synthesizers, you can use a 1-pole lowpass filter and change the frequency for each segment to emulate the behavior of a capacitor. The formular for the frequency is:</div>

<div> </div>

<div>T / (d * 2pi)</div>

<div> </div>

<div>where d is the segment duration in seconds and T is the number of time constants, e.g. with 5 time constants, the evelope generator will reach 99.3% of the target value. Note that the target value is always approached asymptotically and - at least in theory - never fully reached. https://en.wikipedia.org/wiki/RC_circuit#Time-domain_considerations</div>

<div> </div>

<div>See the attached (ceadsr~) for an example. This one actually has a proper help patch :-)</div>

<div> </div>

<div>Christof</div>

<div> </div>

<div> </div>

<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Samstag, 13. Juli 2019 um 09:57 Uhr<br/>
<b>Von:</b> "Alexandre Torres Porres" <porres@gmail.com><br/>
<b>An:</b> "matthew brandi" <mfbrandi@outlook.com><br/>
<b>Cc:</b> Pd-List <pd-list@lists.iem.at><br/>
<b>Betreff:</b> Re: [PD] best non linear envelope design?</div>

<div name="quoted-content">
<div>
<div> </div>
 

<div class="gmail_quote">
<div class="gmail_attr">Em sáb, 13 de jul de 2019 às 04:36, matthew brandi <<a href="mailto:mfbrandi@outlook.com" onclick="parent.window.location.href='mailto:mfbrandi@outlook.com'; return false;" target="_blank">mfbrandi@outlook.com</a>> escreveu:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div class="gmail-m_3394041298900293523moz-cite-prefix">On 13/07/2019 08:11, Alexandre Torres Porres wrote:</div>

<blockquote>the [adsr~] object, so far, is only linear, but I'm hoping to offer a hardcoded exponential setting for it, but not sure yet which one, hence my mail to the list</blockquote>

<p> </p>

<p><font face="Fira Mono">Dear Alexandre</font></p>

<p><font face="Fira Mono">Wouldn’t the “classical” approach be convex attack (0 < pow < 1) and concave decay and release (pow > 1)? </font></p>
</div>
</blockquote>

<div>if you say so, I'm buying :) </div>

<div> </div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<p><font face="Fira Mono">If so, you would be looking at a set of hardcoded exponents, not a single exponent for all segments, right?</font></p>
</div>
</blockquote>

<div> </div>

<div>yup, I meant a set </div>

<div> </div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<p><font face="Fira Mono">FWIW, if you have the configurable [envgen~], I would make life easy for yourself and leave [adsr~] as linear.</font></p>

<p><font face="Fira Mono">Best</font></p>
</div>
</blockquote>

<div> </div>

<div>I see, but I also think a preconfigured [adsr~] makes things easier if that's all you want.</div>

<div> </div>

<div>I actually know of two other adsr envelopes out there for Pd, both non linear, they are: bsaylor/aenv~ and creb/eadsr~ - both are hardcoded. I haven't checked them yet, I hope I can figure it out by looking at the code, since the documentation doesn't say much.</div>

<div> </div>

<div>cheers</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div> </div>
</blockquote>
</div>
</div>
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></body></html>