-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
173 lines (167 loc) · 3.85 KB
/
config.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# LSP limits
MAX_INSTRUMENTS = 48
MAX_SAMPLES = 8
instruments = [
["laser", 27],
["(Acoustic.?Bass.?Drum|Kick.?Drum.?2|Kik_Brother)", 35],
["(kick|kik|BassDrum)", 36],
["(side|rim)", 37],
["(esnare|electr.+snare|snare.+electr)", 40],
["snare", 38],
["clap", 39],
["(low.?fl.*tom|tom.?low.?fl)", 41],
["(CHH|HHC|Hat.?c|HH.*c~/Music/SFZ/5pin_DrumKit.sfzl|Cl.*Hat|\\WCH)", 42],
["hi.?fl.*tom", 43],
["(hh.*foot|hihat.*foot|foot.*hh|pedal.*hat)", 44],
["(low.?tom|tom.?low)", 45],
["(OHH|HHO|Hat.*Op|HH.*Op|Op.*Hat|Op.*HH|\\WOH)", 46],
["low.*mid.*tom", 47],
["hi.*mid.*tom", 48],
["crash", 49],
["(hi.*tom|tom.?hi)", 50],
["ride", 51],
["chin(a|e)", 52],
["tamb", 54],
["splash", 55],
["cowbell", 56],
["vibra", 58],
["bongo", 60],
["(lo.*bongo|bongo.*lo)", 61],
["(mut.*conga|conga.*mut)", 62],
["(open.*conga|conga.*open)", 63],
["hi.*conga", 62],
["conga", 64],
["(high.*timbale|timbale.*high)", 65],
["(low.*timbale|timbale.*low)", 66],
["(hi.*agogo|agogo.*hi)", 67],
["agogo", 68],
["cabasa", 69],
["mara?cas", 70],
["(sho.*whistle|whistle.*sho)", 71],
["whistle", 72],
["(lon.*guiro|guiro.*lon)", 73],
["(guiro)", 74],
["clav", 75],
["hi.*woodblock", 76],
["woodblock", 77],
["(open.*cuica|cuica.*open)", 79],
["cuica", 78],
["shaker", 82],
["(mut.*triangl|triangl.*mut)", 80],
["triangl", 81],
# 1000 => "some hihat"
["hat", 1000],
# other doubtful drums
["fl.*tom", 41],
["(mid.*tom|tom.*mid)", 48],
["tom", 45],
["cym", 51],
["\\WBD", 36],
["bass", 36],
["\\WSD", 38],
]
IGNORE = ".*(\\Wvital\\W|wavetable).*"
SAMPLE = ".+\\.(wav|flac|aiff?|aifc)$"
names = {
27: "High Q / Laser",
28: "Slap / Whip",
29: "Scratch Push",
30: "Scratch Pull",
31: "Sticks",
32: "Square Click",
33: "Metronome Click",
34: "Metronome Bell",
35: "Kick 2",
36: "Kick 1",
37: "Side/Rim",
38: "Snare",
39: "Clap",
40: "ESnare",
41: "Low Floor Tom",
42: "Closed HH",
43: "High Floor Tom",
44: "Pedal Hi-Hat",
45: "Low Tom",
46: "Open HH",
47: "Low-Mid Tom",
48: "Hi Mid Tom",
49: "Crash Cymbal",
50: "High Tom",
51: "Ride Cymbal",
52: "Chinese Cymbal",
53: "Ride Bell",
54: "Tambourine",
55: "Splash Cymbal",
56: "Cowbell",
57: "Crash Cymbal 2",
58: "Vibraslap",
59: "Ride Cymbal 2",
60: "Hi Bongo",
61: "Low Bongo",
62: "Mute Hi Conga",
63: "Open Hi Conga",
64: "Low Conga",
65: "High Timbale",
66: "Low Timbale",
67: "High Agogo",
68: "Low Agogo",
69: "Cabasa",
70: "Maracas",
71: "Short Whistle",
72: "Long Whistle",
73: "Short Guiro",
74: "Long Guiro",
75: "Claves",
76: "Hi Wood Block",
77: "Low Wood Block",
78: "Mute Cuica",
79: "Open Cuica",
80: "Mute Triangle",
81: "Open Triangle",
82: "Shaker",
83: "Jingle Bell",
84: "Belltree",
85: "Castanets",
86: "Mute Surdo",
87: "Open Surdo",
}
# LSP and Speedrum ordering and outs
ordering = [
36, # Kick
42, # Closed Hi Hat
46, # Open Hi-Hat
39, # Hand Clap
38, # Acoustic Snare
45, # Low Tom
48, # Mid Tom
50, # High Tom
49, # Crash Cymbal
51, # Ride Cymbal
55, # Splash Cymbal
35, # Kick 2
37, # Side/Rim
60, # Hi Bongo
75, # Claves
82, # Shaker
]
colors = {
27: "ffea47ea",
35: "ff3d8eff",
36: "ff3d8eff",
37: "fff15252",
38: "ff0db9f2",
39: "fff57138",
42: "ffecd613",
45: "ff16c232",
46: "ffecd613",
48: "ff16c232",
49: "fff99c10",
50: "ff16c232",
51: "fff99c10",
55: "fff99c10",
60: "fff15252",
75: "fff15252",
82: "fff57138",
}