aboutsummaryrefslogtreecommitdiff
path: root/score-help.pd
blob: 0a799a9653bc4477b6093cfe255e5a585e70dd2b (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
#N canvas 0 26 623 545 12;
#X floatatom 30 301 5 0 0 0 - - -;
#X obj 30 12 notein;
#X obj 193 202 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 95 93 start;
#X msg 104 118 stop;
#X text 217 203 reset;
#X text 145 92 start / stop score following;
#X msg 111 146 start 4;
#X text 176 146 start skipping first 4 notes;
#X obj 193 286 bng 20 250 50 0 empty empty empty 0 -6 0 8 -262144 -258699
-1;
#X text 217 287 error;
#X text 148 24 score :: score follower that tries to match incoming
;
#X text 221 41 MIDI data to a score stored in an array;
#X text 219 57 outputs the index number of current position;
#X obj 23 423 loadbang;
#N canvas 0 0 450 300 (subpatch) 0;
#X array sco_array 25 float 1;
#A 0 60 61 62 63 64 65 66 67 68 69 70 71 72 71 70 69 68 67 66 65 64
63 62 61 60;
#X coords 0 127 24 0 200 140 1;
#X restore 402 361 graph;
#X obj 30 235 score sco_array 2 300;
#X msg 130 173 set sco_array;
#X msg 23 449 \; sco_array resize 25 \; sco_array read examples/score.txt
\;;
#X text 250 174 set to array that contains the score;
#X text 88 303 position on score;
#X text 86 322 (x index of array);
#X obj 30 356 tabread sco_array;
#X floatatom 30 387 5 0 0 0 - - -;
#X text 86 388 note from score;
#X text 291 255 array: name of array containing score;
#X text 235 234 USAGE: score <array> <skipitems> <skiptime>;
#X text 292 272 skipitems: max. number of notes to skip;
#X text 292 289 skip time: max. time [ms] to rewind;
#X text 378 307 input data;
#N canvas 292 198 494 344 META 0;
#X text 12 205 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 185 AUTHOR Olaf Matthes <olaf.matthes@gmx.de>;
#X text 12 105 INLET_1 float;
#X text 12 45 DESCRIPTION score follower that tries to match incoming
MIDI data to a score stored in an array;
#X text 12 85 INLET_0 float start stop set;
#X text 12 125 INLET_2 bang;
#X text 12 145 OUTLET_0 float;
#X text 12 165 OUTLET_0 bang;
#X text 12 5 KEYWORDS control MIDI analysis;
#X restore 563 517 pd META;
#X connect 0 0 22 0;
#X connect 1 0 16 0;
#X connect 1 1 16 1;
#X connect 2 0 16 2;
#X connect 3 0 16 0;
#X connect 4 0 16 0;
#X connect 7 0 16 0;
#X connect 14 0 18 0;
#X connect 16 0 0 0;
#X connect 16 1 9 0;
#X connect 17 0 16 0;
#X connect 22 0 23 0;