Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2fa0356568
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (40 sloc) 1.772 kb
#N canvas 0 25 1272 692 10;
#X obj 42 181 notein;
#X obj 33 57 mtl/piano 1;
#X obj 29 472 mtl/out~;
#X obj 42 210 pack;
#X text 654 140 tags: instrument~;
#X text 651 179 Making trapezoidal waves from sawtooth waves;
#X text 437 560 updated for Pd version 0.39;
#X text 655 275 If the amplitudes sum to zero (with negative ones to
balance positive ones) \, the slope of each linear segment becomes
zero. Otherrwise \, the segments have just enough slope to make up
for the three jumps ane get to the same starting value after each cycle..
;
#X text 655 216 Here we combine three sawtooth waves with controllable
relative phases and amplitudes (in percent \, between -100 and 100.)
Each sawtooth wave gives rise to one jump (upward or downward) per
cycle.;
#X text 652 155 Author : Miller Pucket;
#X text 654 126 Description: Midi instrument using J02 Trapezoid;
#X obj 388 217 hsl 100 15 0 100 0 0 /trapezoid~/phase-1 /trapezoid~/phase-1
phase-1 105 7 0 8 -262144 -1 -1 0 1;
#X obj 385 189 cnv 15 200 20 empty empty /trapezoid~/ 2 12 0 8 -258401
-262144 0;
#X obj 388 236 hsl 100 15 0 100 0 0 /trapezoid~/amp-1 /trapezoid~/amp-1
amp-1 105 7 0 8 -262144 -1 -1 0 1;
#X obj 388 254 hsl 100 15 0 100 0 0 /trapezoid~/phase-2 /trapezoid~/phase-2
phase-2 105 7 0 8 -262144 -1 -1 0 1;
#X obj 388 273 hsl 100 15 0 100 0 0 /trapezoid~/amp-2 /trapezoid~/amp-2
amp-2 105 7 0 8 -262144 -1 -1 0 1;
#X obj 388 292 hsl 100 15 0 100 0 0 /trapezoid~/phase-3 /trapezoid~/phase-3
phase-3 105 7 0 8 -262144 -1 -1 0 1;
#X obj 388 311 hsl 100 15 0 100 0 0 /trapezoid~/amp-3 /trapezoid~/amp-3
amp-3 105 7 0 8 -262144 -1 -1 0 1;
#X obj 31 443 mtl/trapezoid~ /id trapezoid;
#X connect 0 0 3 0;
#X connect 0 1 3 1;
#X connect 1 0 18 0;
#X connect 3 0 18 0;
#X connect 18 0 2 0;
#X connect 18 0 2 1;
Jump to Line
Something went wrong with that request. Please try again.