aboutsummaryrefslogtreecommitdiff
path: root/zeroxpos~/zeroxpos~-help.pd
blob: 7bb2f2349da31a3871831a7d2070b2efe56a26c0 (plain)
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 603 357 10;
#X obj 251 132 block~ 256;
#X obj 144 150 zeroxpos~ 3;
#X obj 40 150 zeroxpos~ -3;
#X text 30 30 Zeroxpos~ finds a zero-crossing point within a dsp-block
;
#X obj 31 96 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 40 167 5 0 0 0 - - -;
#X floatatom 144 167 5 0 0 0 - - -;
#X text 228 156 <-- creation argument sets the;
#X text 252 167 zero-crossing point to find;
#X text 251 178 1st \, 2nd \, 3rd etc.;
#X text 249 220 a positive argument finds;
#X text 247 233 the n-th zero crossing from;
#X text 247 245 the start of the block.;
#X text 35 222 a negative argument finds;
#X text 33 233 the n-th zero crossing from;
#X text 33 244 the end of the block.;
#X floatatom 177 107 5 0 0 0 - - -;
#N canvas 0 0 450 300 (subpatch) 0;
#X array block 256 float 3;
#A 0 0.253416 0.130458 0.00545404 -0.119636 -0.242851 -0.362248 -0.475957
-0.582198 -0.679303 -0.765742 -0.840147 -0.901368 -0.948445 -0.980638
-0.997421 -0.998542 -0.983994 -0.954005 -0.909041 -0.849786 -0.777197
-0.692413 -0.596762 -0.491735 -0.378986 -0.26029 -0.137509 -0.012569
0.112569 0.235939 0.355605 0.469692 0.576406 0.67406 0.761136 0.836267
0.898277 0.946171 0.979207 0.996877 0.998904 0.985256 0.956116 0.911974
0.853521 0.781673 0.697548 0.602464 0.497928 0.385577 0.267174 0.144571
0.0197003 -0.105479 -0.229003 -0.348935 -0.463381 -0.570554 -0.668774
-0.7565 -0.832341 -0.895109 -0.94383 -0.977741 -0.996308 -0.99921 -0.986431
-0.958173 -0.914879 -0.857217 -0.786086 -0.70262 -0.608129 -0.504093
-0.392134 -0.27402 -0.151607 -0.0268136 0.0984023 0.222071 0.342253
0.457064 0.564703 0.663473 0.75182 0.828368 0.891918 0.941472 0.976224
0.995654 0.999461 0.987585 0.960201 0.917728 0.860855 0.790474 0.707687
0.613778 0.510233 0.398682 0.280874 0.158655 0.0339427 -0.0913004 -0.21511
-0.335546 -0.450712 -0.558797 -0.658112 -0.7471 -0.824365 -0.888672
-0.939028 -0.974648 -0.994974 -0.999679 -0.988672 -0.962151 -0.920532
-0.864466 -0.794818 -0.712687 -0.619375 -0.516342 -0.405204 -0.287695
-0.165673 -0.0410526 0.0842137 0.208159 0.328832 0.444344 0.552884
0.652749 0.742354 0.820304 0.885381 0.936565 0.973047 0.994233 0.999818
0.989715 0.964081 0.923301 0.868019 0.799117 0.717675 0.624969 0.522437
0.411707 0.294517 0.172705 0.0481785 -0.0771039 -0.201175 -0.322089
-0.43795 -0.546929 -0.647319 -0.737551 -0.816209 -0.882057 -0.934039
-0.971362 -0.993442 -0.999933 -0.990717 -0.965937 -0.926001 -0.871533
-0.803388 -0.722613 -0.630497 -0.528488 -0.418184 -0.301313 -0.179707
-0.0552834 0.0700081 0.194203 0.315346 0.431537 0.540954 0.641883 0.732741
0.812077 0.878668 0.931471 0.969657 0.992614 0.999977 0.991649 0.967759
0.928683 0.87501 0.807601 0.72752 0.636021 0.534537 0.42465 0.308102
0.186719 0.0624042 -0.0628919 -0.187199 -0.308567 -0.425094 -0.534951
-0.636398 -0.727855 -0.807891 -0.875249 -0.928863 -0.967882 -0.991712
-0.99998 -0.992555 -0.969531 -0.931286 -0.878427 -0.811782 -0.732395
-0.641494 -0.540528 -0.43108 -0.314867 -0.193706 -0.0695031 0.0557888
0.180206 0.301797 0.418643 0.528917 0.63089 0.722964 0.803687 0.87178
0.926192 0.966069 0.990788 0.999936 0.993385 0.971245 0.933864 0.881826
0.815924 0.73722 0.646947 0.546521 0.437509 0.321625 0.200696 0.0766166
-0.0486669 -0.173186 -0.294984;
#X coords 0 1 255 -1 100 50 1;
#X restore 207 268 graph;
#X obj 220 87 tabwrite~ block;
#X obj 107 75 osc~ 880;
#X obj 79 284 tabread block;
#X floatatom 79 270 5 0 0 0 - - -;
#X floatatom 79 301 5 0 0 0 - - -;
#X floatatom 119 167 2 0 0 0 - - -;
#X floatatom 216 167 2 0 0 0 - - -;
#X text 36 193 output is in samples \, right output is direction (polarity)
of zero crossing.;
#X msg 320 94 mode \$1;
#X obj 320 79 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 349 77 <--- if the mode is zero \,;
#X text 389 89 zeroxpos will not look;
#X text 395 102 for zero-crossing points;
#X text 404 114 until after it receives a;
#X text 412 126 bang. But if it is set to 1 \,;
#X text 418 138 zeroxpos will continuously;
#X text 424 150 look for zero-crossings \,;
#X text 431 163 and output those stored;
#X text 437 175 in memory when banged.;
#X connect 1 0 6 0;
#X connect 1 1 24 0;
#X connect 2 0 5 0;
#X connect 2 1 23 0;
#X connect 4 0 2 0;
#X connect 4 0 1 0;
#X connect 4 0 18 0;
#X connect 16 0 2 1;
#X connect 19 0 2 0;
#X connect 19 0 1 0;
#X connect 19 0 18 0;
#X connect 20 0 22 0;
#X connect 21 0 20 0;
#X connect 26 0 1 0;
#X connect 26 0 2 0;
#X connect 27 0 26 0;