Maybe also this could be of interest:<br><br> <a href="http://puredata.hurleur.com/sujet-2453-cubic-soft-clip-distortion">http://puredata.hurleur.com/sujet-2453-cubic-soft-clip-distortion</a><br><br>Mathieu<br><br><div class="gmail_quote">
2010/9/12  <span dir="ltr">&lt;<a href="mailto:pd-list-request@iem.at">pd-list-request@iem.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send Pd-list mailing list submissions to<br>
        <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:pd-list-request@iem.at">pd-list-request@iem.at</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:pd-list-owner@iem.at">pd-list-owner@iem.at</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Pd-list digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. Re: Guitar distortion (Chebyshev?) (Mathieu Bouchard)<br>
   2. Re: Guitar distortion (Chebyshev?) (Mathieu Bouchard)<br>
   3. Re: <a href="http://puredata.info" target="_blank">puredata.info</a> wiki structured text format?<br>
      (Hans-Christoph Steiner)<br>
   4. Re: Guitar distortion (Chebyshev?) (Martin Peach)<br>
   5. Re: Pd-extended 0.42.5 release candidate 6 released!<br>
      (Hans-Christoph Steiner)<br>
   6. Re: Guitar distortion (Chebyshev?) (Mathieu Bouchard)<br>
   7. Re: Guitar distortion (Chebyshev?) (Kim Cascone)<br>
   8. Re: Guitar distortion (Chebyshev?) (Martin Peach)<br>
<br><br>---------- Messaggio inoltrato ----------<br>From: Mathieu Bouchard &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;<br>To: Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;<br>
Date: Sun, 12 Sep 2010 11:07:29 -0400 (EDT)<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>On Sun, 12 Sep 2010, Pierre Massat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
One issue is that it seems to sound good only when the amplitude of the sound is close to 1, which is obviously not the case for a raw guitar sound.<br>
</blockquote>
<br>
Tu peux utiliser la version polynômiale des formules de Tchébycheff, car celles-ci s&#39;étendent au delà de 1 sans problème, tandis que la version arccosinus a des problèmes en dehors de l&#39;intervalle -1..+1 (pour simplifier les choses, on dit habituellement qu&#39;elle n&#39;existe pas en dehors de cet intervalle...).<br>

<br>
Mais c&#39;est quand même mieux de pas tellement dépasser ±1, c&#39;est juste que les polynômes pardonnent beaucoup plus. C&#39;est un effet très dépendant du volume.<br>
<br>
 _______________________________________________________________________<br>
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC<br><br>---------- Messaggio inoltrato ----------<br>From: Mathieu Bouchard &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;<br>To: Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;<br>
Date: Sun, 12 Sep 2010 11:13:55 -0400 (EDT)<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>On Sun, 12 Sep 2010, Pierre Massat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I m not trying to model an amp here, i m only interested in modeling a distortion unit.<br>
</blockquote>
<br>
Ah, I forgot, did you try [expr~ tanh($v1)] ?<br>
<br>
At first I assumed that you wanted to go beyond that simple distorsion and into more interesting forms of distortion. Chebyshev&#39;s are only useful if you want something that can also sounds like pitch shifts by harmonic steps.<br>

<br>
I think that tanh is rather close to the physical behaviour of capacitors being strained, but surely not exactly that, and I didn&#39;t do the math to figure out what the real formula would be. (Did anyone try that ?)<br>

<br>
 _______________________________________________________________________<br>
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC<br><br>---------- Messaggio inoltrato ----------<br>From: Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>To: &quot;João Pais&quot; &lt;<a href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a>&gt;<br>
Date: Sun, 12 Sep 2010 11:29:51 -0400<br>Subject: Re: [PD] <a href="http://puredata.info">puredata.info</a> wiki structured text format?<br><br>
On Sep 12, 2010, at 4:14 AM, João Pais wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I personally loathe the stucturedText format.  I find it very difficult<br>
to make it work.  I use the MoinMoin syntax whenever I create a page on<br>
<a href="http://puredata.info" target="_blank">puredata.info</a>.<br>
</blockquote>
<br>
is there a reference link for that as well?<br>
<br>
I didn&#39;t said, but I&#39;m asking this because I wanted to put in an excel chart. usually I use normal html.<br>
</blockquote>
<br>
<br>
<a href="http://wiki.winehq.org/SyntaxReference" target="_blank">http://wiki.winehq.org/SyntaxReference</a><br>
<br>
.hc<br>
<br>
<br>
----------------------------------------------------------------------------<br>
<br>
Terrorism is not an enemy.  It cannot be defeated.  It&#39;s a tactic.  It&#39;s about as sensible to say we declare war on night attacks and expect we&#39;re going to win that war.  We&#39;re not going to win the war on terrorism.        - retired U.S. Army general, William Odom<br>

