aboutsummaryrefslogtreecommitdiff
path: root/framespect~-help.pd
blob: ea4c3e6ba99a45f86e59ca97184b8e4e9cbd6f30 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#N canvas 109 303 913 445 10;
#N canvas 0 22 468 247 frame-scoring 0;
#X obj 61 76 inlet~;
#X obj 362 116 block~ 1024;
#X obj 61 93 rfft~;
#X obj 197 72 inlet~;
#X obj 197 89 rfft~;
#X obj 60 183 outlet;
#X obj 295 150 inlet;
#X obj 60 166 framespect~;
#X connect 0 0 2 0;
#X connect 2 0 7 0;
#X connect 2 1 7 1;
#X connect 3 0 4 0;
#X connect 4 0 7 2;
#X connect 4 1 7 3;
#X connect 6 0 7 4;
#X connect 7 0 5 0;
#X restore 95 210 pd frame-scoring;
#X floatatom 95 262 0 0 0 0 similarity - -;
#X obj 80 279 f;
#X obj 151 70 bng 15 250 50 0 empty empty different 0 -6 0 8 -262144
-1 -1;
#X obj 151 85 t b b;
#X obj 74 70 bng 15 250 50 0 empty empty same 0 -6 0 8 -262144 -1 -1
;
#X obj 74 85 t b b;
#X floatatom 342 165 5 1 100 0 - - -;
#X floatatom 342 196 5 0 0 1 window - -;
#X obj 342 179 / 100;
#N canvas 0 22 532 477 testinput 0;
#X obj 73 73 openpanel;
#X obj 107 23 inlet;
#X obj 107 40 sel 1 2;
#N canvas 0 22 450 300 graph20 0;
#X array test-1 325922 float 0;
#X coords 0 1 325921 -1 300 80 1;
#X restore 83 191 graph;
#N canvas 0 22 450 300 graph20 0;
#X array test-2 192058 float 0;
#X coords 0 1 192057 -1 300 80 1;
#X restore 83 282 graph;
#X msg 73 90 read -resize \$1 test-1;
#X obj 73 107 soundfiler;
#X obj 169 124 t b f;
#X obj 240 73 openpanel;
#X obj 240 107 soundfiler;
#X msg 240 90 read -resize \$1 test-2;
#X obj 169 158 / 44.1;
#X obj 169 141 min;
#X obj 213 158 outlet;
#X obj 329 124 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 329 139 outlet;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 2 1 8 0;
#X connect 5 0 6 0;
#X connect 6 0 12 0;
#X connect 7 0 12 0;
#X connect 7 1 12 1;
#X connect 8 0 10 0;
#X connect 9 0 7 0;
#X connect 9 0 14 0;
#X connect 10 0 9 0;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
#X connect 14 0 15 0;
#X restore 314 48 pd testinput;
#X msg 314 31 1;
#X msg 337 31 2;
#X floatatom 314 65 0 0 0 0 shortest - -;
#X obj 314 82 / 2;
#X floatatom 314 216 0 0 0 0 - - -;
#X obj 263 216 del 500;
#N canvas 0 22 264 157 playsound 0;
#X obj 51 82 tabplay~ test-1;
#X obj 164 65 inlet;
#X obj 51 65 inlet;
#X obj 51 99 outlet~;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X restore 74 136 pd playsound;
#N canvas 0 22 264 157 playsound 0;
#X obj 51 82 tabplay~ test-1;
#X obj 153 65 inlet;
#X obj 51 65 inlet;
#X obj 51 99 outlet~;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X restore 160 136 pd playsound;
#X text 439 12 framescore~ calculates a weighted similarity value for
two signal vectors. The value is weighted proportional to amplitude
\, so that comparisons made between higher value vectors have more
effect on the output than comparisons between low value vectors.;
#X obj 337 14 r loadsamples;
#X msg 103 119 set test-1;
#X msg 233 102 set test-1;
#X msg 233 119 set test-2;
#X text 434 242 start here;
#X obj 125 313 > 0.5;
#X msg 102 313 1;
#X obj 102 330 -;
#X obj 80 296 t f b f;
#X obj 80 355 spigot;
#X obj 124 355 spigot;
#X obj 124 372 print similar;
#X obj 80 389 print different;
#X msg 436 258 \; pd dsp 1 \; loadsamples bang;
#X obj 246 153 loadbang;
#X msg 246 170 1;
#X text 92 37 _Compare_;
#X text 437 80 Its use is in comparing alpha vectors from an rfft~
object where higher amplitude bins are weighted against low amplitude
bins. The maximum amplitude of the comparison vector on inlets 3+4
is used to scale the output value so that it always gives a score between
0 (no similarity) and 1 (identical alpha).;
#X text 672 243 see also;
#X obj 671 258 framescore~;
#X text 3 210 HERE it is-->;
#X obj 671 278 simile~;
#X obj 671 298 simile;
#X obj 671 318 hssc~;
#X text 438 158 Differences between the peak levels of the two vectors
may cause similarities in peak patterns to be missed. Since the cartesian-to-polar
conversion is done internally to the object \, <blocknorm~> may not
be used in the same way as it can with <framescore~> \, but since the
phase is not calculated as it is in <cartopol~> it is marginally less
CPU-intensive.;
#X connect 0 0 1 0;
#X connect 1 0 2 1;
#X connect 2 0 28 0;
#X connect 3 0 4 0;
#X connect 4 0 16 0;
#X connect 4 0 18 0;
#X connect 4 0 17 0;
#X connect 4 1 23 0;
#X connect 4 1 21 0;
#X connect 5 0 6 0;
#X connect 6 0 16 0;
#X connect 6 0 17 0;
#X connect 6 0 18 0;
#X connect 6 1 21 0;
#X connect 6 1 22 0;
#X connect 7 0 9 0;
#X connect 8 0 0 2;
#X connect 9 0 8 0;
#X connect 10 0 13 0;
#X connect 10 1 11 0;
#X connect 11 0 10 0;
#X connect 12 0 10 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 1;
#X connect 16 0 2 0;
#X connect 17 0 0 0;
#X connect 18 0 0 1;
#X connect 20 0 12 0;
#X connect 21 0 17 1;
#X connect 22 0 18 1;
#X connect 23 0 18 1;
#X connect 25 0 27 1;
#X connect 25 0 30 1;
#X connect 26 0 27 0;
#X connect 27 0 29 1;
#X connect 28 0 29 0;
#X connect 28 0 30 0;
#X connect 28 1 26 0;
#X connect 28 2 25 0;
#X connect 29 0 32 0;
#X connect 30 0 31 0;
#X connect 34 0 35 0;
#X connect 35 0 7 0;