-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplot~.pd
96 lines (96 loc) · 2.66 KB
/
plot~.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#N canvas 0 0 1257 744 10;
#X msg 436 -37 set \$1;
#X obj 436 -14 block~;
#X text 425 -133 initial limits;
#X obj 435 31 s \$0-maxy;
#X obj 22 -195 inlet~;
#X obj 436 -90 \$1;
#X obj 436 -61 expr if($i1 > 0 \, $i1 \, 64);
#X obj 435 74 s \$0-minx;
#X obj 422 53 i 0;
#X obj 436 -115 loadbang;
#X obj 435 121 s \$0-miny;
#X obj 422 9 i 1;
#X obj 493 -37 s \$0-maxx;
#X msg 395 220 resize \$1;
#X obj 395 249 s \$0-signal;
#X obj 395 172 r \$0-maxx;
#X obj 481 249 s \$0-signal;
#X obj 481 196 pack 0 0;
#X obj 534 172 r \$0-minx;
#X obj 395 306 pack 0 0;
#X obj 395 282 r \$0-miny;
#X obj 465 282 r \$0-maxy;
#X obj 422 99 i -1;
#X obj 395 417 pack 0 0 0 0;
#X obj 395 392 r \$0-miny;
#X obj 467 392 r \$0-maxy;
#X obj 539 392 r \$0-minx;
#X obj 611 392 r \$0-maxx;
#X msg 395 441 bounds \$3 \$1 \$4 \$2;
#X obj 395 359 s \$0-signal;
#X obj 395 469 s \$0-signal;
#X text 384 149 configure plot limits and labels;
#X obj 393 -195 inlet;
#X obj 38 52 s \$0-signal;
#X msg 481 220 xlabel \$2 \$1;
#X text 10 -54 autoscale y limits (currently unimplemented because
I can't figure out how to find the max and min samples in a window).
;
#X msg 395 331 ylabel \$1 \$2;
#X text 324 457 disabled;
#X text 360 24 disabled;
#X msg 38 26 normalize;
#X text 323 344 disabled;
#X text 12 -20 This works \, but its not syncronized with the tabsend~
(when using metro for timing) so it looks horrible. Is there a way
to get one bang per block?;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-signal 64 float 3;
#A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
#X coords 0 1 64 -1 200 140 1;
#X restore 100 130 graph;
#X floatatom 263 114 5 0 0 0 yscale - #0-scale;
#X obj 22 -169 *~;
#X obj 263 50 loadbang;
#X msg 263 72 1;
#X obj 74 -195 r \$0-scale;
#X obj 22 -82 tabwrite~ \$0-signal;
#X obj 171 113 tgl 15 0 empty empty plot 17 7 0 10 -262144 -1 -1 1
1;
#X text 443 -195 block size (samples);
#X obj 57 -121 metro 100;
#X connect 0 0 1 0;
#X connect 4 0 44 0;
#X connect 5 0 6 0;
#X connect 6 0 12 0;
#X connect 6 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 5 0;
#X connect 11 0 3 0;
#X connect 13 0 14 0;
#X connect 15 0 13 0;
#X connect 15 0 17 0;
#X connect 17 0 34 0;
#X connect 18 0 17 1;
#X connect 19 0 36 0;
#X connect 20 0 19 0;
#X connect 21 0 19 1;
#X connect 22 0 10 0;
#X connect 23 0 28 0;
#X connect 24 0 23 0;
#X connect 25 0 23 1;
#X connect 26 0 23 2;
#X connect 27 0 23 3;
#X connect 32 0 6 0;
#X connect 34 0 16 0;
#X connect 39 0 33 0;
#X connect 44 0 48 0;
#X connect 45 0 46 0;
#X connect 46 0 43 0;
#X connect 46 0 49 0;
#X connect 47 0 44 1;
#X connect 49 0 51 0;
#X connect 51 0 48 0;
#X coords 0 -1 1 1 200 170 1 100 100;