aboutsummaryrefslogtreecommitdiff
path: root/examples/unpack~.pd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unpack~.pd')
-rw-r--r--examples/unpack~.pd59
1 files changed, 59 insertions, 0 deletions
diff --git a/examples/unpack~.pd b/examples/unpack~.pd
new file mode 100644
index 0000000..c8cee41
--- /dev/null
+++ b/examples/unpack~.pd
@@ -0,0 +1,59 @@
+#N canvas 299 436 736 292 10;
+#X text 460 14 see also;
+#X obj 461 33 pack~;
+#X text 147 40 unpack~;
+#X text 178 65 convert float-packages to signals;
+#X obj 85 132 unpack~ 512;
+#X text 234 156 creation: "unpack~ [<bufsize>]";
+#X text 255 181 <bufsize>: in samples (defaults to 64) \; could be fine if you don't have a constant stream of floats;
+#N canvas 94 221 839 437 example 0;
+#X obj 69 75 osc~ 689.062;
+#X obj 69 123 pack~;
+#X obj 69 94 *~ 0.2;
+#X obj 69 142 unfold;
+#X obj 69 160 t b f;
+#X obj 69 178 +;
+#X obj 69 198 + 1;
+#X obj 69 236 select 0;
+#X obj 69 256 f;
+#X obj 69 332 unpack~;
+#X floatatom 69 50;
+#X obj 69 218 % 8;
+#X text 74 6 a simple samplerate-reducer;
+#X text 116 129 samplerate = 44.1kHz;
+#X text 126 258 samplerate = 5.5125kHz;
+#X text 108 363 reconstructed signal @ 44.1kHz;
+#X obj 127 114 dac~ 2;
+#X obj 69 387 dac~ 1;
+#X msg 69 276 \$1 \$1 \$1 \$1 \$1 \$1 \$1 \$1;
+#X graph graph2 0 -1 64 1 526 213 826 13;
+#X array high_rate 100 float;
+#X pop;
+#X graph graph3 0 -1 64 1 526 441 826 241;
+#X array low_rate 100 float;
+#X pop;
+#X obj 170 113 tabsend~ high_rate;
+#X obj 114 388 tabsend~ low_rate;
+#X msg 349 240 \; pd dsp 0;
+#X msg 349 179 \; pd dsp 1;
+#X obj 349 221 loadbang;
+#X connect 0 0 2 0;
+#X connect 1 0 3 0;
+#X connect 2 0 1 0;
+#X connect 2 0 16 0;
+#X connect 2 0 21 0;
+#X connect 3 0 4 0;
+#X connect 4 0 5 0;
+#X connect 4 1 8 1;
+#X connect 5 0 6 0;
+#X connect 6 0 11 0;
+#X connect 7 0 8 0;
+#X connect 8 0 18 0;
+#X connect 9 0 17 0;
+#X connect 9 0 22 0;
+#X connect 10 0 0 0;
+#X connect 11 0 5 1;
+#X connect 11 0 7 0;
+#X connect 18 0 9 0;
+#X connect 25 0 23 0;
+#X restore 85 249 pd example;