<br>
<br>
<br>
<br>
<br><br>---------- Messaggio inoltrato ----------<br>From: Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>To: Mathieu Bouchard &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;<br>
Date: Sun, 12 Sep 2010 11:32:41 -0400<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>On 2010-09-12 11:13, Mathieu Bouchard wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sun, 12 Sep 2010, Pierre Massat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I m not trying to model an amp here, i m only interested in modeling a<br>
distortion unit.<br>
</blockquote>
<br>
Ah, I forgot, did you try [expr~ tanh($v1)] ?<br>
<br>
At first I assumed that you wanted to go beyond that simple distorsion<br>
and into more interesting forms of distortion. Chebyshev&#39;s are only<br>
useful if you want something that can also sounds like pitch shifts by<br>
harmonic steps.<br>
<br>
I think that tanh is rather close to the physical behaviour of<br>
capacitors being strained, but surely not exactly that, and I didn&#39;t do<br>
the math to figure out what the real formula would be. (Did anyone try<br>
that ?)<br>
<br>
</blockquote>
<br>
See attached patch. I use it instead of a fuzz box now.<br>
It&#39;s not the capacitors, it&#39;s the amplifier losing gain when it approaches the power supply. Vacuum tubes have a softer knee than transistors.<br>
<br>
<br>
Martin<br>
<br><br>---------- Messaggio inoltrato ----------<br>From: Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>To: &quot;João Pais&quot; &lt;<a href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a>&gt;<br>
Date: Sun, 12 Sep 2010 12:03:25 -0400<br>Subject: Re: [PD] Pd-extended 0.42.5 release candidate 6 released!<br><br>
On Sep 12, 2010, at 4:14 AM, João Pais wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
a couple of my abstractions aren&#39;t packaged with this distribution, e.g.<br>
bezier.pd (it&#39;s in<br>
<a href="https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/abstractions/jmmmp/" target="_blank">https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/abstractions/jmmmp/</a>).<br>
</blockquote>
<br>
Yes, once the release process has started, then Pd-extended is built out<br>
of a branch in SVN and not trunk.  You can either check in the changes<br>
yourself, or tell me what to check in.<br>
</blockquote>
<br>
you mean there are 2 places where we should submit the code? is there a wiki page with the instructions for it?<br>
</blockquote>
<br>
When making a release, we work out of a branch so that only expected changes get incorporated into the release.<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I would prefer to do it myself, then I don&#39;t have to ask you again next time about it :)<br>
<br>
João<br>
</blockquote>
<br>
The current Pd-extended release branch is here:<br>
<br>
svn co <a href="https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended/0.42" target="_blank">https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended/0.42</a><br>
<br>
There are some basic instructions here, basically you want to do an SVN merge from trunk into a branch:<br>
<br>
<a href="http://puredata.info/docs/developer/GettingIntoPdextended" target="_blank">http://puredata.info/docs/developer/GettingIntoPdextended</a><br>
<br>
some instructions:<br>
<a href="http://www.google.com/webhp?hl=en#sclient=psy&amp;hl=en&amp;site=webhp&amp;q=svn+merge+trunk+into+branch&amp;aq=f&amp;aqi=g-c1g-o1&amp;aql=&amp;oq=&amp;gs_rfai=&amp;pbx=1&amp;fp=ab5cdb1806fef4aa" target="_blank">http://www.google.com/webhp?hl=en#sclient=psy&amp;hl=en&amp;site=webhp&amp;q=svn+merge+trunk+into+branch&amp;aq=f&amp;aqi=g-c1g-o1&amp;aql=&amp;oq=&amp;gs_rfai=&amp;pbx=1&amp;fp=ab5cdb1806fef4aa</a><br>

