<div><br></div><div>I tried again, and now it works much better than before... so I guess there was something wrong before.</div><div><br></div><div>Well Claude, it seems it almost works as the [triangle~] object.</div><div>
<br></div><div>Do you guys know about this one? It comes in some external library.<br><div><br></div><div>Were you who did it anyway Claude? :)</div><div><br></div><div>[triangle~] works in a similar fashion, it goes smoothly from inverse sawtooth to triangle and the sawtooth depending on the parameter (from 0 to 1).<br>
</div><div><br></div><div>The thing is that Triangle corrects the DC Offset, which could easily be done in the expr. But now I may start to sound like an obssessed DC Offset maniac.</div><div><br></div><div>Cheers</div><div>
Alex</div><div><br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 1:25 PM, Claude Heiland-Allen <span dir="ltr"><<a href="mailto:claudiusmaximus@goto10.org">claudiusmaximus@goto10.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Alexandre Porres wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Mar 30, 2009 at 12:02 PM, Claude Heiland-Allen <<br>
<a href="mailto:claudiusmaximus@goto10.org" target="_blank">claudiusmaximus@goto10.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
[phasor~] [r~ shape]<br>
[expr~ if($v1<$v2,$v1/$v2,(1-$v1)/(1-$v2))]<br>
<br>
<br>
</blockquote>
I tried that, but it didnt actually worked, I just get actual sawtooths, and<br>
no real triangles.<br>
</blockquote>
<br></div>
Sorry for the shortness/lack of explanation, 0<shape<1, where 1 for phasor, 0.5 for triangle, 0 for backwards phasor.<br>
<br>
considering shape as a constant, obviously you get weird results if you modulate it, but that's half the fun:<br>
<br>
0.0 <= input <= shape ~> 0.0 <= output <= 1.0 (rising ramp)<br>
shape <= input <= 1.0 ~> 1.0 >= output >= 0.0 (falling ramp)<br>
<br>
Hope this helps,<div><div></div><div class="h5"><br>
<br>
<br>
Claude<br>
-- <br>
<a href="http://claudiusmaximus.goto10.org" target="_blank">http://claudiusmaximus.goto10.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alexandre Torres Porres<br>cel. (11)8179-6226<br>Website: <a href="http://porres.googlepages.com/home">http://porres.googlepages.com/home</a><br><a href="http://www.myspace.com/alexandretorresporres">http://www.myspace.com/alexandretorresporres</a><br>
<br>
</div></div>