[PD] up-down saw-wave

Frank Barknecht fbar at footils.org
Sun Nov 19 12:52:06 CET 2006


Hallo,
hard off hat gesagt: // hard off wrote:

> does anybody know how to make an up-down saw-wave ?
> 
> phasor~ just ramps up and then goes straight back to 0, but i want
> something that ramps up then back down again.

doc/3.audio.examples/J05.triangle.pd

> i know it's possible to use a [metro] and [line~] based solution, but
> that falls apart at high frequencies.

You could use [vline~] instead and replace the metro, which has a
lower limit for its period of 1ms, with a [delay]-based
metro as attached, that can go as fast as you like.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 95 141 timer;
#X obj 95 115 t b b;
#X floatatom 95 167 5 0 0 0 - - -;
#X obj 95 61 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X floatatom 181 63 5 0 0 0 - - -;
#X obj 95 87 delmetro 0.01;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 3 0 5 0;
#X connect 4 0 5 1;
#X connect 5 0 1 0;
-------------- next part --------------
#N canvas 254 119 439 347 10;
#X obj 101 104 select 0 1;
#X obj 101 53 inlet;
#X obj 101 78 t a a;
#X msg 101 126 stop;
#X obj 100 256 outlet;
#X obj 202 49 inlet;
#X text 85 24 like [metro] \, only faster;
#X obj 100 212 t b b;
#X obj 130 232 del 0;
#X obj 259 70 loadbang;
#X obj 259 92 f \$1;
#X obj 100 155 del;
#X obj 100 188 spigot;
#X obj 202 125 max 0.01;
#X connect 0 0 3 0;
#X connect 0 1 11 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 2 1 12 1;
#X connect 3 0 11 0;
#X connect 5 0 13 0;
#X connect 7 0 4 0;
#X connect 7 1 8 0;
#X connect 8 0 11 0;
#X connect 9 0 10 0;
#X connect 10 0 13 0;
#X connect 11 0 12 0;
#X connect 12 0 7 0;
#X connect 13 0 11 1;


More information about the Pd-list mailing list