<br>
.hc<br>
<br>
----------------------------------------------------------------------------<br>
<br>
Programs should be written for people to read, and only incidentally for machines to execute.<br>
 - from Structure and Interpretation of Computer Programs<br>
<br>
<br>
<br>
<br><br>---------- Messaggio inoltrato ----------<br>From: Mathieu Bouchard &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;<br>To: Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>
Date: Sun, 12 Sep 2010 12:05:30 -0400 (EDT)<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>On Sun, 12 Sep 2010, Martin Peach wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
It&#39;s not the capacitors, it&#39;s the amplifier losing gain when it approaches the power supply.<br>
</blockquote>
<br>
Yeah, but it seems to be a pattern similar to the one found in capacitors, because capacitor theory has exp(-x) all over it, and the only way that capacitors behave like [hip~] is when the signal is much below the capacity rating (µF)... otherwise they lose gain... when they don&#39;t, it&#39;s because exp(-x) can be well approximated by x.<br>

<br>
And then, exp is very close to tanh in several different ways, one of them being this (use gnuplot) :<br>
<br>
  plot [-2:2] [-1:1] exp(x*sqrt(2))-1, 1-exp(-x*sqrt(2)), tanh(x), x<br>
<br>
I put the plain &#39;x&#39; at the end to show what I mean above (though you already know that)<br>
<br>
 _______________________________________________________________________<br>
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC<br><br>---------- Messaggio inoltrato ----------<br>From: Kim Cascone &lt;<a href="mailto:kim@anechoicmedia.com">kim@anechoicmedia.com</a>&gt;<br>To: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
Date: Sun, 12 Sep 2010 10:22:59 -0700<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>couldn&#39;t locate the Smeck.pd download on the link posted for Miller&#39;s page<br>
but here is the direct link in case you couldn&#39;t find it:<br>
<a href="http://crca.ucsd.edu/%7Emsp/smeck/latest/smeck-01.zip" target="_blank">http://crca.ucsd.edu/~msp/smeck/latest/smeck-01.zip</a><br>
<br>
<br>
<br><br>---------- Messaggio inoltrato ----------<br>From: Martin Peach &lt;<a href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>To: Mathieu Bouchard &lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;<br>
Date: Sun, 12 Sep 2010 13:24:57 -0400<br>Subject: Re: [PD] Guitar distortion (Chebyshev?)<br>On 2010-09-12 12:05, Mathieu Bouchard wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sun, 12 Sep 2010, Martin Peach wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
It&#39;s not the capacitors, it&#39;s the amplifier losing gain when it<br>
approaches the power supply.<br>
</blockquote>
<br>
Yeah, but it seems to be a pattern similar to the one found in<br>
capacitors, because capacitor theory has exp(-x) all over it, and the<br>
only way that capacitors behave like [hip~] is when the signal is much<br>
below the capacity rating (µF)... otherwise they lose gain... when they<br>
don&#39;t, it&#39;s because exp(-x) can be well approximated by x.<br>
<br>
</blockquote>
<br>
I guess it&#39;s similar since capacitors charge at a rate proportional to a voltage difference, while transistors can supply charge carriers at a rate proportional to a voltage difference, so caps charge fastest when they are nearly empty and transistors have the best gain with small signal inputs.<br>

<br>
The whole universe has exp written all over it in fact...<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
And then, exp is very close to tanh in several different ways, one of<br>
them being this (use gnuplot) :<br>
<br>
plot [-2:2] [-1:1] exp(x*sqrt(2))-1, 1-exp(-x*sqrt(2)), tanh(x), x<br>
<br>
I put the plain &#39;x&#39; at the end to show what I mean above (though you<br>
already know that)<br>
<br>
</blockquote>
<br>
Of course, all the hyperbolic trig functions are made from exp, by definition.<br>
<br>
<a href="http://en.wikipedia.org/wiki/Hyperbolic_function" target="_blank">http://en.wikipedia.org/wiki/Hyperbolic_function</a><br>
<br>
Another use of exp is the sigmoid function used in biology, that can be used to make a soft transition from one state to another as in &#39;fuzzy logic&#39;.<br>
<br>
Martin<br>
<br>_______________________________________________<br>
Pd-list mailing list<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a><br>
to manage your subscription (including un-subscription) see<br>
<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>