aboutsummaryrefslogtreecommitdiff
path: root/reference/delta.pd
diff options
context:
space:
mode:
Diffstat (limited to 'reference/delta.pd')
-rw-r--r--reference/delta.pd63
1 files changed, 63 insertions, 0 deletions
diff --git a/reference/delta.pd b/reference/delta.pd
new file mode 100644
index 0000000..7f0bf8b
--- /dev/null
+++ b/reference/delta.pd
@@ -0,0 +1,63 @@
+#N canvas 9 51 986 579 10;
+#X obj 139 177 delta~;
+#X obj 80 44 noise~;
+#X obj 83 268 print a;
+#X obj 143 267 print b;
+#X obj 329 312 dac~;
+#X obj 226 47 osc~ 400;
+#X graph graph1 0 -1 999 1 497 206 697 66;
+#X array orig 1000 float 0;
+#X pop;
+#X graph graph2 0 -1 999 1 431 563 931 203;
+#X array diff 1000 float 0;
+#X pop;
+#X obj 129 390 tabwrite~ diff;
+#X msg 220 340 bang;
+#X floatatom 225 24 5 0 0;
+#X obj 139 468 table test;
+#X msg 139 442 resize 2205;
+#X obj 242 389 tabwrite~ test;
+#X obj 243 415 tabwrite~ orig;
+#X obj 403 515 print;
+#X msg 350 441 bang;
+#X obj 346 530 t b;
+#X obj 332 552 spigot;
+#X obj 375 528 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 0
+1;
+#X obj 320 474 tabread~ test;
+#X obj 201 532 phasor~ 10;
+#X floatatom 201 510 5 0 0;
+#X obj 201 556 *~ 2205;
+#X obj 147 45 phasor~ 1;
+#X obj 160 93 nop~;
+#X obj 287 224 metro 100;
+#X obj 287 198 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 0
+1;
+#X floatatom 173 18 5 0 0;
+#X obj 109 77 *~ 0.1;
+#X floatatom 86 103 5 0 0;
+#X text 308 36 if this sample is larger than last \, value is positive
+\, else negative ...;
+#X text 308 18 delta~: difference between this and last sample;
+#X connect 0 0 4 1;
+#X connect 0 0 8 0;
+#X connect 1 0 29 0;
+#X connect 9 0 8 0;
+#X connect 9 0 13 0;
+#X connect 9 0 14 0;
+#X connect 10 0 5 0;
+#X connect 12 0 11 0;
+#X connect 17 0 18 0;
+#X connect 19 0 18 1;
+#X connect 21 0 23 0;
+#X connect 22 0 21 0;
+#X connect 23 0 20 0;
+#X connect 24 0 25 0;
+#X connect 25 0 0 0;
+#X connect 25 0 13 0;
+#X connect 25 0 14 0;
+#X connect 26 0 9 0;
+#X connect 27 0 26 0;
+#X connect 28 0 24 0;
+#X connect 29 0 25 0;
+#X connect 30 0 29 1;