<?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[Reverse sawtooth to triangle wave to sawtooth wave]]></title><description><![CDATA[<p>hello everybody,</p>
<p>i 've got some problem to make an abstraction which would smoothly fade from a<br />
reverse sawtooth to a triangle and then to a sawtooth like in some analog synthesizer.<br />
i know the J05.triangle patch but it doesn' t give a very precise shape for the sawtooths form, it' s good for making a triangle wave. usually i use separate oscillator for each waveform but i would like to make a single abstraction. i found a documentation about this subject on this pdf file :</p>
<p><a href="http://www.analoguesystems.co.uk/pdf/RS95-95E.indd.pdf" rel="nofollow">http://www.analoguesystems.co.uk/pdf/RS95-95E.indd.pdf</a></p>
<p>in fact i' m trying to make a classical shape control <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>can you help me ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 10:08:01 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/6049.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Mar 2012 15:57:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Wed, 07 Mar 2012 15:57:03 GMT]]></title><description><![CDATA[<p>hello everybody,</p>
<p>i 've got some problem to make an abstraction which would smoothly fade from a<br />
reverse sawtooth to a triangle and then to a sawtooth like in some analog synthesizer.<br />
i know the J05.triangle patch but it doesn' t give a very precise shape for the sawtooths form, it' s good for making a triangle wave. usually i use separate oscillator for each waveform but i would like to make a single abstraction. i found a documentation about this subject on this pdf file :</p>
<p><a href="http://www.analoguesystems.co.uk/pdf/RS95-95E.indd.pdf" rel="nofollow">http://www.analoguesystems.co.uk/pdf/RS95-95E.indd.pdf</a></p>
<p>in fact i' m trying to make a classical shape control <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>can you help me ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Wed, 07 Mar 2012 15:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Wed, 07 Mar 2012 19:23:02 GMT]]></title><description><![CDATA[<p>Hey pouk,<br />
what do you mean with &quot;it doesn' t give a very precise shape for the sawtooths form&quot; ??. If you use a &quot;raw&quot; [phasor~]-sawtooth you will hear tons of aliasing, so 0% and 100% of that &quot;shapevalue&quot; will not sound that good anyways..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/2</guid><dc:creator><![CDATA[Flipp]]></dc:creator><pubDate>Wed, 07 Mar 2012 19:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Wed, 07 Mar 2012 19:54:34 GMT]]></title><description><![CDATA[<p>i totaly agree with you but i think it' s another problem. Maybe i can use generating waveform in order to avoid aliasing. J05.triangle is a good example and may be a good solution for my problem but it doesn' t provide a complete sawtooth shape. If you test it, you will see that when you decrease the slope controls you will find a sawtooth but with a very low amplitude. The more you reach the sawtooth shape the more the amplitude decrease.<br />
My objective is to have a sawtooth/triangle oscillator/inverse sawtooth with smooth fading between each form and same amplitudes.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/3</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Wed, 07 Mar 2012 19:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Wed, 07 Mar 2012 20:27:50 GMT]]></title><description><![CDATA[<p>Ok I see,<br />
So you just want one parameter for the shape and a constant amp?!?<br />
I think the idea of taking the smaller one ( ...min(,) ) of two functions that change with the [phasor~]s &quot;phase&quot; or &quot;time-per-period&quot; ( x ) is the easiest (and fastes?!)<br />
So it's like OUT=min(f(x),g(x))<br />
It's pretty easy if you know about vectors:<br />
We have three points [0,0], [p,1], [1,0] laying on two lines... So lets take:</p>
<p>r_vect1=(p, 1), and r_vect2=(1-p, -1) that will be attached to the first one..</p>
<p>Now just solve: ((0, 0))+a*r_vect1=(x, f(x)) for f(x)<br />
and solve: r_vect1+b*r_vect2=(x, g(x)) for g(x) .<br />
In short get rid of the a and b!<br />
Finally insert this into &quot;OUT&quot;.</p>
<p>ps ...man just writing the results would have been faster...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/4</guid><dc:creator><![CDATA[Flipp]]></dc:creator><pubDate>Wed, 07 Mar 2012 20:27:50 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Wed, 07 Mar 2012 20:43:15 GMT]]></title><description><![CDATA[<p>whaou i' m a bit lost...i don' t understand how to write it in pure data. i' ve got<br />
a low level in mathematic knowledge...please can you schematize it ? mabe i will be<br />
able to transpose it in pure data and then understand what happen.</p>
<p>thank you</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/5</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Wed, 07 Mar 2012 20:43:15 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Thu, 08 Mar 2012 05:22:58 GMT]]></title><description><![CDATA[<p>The last sentence in the J05.triangle.pd is the clue you're looking for here:</p>
<p>&quot;If we wish instead to specify the corner location (x, y) (with x in cycles, 0&lt;x&lt;1) we set s = y/x and t = y/(1-x). The DC value is y/2.&quot;</p>
<p>You want y to be a constant that is always equal to .5. x is the location of the corner within the cycle. So just plug .5 in for y and use a slider or whatever to change x (making sure it is between 0 and 1), and there you go.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/6</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Thu, 08 Mar 2012 05:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Thu, 08 Mar 2012 07:51:34 GMT]]></title><description><![CDATA[<p>i don' t know if i understand everything. so what you say malstrom looks like something i did yet. indeed my first attempt in J05.triangle.pd was to fix a constant<br />
for up control at 0.5 and to put a slider for down control between à an 1. if you look on the graph you will see that sawtooth got a very slow amplitude when you reach it.<br />
in my school there are some users of reaktor and they say to me that what i am looking for is a kind of width control (name in reaktor). it looks like a symetric control like a PWM for a square wave. for example at a duty cycle of 50% your square wave is symetric. i' m looking for something like it but for a sinewave and a triangle wave.<br />
we can find an illustration of what i am talking about at the end of p.49 and end of p.50 in the pdf that i mentionned in my first post.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/7</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Thu, 08 Mar 2012 07:51:34 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Thu, 08 Mar 2012 18:04:14 GMT]]></title><description><![CDATA[<p>..oh btw. the variable &quot;p&quot; I mentioned is that &quot;pwm&quot;-/&quot;shape&quot;-parameter you are looking for!</p>
<p>I hope these graphs will help you a little.. ...due to the limitations of painting with letters this example is for a p=0.5...</p>
<p>| / &lt;- f(x) |\ 1_<br />
| / &amp; | \ &lt;- g(x) =&gt; | /\ &lt;-min(f(x),g(x))<br />
|/___ x |__\_x |/__\___x<br />
0 1 0 1 0 1</p>
<p>The last graph is the one you want to create, cause if you use a [phasor~]s signal as the x-value you kind of &quot;play&quot; the shape.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/8</guid><dc:creator><![CDATA[Flipp]]></dc:creator><pubDate>Thu, 08 Mar 2012 18:04:14 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Thu, 08 Mar 2012 18:40:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/pouk">@pouk</a> said:</p>
<blockquote>
<p>indeed my first attempt in J05.triangle.pd was to fix a constant<br />
for up control at 0.5 and to put a slider for down control between à an 1.</p>
</blockquote>
<p>x is the position of the peak between the beginning and end of the cycle, and y is the amplitude of that peak. &quot;Up&quot; and &quot;down&quot; refer to the <em>slopes</em> of the triangle wave. You want y to always equal .5, but changing x is going to change both slopes. So, again, looking at the last sentence of the patch:</p>
<p>up = s = .5/x</p>
<p>down = t = .5/(1-x)</p>
<blockquote>
<p>in my school there are some users of reaktor and they say to me that what i am looking for is a kind of width control (name in reaktor).</p>
</blockquote>
<p>Yeah, Reaktor comes with several pre-made oscillators that just might have a &quot;width&quot; input. In Pd, you have to make it yourself (which is what you're doing here) or find one someone else made. The triangle one is a bit tricky, though. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /></p>
<blockquote>
<p>we can find an illustration of what i am talking about at the end of p.49 and end of p.50 in the pdf that i mentionned in my first post.</p>
</blockquote>
<p>I don't know how that oscillator is specifically working, but it looks more like phase distortion. I just recently posted a patch that emulates the Casio CZ oscillators, and the &quot;saw&quot; and &quot;pulse&quot; modes look the ones in that .pdf.</p>
<p><a href="http://puredata.hurleur.com/sujet-6796-casio-oscillators" rel="nofollow">http://puredata.hurleur.com/sujet-6796-casio-oscillators</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/9</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Thu, 08 Mar 2012 18:40:14 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Fri, 09 Mar 2012 10:37:57 GMT]]></title><description><![CDATA[<p>ok, i think the main problem is that i am not able to link the equation mentioned with pure data patch <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>&quot;If we wish instead to specify the corner location (x, y) (with x in cycles, 0&lt;x&lt;1) we set s = y/x and t = y/(1-x). The DC value is y/2.&quot;</p>
<p>i learn a lot by looking on what happen on graph but i can' t manage to write these mathematic equation with pure data object. how can i write these equations with<br />
boxes ? so i understand that x is the position of the corner and y is the amplitude. now if i want to change the position of the peak i need to change the slopes and if i change the slopes the amplitude increase or decrease...<br />
so i tried to change the amplitude of the output of min~ according to the position of the peak in order to avoid low amplitude level. i know it doesn' t do what i want but<br />
i do my best...:(</p>
<p>here the patch</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/J05.triangleGalereWidth.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/J05.triangleGalereWidth.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/10</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Fri, 09 Mar 2012 10:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Fri, 09 Mar 2012 19:54:41 GMT]]></title><description><![CDATA[<p>Okay, you're over-thinking it here. All you need to do is input the slopes, and those equations give you the slopes. The patch itself is already done and doesn't need editing. Take a look at the attached.</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/j05.trianglepeak.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/j05.trianglepeak.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/11</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Fri, 09 Mar 2012 19:54:41 GMT</pubDate></item><item><title><![CDATA[Reply to Reverse sawtooth to triangle wave to sawtooth wave on Sat, 10 Mar 2012 14:28:10 GMT]]></title><description><![CDATA[<p>ok ok it' s very clear now <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> i know who is s, t and x very useful ! great !<br />
now i have to play with this new stuff <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>Maelstorm, flipp thank you for your patience !</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/6049/reverse-sawtooth-to-triangle-wave-to-sawtooth-wave/12</guid><dc:creator><![CDATA[pouk]]></dc:creator><pubDate>Sat, 10 Mar 2012 14:28:10 GMT</pubDate></item></channel></rss>