Hi there,
I've been trying to incorporate a Karplus-Strong patch into a larger, modular synthesizer patch. The original one works fine. But, when I paste it into my new environment, it doesn't work. The audio signal just goes haywire, into the millions! I tried fiddling with different aspects of the patch, until I noticed something interesting:
When I took the original working patch, selected all, cut, and pasted it exactly in place, it went haywire! When I checked the original patch to the cut-and-pasted patch in a text editor, they showed to be identical, line for line. Yet one works and one doesn't work!
Can someone explain?
Thanks!
#N canvas 257 182 679 589 12;
#X obj 376 141 noise~;
#X obj 376 231 *~;
#X obj 214 -53 inlet;
#X obj 214 4 tabread pitches;
#X obj 214 479 outlet~;
#X obj 214 52 *;
#X obj 232 28 r transpose;
#X obj 214 188 pow -1;
#X obj 214 165 / 1000;
#X obj 214 -21 unpack f f;
#X msg 435 207 1;
#X msg 473 207 0;
#X obj 376 263 delwrite~ \$0-buffer 1000;
#X obj 435 119 t b f;
#X obj 214 431 *~;
#X obj 467 148 / 127;
#X obj 403 81 sel 0;
#X obj 473 178 del 8;
#X obj 398 -27 block~ 16;
#X obj 403 331 pack 0 0;
#X msg 403 358 \$1 \$2;
#X msg 483 358 \$1 \$2;
#X obj 483 331 pack 0 0;
#X obj 403 386 vline~;
#X obj 214 138 *;
#X msg 214 109 1;
#X obj 130 -11 * 0.001;
#X obj 130 14 + 1;
#X obj 130 67 line;
#X obj 130 -42 r padx;
#X msg 130 37 \$1 \, 1 50;
#X obj 214 236 vd~ \$0-buffer;
#X obj 536 301 r attack;
#X obj 456 301 r release;
#N canvas 1004 293 523 595 pitchdamping 0;
#X obj 78 146 inlet;
#X obj 78 479 outlet;
#X obj 78 265 log;
#X obj 78 290 / 2.30259;
#X obj 78 451 min 0.9999;
#X obj 78 420 expr 1 - pow(10 \, $f1);
#X floatatom 200 317 5 0 0 0 - - -;
#X obj 78 315 - 3;
#X obj 78 345 * -0.85;
#X obj 78 392 -;
#X obj 272 328 * -1;
#X obj 272 353 + 3;
#X obj 272 147 inlet;
#X floatatom 179 510 5 0 0 0 - - -;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 3 0 7 0;
#X connect 4 0 1 0;
#X connect 4 0 13 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 5 0;
#X connect 10 0 11 0;
#X connect 11 0 9 1;
#X connect 12 0 10 0;
#X restore 260 362 pd pitchdamping;
#N canvas 484 241 448 487 FIR 0;
#X obj 170 151 z~;
#X obj 188 126 / 2;
#X obj 250 149 z~;
#X obj 90 204 *~ 0.3333;
#X obj 90 25 inlet~;
#X obj 90 420 outlet~;
#X obj 170 204 *~ 0.3333;
#X obj 250 204 *~ 0.3333;
#X obj 90 325 expr~ $v1 + $v2 + $v3;
#X obj 283 28 inlet;
#X connect 0 0 6 0;
#X connect 1 0 0 1;
#X connect 2 0 7 0;
#X connect 3 0 8 0;
#X connect 4 0 3 0;
#X connect 4 0 0 0;
#X connect 4 0 2 0;
#X connect 6 0 8 1;
#X connect 7 0 8 2;
#X connect 8 0 5 0;
#X connect 9 0 1 0;
#X connect 9 0 2 1;
#X restore 214 304 pd FIR;
#N canvas 563 611 642 618 interpolator 0;
#X obj 232 74 -;
#X obj 80 76 -;
#X obj 99 -1 -;
#X obj 232 96 /;
#X obj 80 97 /;
#X obj 213 128 *;
#X obj 3 73 -;
#X obj 213 150 +;
#X obj 43 128 *;
#X obj 43 150 +;
#X obj 99 -23 r anchorfreq2;
#X obj 184 -23 r anchorfreq1;
#X obj 232 31 r stringdamp2;
#X obj 350 32 r stringdamp1;
#X obj 80 44 r soften2;
#X obj 147 44 r soften1;
#X obj 213 236 outlet;
#X obj 43 234 outlet;
#X obj 147 67 t b f;
#X obj 350 57 t b f;
#X obj 43 191 limit 0 8 0;
#X obj 213 189 limit 0 1 0;
#X obj 7 5 inlet;
#X floatatom 302 227 5 0 0 0 - - -;
#X connect 0 0 3 0;
#X connect 1 0 4 0;
#X connect 2 0 3 1;
#X connect 2 0 4 1;
#X connect 3 0 5 1;
#X connect 4 0 8 1;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 6 0 8 0;
#X connect 7 0 21 0;
#X connect 8 0 9 0;
#X connect 9 0 20 0;
#X connect 10 0 2 0;
#X connect 10 0 6 1;
#X connect 11 0 2 1;
#X connect 12 0 0 0;
#X connect 12 0 7 1;
#X connect 12 0 21 1;
#X connect 13 0 19 0;
#X connect 13 0 21 2;
#X connect 14 0 1 0;
#X connect 14 0 9 1;
#X connect 14 0 20 1;
#X connect 15 0 18 0;
#X connect 15 0 20 2;
#X connect 18 0 1 0;
#X connect 18 1 1 1;
#X connect 19 0 0 0;
#X connect 19 1 0 1;
#X connect 20 0 17 0;
#X connect 21 0 16 0;
#X connect 21 0 23 0;
#X connect 22 0 6 0;
#X restore 253 269 pd interpolator;
#X obj 273 67 s freq;
#X obj 214 84 t b f f;
#X obj 214 396 *~;
#X obj 137 343 lop~ 4000;
#X obj 58 189 PRINT;
#X connect 0 0 1 0;
#X connect 1 0 12 0;
#X connect 2 0 9 0;
#X connect 3 0 5 0;
#X connect 5 0 34 0;
#X connect 5 0 37 0;
#X connect 5 0 38 0;
#X connect 6 0 5 1;
#X connect 7 0 31 0;
#X connect 8 0 7 0;
#X connect 9 0 3 0;
#X connect 9 1 16 0;
#X connect 10 0 1 1;
#X connect 11 0 1 1;
#X connect 13 0 10 0;
#X connect 13 0 17 0;
#X connect 13 1 15 0;
#X connect 14 0 4 0;
#X connect 15 0 22 0;
#X connect 16 0 19 0;
#X connect 16 1 13 0;
#X connect 17 0 11 0;
#X connect 19 0 20 0;
#X connect 20 0 23 0;
#X connect 21 0 23 0;
#X connect 22 0 21 0;
#X connect 23 0 14 1;
#X connect 24 0 8 0;
#X connect 24 0 41 0;
#X connect 25 0 24 0;
#X connect 26 0 27 0;
#X connect 27 0 30 0;
#X connect 28 0 24 0;
#X connect 29 0 26 0;
#X connect 30 0 28 0;
#X connect 31 0 35 0;
#X connect 32 0 22 1;
#X connect 33 0 19 1;
#X connect 34 0 39 1;
#X connect 35 0 40 0;
#X connect 36 0 35 1;
#X connect 36 1 34 1;
#X connect 38 0 25 0;
#X connect 38 1 24 1;
#X connect 38 2 36 0;
#X connect 39 0 12 0;
#X connect 39 0 14 0;
#X connect 40 0 39 0;