-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmidi_fire_scene.txt
84 lines (64 loc) · 1 KB
/
midi_fire_scene.txt
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
If load
Def specialMsg1 F0 5A
Def specialMsg2 F0 5B
Def barPeriod $96
Alias G0 stopped
Alias G1 clocks
Alias IB barCount
Sub stopClock
Ass stopped = 1
Ass barCount = 0
End
stopClock
send FA
End
# start stop for FunkBox
If M0 == FA
Block
End
If M0 == FC
stopClock
Block
End
If M0 == C0
# stopClock
# DrumJam Randomize Loop Variations
send B0 $70 $127
End
# sysex for initial BPM
if M0 == specialMsg1
stopClock
# convert from 9 byte to 6 byte equivalent
calc I0 = M2 * 10
calc I0 = I0 + M3
calc I1 = M4 * 10
calc I1 = I1 + M5
calc I2 = M6 * 10
calc I2 = I2 + M7
send F0 5A I0 I1 I2 F7 +F
Block
end
# sysex correct MIDI clock
if M0 == specialMsg2
Mat barCount = barCount + 1
If barCount == 2
Ass stopped = 0
Snd FA
End
Mat IC = clocks % barPeriod
Log IC IC
Block
End
If load
Alias G0 stopped
Alias G1 clocks
End
If M0 == F8
If stopped > 0
Snd FC
Ass clocks = 0
Block
Else
Mat clocks = 1 + clocks
End
End