-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Index.pd
269 lines (269 loc) · 7.51 KB
/
_Index.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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
#N canvas 19 23 1222 711 10;
#X declare -path library;
#X obj 33 148 openfiles;
#X obj 33 103 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 84 123 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 95 239 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 120 239 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X floatatom 76 475 5 0 0 0 - - -, f 5;
#X obj 145 413 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 375 320 spigot;
#X obj 408 296 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 352 269 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 476 327 pitchClass;
#X msg 476 297 name;
#X msg 476 357 nameWithOctave;
#X msg 476 387 midi;
#X msg 476 441 pitch;
#X msg 476 414 count;
#X obj 917 435 spigot;
#X obj 950 409 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 856 436 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 476 269 frequency;
#X obj 352 458 CountPitches;
#X obj 856 462 CountMelodicIntervals;
#X obj 375 269 r mto_stream;
#X obj 917 382 r mto_stream;
#X obj 120 475 s mto_stream;
#X floatatom 145 309 5 0 0 0 - - -, f 5;
#X obj 33 36 declare -path library;
#X obj 586 269 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 611 322 spigot;
#X obj 644 296 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 611 269 r mto_stream;
#X msg 693 350 pitchClass;
#X msg 693 296 name;
#X msg 693 323 nameWithOctave;
#X msg 693 377 midi;
#X msg 693 269 fullName;
#X msg 693 404 frequency;
#X obj 586 459 Ambitus, f 13;
#X obj 33 435 NoteRestIndexer;
#X obj 145 239 DataframeStartEnd;
#X obj 33 921 HintIndexer;
#X floatatom 95 709 5 0 0 0 - - -, f 5;
#X obj 137 709 DataframeStartEnd;
#X obj 137 776 IndexerPak;
#X obj 13 886 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 33 175 s scores;
#X obj 33 709 r scores;
#X obj 33 763 spigot;
#X obj 66 736 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 33 292 spigot;
#X obj 66 266 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 33 239 r scores;
#X obj 33 948 s hint-dataframes;
#X obj 33 502 s nri-dataframes;
#X obj 145 333 IndexerPak;
#X obj 355 763 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 464 796 2;
#X msg 493 796 3;
#X msg 522 796 4;
#X msg 551 796 5;
#X msg 580 796 6;
#X floatatom 464 839 5 0 0 0 - - -, f 5;
#X obj 401 826 spigot;
#X obj 434 799 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 351 734 Horizontal NGrams;
#X obj 355 873 HorizontalNgrams;
#X obj 401 764 r hint-dataframes;
#X text 50 101 <= Load symbolic music scores (any format music21 can
interpret)., f 65;
#X text 31 79 1) We have to load a score first.;
#X text 101 122 <= Recall a loaded score.;
#X text 31 216 2) Now we have to index the file.;
#X text 350 217 3) Music21 functions are enabled by indexing a score.
;
#X text 166 412 <= Send only music21 stream;
#X text 350 241 3a) Count Pitches in a score.;
#X text 583 241 3b) Find the range of a part in a score.;
#X text 843 241 3b) Find melodic intervals in a score.;
#X text 31 685 4) We can find all melodic intervals in a score and
index them., f 66;
#X text 504 840 <= Specify sample rate of overlapping windows.;
#X obj 137 853 IntSettings;
#X floatatom 95 1019 5 0 0 0 - - -, f 5;
#X obj 137 1019 DataframeStartEnd;
#X obj 137 1086 IndexerPak;
#X obj 13 1196 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 33 1019 r scores;
#X obj 33 1073 spigot;
#X obj 66 1046 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 137 1163 IntSettings;
#X obj 33 1258 s vint-dataframes;
#X obj 33 1231 VintIndexer;
#X text 351 711 4a) With consecutive melodic intervals \, we can find
melodic N-Grams., f 69;
#X text 31 995 5) We can find all vertical intervals in a score and
index them., f 67;
#X text 31 535 3d) We can look at the DataFrame at different offsets.
;
#X obj 150 562 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 180 585 1;
#X msg 210 585 2;
#X msg 240 585 4;
#X msg 270 585 8;
#X floatatom 180 635 5 0 0 0 - - -, f 5;
#X msg 180 562 0;
#X text 212 562 <= Resets offsets.;
#X obj 34 562 r nri-dataframes;
#X obj 34 615 spigot;
#X obj 67 591 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 217 634 <= Custom offset.;
#X obj 910 738 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 940 761 1;
#X msg 970 761 2;
#X msg 1000 761 4;
#X msg 1030 761 8;
#X floatatom 940 811 5 0 0 0 - - -, f 5;
#X msg 940 738 0;
#X text 972 738 <= Resets offsets.;
#X obj 794 791 spigot;
#X obj 827 767 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 977 810 <= Custom offset.;
#X text 791 711 4b) We can look at the DataFrame at different offsets.
;
#X obj 794 738 r hint-dataframes;
#X obj 354 1157 OffsetIndexer;
#X obj 470 1048 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 500 1071 1;
#X msg 530 1071 2;
#X msg 560 1071 4;
#X msg 590 1071 8;
#X floatatom 500 1121 5 0 0 0 - - -, f 5;
#X msg 500 1048 0;
#X text 532 1048 <= Resets offsets.;
#X obj 354 1101 spigot;
#X obj 387 1077 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1
1 1;
#X text 537 1120 <= Custom offset.;
#X text 351 1021 5a) We can look at the DataFrame at different offsets.
;
#X obj 354 1048 r vint-dataframes;
#X text 6 1386 Fun with Pd;
#X obj 34 651 OffsetIndexer;
#X obj 794 827 OffsetIndexer;
#X connect 0 0 45 0;
#X connect 1 0 0 0;
#X connect 2 0 0 1;
#X connect 3 0 38 1;
#X connect 4 0 38 2;
#X connect 6 0 38 6;
#X connect 7 0 20 1;
#X connect 8 0 7 1;
#X connect 9 0 20 0;
#X connect 10 0 20 2;
#X connect 11 0 20 2;
#X connect 12 0 20 2;
#X connect 13 0 20 2;
#X connect 14 0 20 3;
#X connect 15 0 20 3;
#X connect 16 0 21 1;
#X connect 17 0 16 1;
#X connect 18 0 21 0;
#X connect 19 0 20 2;
#X connect 22 0 7 0;
#X connect 23 0 16 0;
#X connect 25 0 38 4;
#X connect 25 0 54 0;
#X connect 27 0 37 0;
#X connect 28 0 37 1;
#X connect 29 0 28 1;
#X connect 30 0 28 0;
#X connect 31 0 37 2;
#X connect 32 0 37 2;
#X connect 33 0 37 2;
#X connect 34 0 37 2;
#X connect 35 0 37 2;
#X connect 36 0 37 2;
#X connect 38 0 53 0;
#X connect 38 1 5 0;
#X connect 38 2 24 0;
#X connect 39 0 38 3;
#X connect 40 0 52 0;
#X connect 41 0 43 0;
#X connect 41 0 40 1;
#X connect 42 0 40 2;
#X connect 43 0 40 3;
#X connect 44 0 40 0;
#X connect 46 0 47 0;
#X connect 47 0 40 0;
#X connect 48 0 47 1;
#X connect 49 0 38 0;
#X connect 50 0 49 1;
#X connect 51 0 49 0;
#X connect 54 0 38 5;
#X connect 55 0 65 0;
#X connect 56 0 61 0;
#X connect 57 0 61 0;
#X connect 58 0 61 0;
#X connect 59 0 61 0;
#X connect 60 0 61 0;
#X connect 61 0 65 2;
#X connect 62 0 65 1;
#X connect 63 0 62 1;
#X connect 66 0 62 0;
#X connect 78 0 40 4;
#X connect 79 0 81 0;
#X connect 79 0 88 1;
#X connect 80 0 88 2;
#X connect 81 0 88 3;
#X connect 82 0 88 0;
#X connect 83 0 84 0;
#X connect 84 0 88 0;
#X connect 85 0 84 1;
#X connect 86 0 88 4;
#X connect 88 0 87 0;
#X connect 92 0 132 1;
#X connect 93 0 97 0;
#X connect 94 0 97 0;
#X connect 95 0 97 0;
#X connect 96 0 97 0;
#X connect 97 0 132 2;
#X connect 98 0 97 0;
#X connect 100 0 101 0;
#X connect 101 0 132 0;
#X connect 102 0 101 1;
#X connect 104 0 133 1;
#X connect 105 0 109 0;
#X connect 106 0 109 0;
#X connect 107 0 109 0;
#X connect 108 0 109 0;
#X connect 109 0 133 2;
#X connect 110 0 109 0;
#X connect 112 0 133 0;
#X connect 113 0 112 1;
#X connect 116 0 112 0;
#X connect 118 0 117 1;
#X connect 119 0 123 0;
#X connect 120 0 123 0;
#X connect 121 0 123 0;
#X connect 122 0 123 0;
#X connect 123 0 117 2;
#X connect 124 0 123 0;
#X connect 126 0 117 0;
#X connect 127 0 126 1;
#X connect 130 0 126 0;