[PD] tips

bsaylor at macalester.edu bsaylor at macalester.edu
Sat Jun 8 12:14:07 CEST 2002


The two versions should be equivalent (I tried subtracting them and got
silence).  Here's an abstraction, and it clips first.. :)

On Sat, Jun 08, 2002 at 10:43:11AM +0200, Orm Finnendahl wrote:
> Hi Ben,
> 
> I looked at your very nice distortion patch. Is it intentional that
> multiplication adding and clipping takes place in this order? If gain
> is != 1, the clipping in the result is not symmetrical. I changed it
> to clip before the adding and multiplication to keep the symmetry, but
> maybe that's not what you intend?
> 
> Yours,
> Orm
-------------- next part --------------
#N canvas 16 66 639 428 10;
#N canvas 0 0 450 300 graph2 0;
#X array array 200 float 1;
#A 0 -0.985715 -0.985715 -0.985715 -0.985715 -0.985715 -0.971429 -0.971429
-0.971429 -0.971429 -0.971429 -0.971429 -0.971429 -0.971429 -0.971429
-0.971429 -0.971429 -0.971429 -0.966667 -0.961905 -0.957143 -0.957143
-0.957143 -0.953572 -0.95 -0.946429 -0.942857 -0.942858 -0.942858 -0.942858
-0.942858 -0.942858 -0.942858 -0.935715 -0.928572 -0.92381 -0.919048
-0.914286 -0.911429 -0.908572 -0.905715 -0.902857 -0.9 -0.9 -0.895238
-0.890476 -0.885714 -0.88 -0.874286 -0.868572 -0.862857 -0.857143 -0.85
-0.842857 -0.835715 -0.828572 -0.821429 -0.814286 -0.807143 -0.8 -0.795238
-0.790476 -0.785715 -0.780953 -0.776191 -0.771429 -0.771429 -0.762857
-0.754286 -0.745714 -0.737143 -0.728572 -0.719048 -0.709524 -0.7 -0.690476
-0.680953 -0.671429 -0.657143 -0.642857 -0.628572 -0.614286 -0.6 -0.585714
-0.564286 -0.542857 -0.525 -0.507143 -0.489286 -0.471429 -0.435714
-0.414286 -0.385714 -0.357143 -0.335714 -0.314286 -0.292857 -0.271429
-0.242857 -0.214286 -0.157143 -0.135714 -0.114286 -0.0714285 -0.0285713
0.0142858 0.0428573 0.0809525 0.119048 0.157143 0.171429 0.242857 0.3
0.328572 0.357143 0.392857 0.428572 0.445715 0.462857 0.48 0.497143
0.514286 0.528572 0.542857 0.557143 0.571429 0.592857 0.614286 0.635715
0.657143 0.667858 0.678572 0.689286 0.7 0.710715 0.721429 0.732143
0.742858 0.752381 0.761905 0.771429 0.780953 0.790477 0.8 0.809524
0.819048 0.828572 0.837143 0.845715 0.854286 0.862858 0.871429 0.871429
0.885715 0.900001 0.904762 0.909524 0.914286 0.921429 0.928572 0.935715
0.942858 0.950001 0.957144 0.964286 0.971429 0.976191 0.980953 0.985715
0.990477 0.995239 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1;
#X coords 0 1 199 -1 200 140 1;
#X restore 418 9 graph;
#X obj 35 136 readsf~;
#X msg 15 39 1;
#X msg 35 66 0;
#X msg 82 71 open /home/me/power2.wav;
#X obj 51 319 dac~;
#X obj 51 253 xfer~ array 200;
#X obj 51 223 *~;
#X obj 202 103 vsl 15 128 0.5 3 0 1 empty empty empty 0 -8 0 8 -262144
-1 -1 2600 1;
#X floatatom 202 240 8 0 0;
#X connect 1 0 7 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 6 0 5 0;
#X connect 6 0 5 1;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 7 1;
-------------- next part --------------
#N canvas 496 46 309 405 10;
#X obj 48 243 +~ 1;
#X obj 48 311 tabread4~ \$1;
#X obj 148 204 int \$2;
#X obj 48 282 *~;
#X obj 148 251 / 2;
#X obj 148 227 - 1;
#X obj 148 179 loadbang;
#X obj 48 181 inlet~;
#X obj 48 343 outlet~;
#X obj 48 212 clip~ -1 1;
#X text 37 42 arg 1: table name;
#X text 37 62 arg 2: table size;
#X connect 0 0 3 0;
#X connect 1 0 8 0;
#X connect 2 0 5 0;
#X connect 3 0 1 0;
#X connect 4 0 3 1;
#X connect 5 0 4 0;
#X connect 6 0 2 0;
#X connect 7 0 9 0;
#X connect 9 0 0 0;


More information about the Pd-list mailing list