-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.py
73 lines (67 loc) · 1.9 KB
/
params.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
SOUNDS_DATASET_PATH = "G:\Shared drives\PFE - ING3 Mlamali\DrumClassifier - Sounds Dataset"
AIRS_PATH = "G:\Shared drives\PFE - ING3 Mlamali\DrumClassifier - Acoustic Impulse Responses"
SAMPLE_RATE = 44100
DRUM_NAMES = ['Kick',
'Tom',
'808',
'Ride (Cymbal)',
'Crash (Cymbal)',
'Hat Closed (Cymbal)',
'Hat Open (Cymbal)',
'Clap',
'Snap',
'Snare',
'Conga',
'Bell',
'Shaker',
'Metal']
HIGH_PITCHED_DRUMS = ["Shaker", "Hat Open (Cymbal)", "Hat Closed (Cymbal)", "Crash (Cymbal)", "Ride (Cymbal)"]
LOW_PITCHED_DRUMS = ['Kick', 'Tom', '808']
CLASS_COLORS = {
'Metal': '#6a3d9a', # Purple
'Conga': '#1f78b4', # Blue
'Kick': '#984ea3', # Dark purple
'Hat Open (Cymbal)': '#ff7f00', # Orange
'Ride (Cymbal)': '#ffff33', # Yellow
'808': '#4d004b', # Dark violet
'Snare': '#e31a1c', # Red
'Bell': '#f781bf', # Pink
'Hat Closed (Cymbal)': '#ffcc00', # Light yellow
'Crash (Cymbal)': '#33a02c', # Green
'Tom': '#a6cee3', # Light blue
'Clap': '#fb9a99', # Light red
'Snap': '#b2df8a', # Light green
'Shaker': '#cab2d6', # Light purple
}
DRUM_ALIAS_3 = {
'Kick': 'KIK',
'Tom': 'TOM',
'808': 'EIG',
'Ride (Cymbal)': 'RID',
'Crash (Cymbal)': 'CRA',
'Hat Closed (Cymbal)': 'HCL',
'Hat Open (Cymbal)': 'HOP',
'Clap': 'CLP',
'Snap': 'SNP',
'Snare': 'SNR',
'Conga': 'CNG',
'Bell': 'BEL',
'Shaker': 'SHA',
'Metal': 'MET'
}
DRUM_ALIAS_2 = {
'Kick': 'KK',
'Tom': 'TM',
'808': 'EG',
'Ride (Cymbal)': 'RD',
'Crash (Cymbal)': 'CR',
'Hat Closed (Cymbal)': 'HC',
'Hat Open (Cymbal)': 'HO',
'Clap': 'CP',
'Snap': 'SP',
'Snare': 'SR',
'Conga': 'CG',
'Bell': 'BL',
'Shaker': 'SH',
'Metal': 'MT'
}