Hallo, martin brinkmann hat gesagt: // martin brinkmann wrote:
hard off wrote:
does anybody know how to make an up-down saw-wave ?
i'm quite new to pd, so maybe there is a more elegant method...
to make a triangle wave i have used a phasor, and clipped both, the phasor and 1-phasor with a range of 0..0.5. then added both signals (and subtracted 0.5 or 0.75 and scaled, if necessary).
The approach of 3.audio.examples/J05.triangle.pd in Miller's docs is a bit more elegant, as it does the same with less objects and allows for easier scaling. (The "crossover-point" of the minimum of the sum of a phasor and 1-phasor is at 0.5 so the clipping is kind of built-in in [min~]).
Attached patch illustrates his approach with a "message based" phasor and compares it to your clipping method.
Frank Barknecht _ ______footils.org_ __goto10.org__