jspr commited on
Commit
9bc86e6
1 Parent(s): e40ab86

Upload mappings.py

Browse files
Files changed (1) hide show
  1. mappings.py +33 -18
mappings.py CHANGED
@@ -38,44 +38,59 @@ inverse_mapping_old = {
38
 
39
  inverse_mapping = {
40
  36: 'k', # kick
 
 
41
  38: 's', # snare
 
42
  42: 'h', # hihat
43
- 48: 't0', # tom
44
  49: 'c', # crash
45
  51: 'r', # ride
 
46
  39: 'l', # clap
47
  56: 'b', # cowbell
48
  37: 'z', # shaker
49
  54: 'a', # tambourine
50
  81: 'i', # triangle
51
  49: 'y', # cymbal
52
- 35: 'k', # bass drum of some kind
53
  55: 'p', # splash cymbal
54
- 0: 'n', # none
55
- 46: 'h1', # hihat_open
56
  44: 'h', # hihat_pedal
57
- 40: 's', # snare_rimshot
58
- 43: 't2', # tom_high_floor
59
- -1: 'n', # none
60
- 22: 'k', # VERIFY
61
  58: 'v', # vibraslap
62
  53: 'd', # ride_bell
63
- 50: 't1', # tom_high
64
- 59: 'e', # ride_2
65
- 45: 't3', # tom_low
66
- 47: 't4', # tom_low_mid
67
  }
68
 
69
  mappings = {
70
- "k": "kick.wav",
71
- "s": "snare.wav",
72
- "h": "hihat.wav",
73
- "c": "cymbal.wav",
74
- "y": "cymbal.wav",
75
- "l": "clap.wav",
 
 
 
 
 
 
 
 
 
 
76
  }
77
 
78
  replacements = {
79
  "hh_closed": "hh",
80
  "hh_open": "hh",
 
 
 
 
 
81
  }
 
38
 
39
  inverse_mapping = {
40
  36: 'k', # kick
41
+ 22: 'k', # VERIFY
42
+ 35: 'k', # bass drum of some kind
43
  38: 's', # snare
44
+ 40: 's', # snare_rimshot
45
  42: 'h', # hihat
46
+ 48: 't', # tom
47
  49: 'c', # crash
48
  51: 'r', # ride
49
+ 59: 'r', # ride_2
50
  39: 'l', # clap
51
  56: 'b', # cowbell
52
  37: 'z', # shaker
53
  54: 'a', # tambourine
54
  81: 'i', # triangle
55
  49: 'y', # cymbal
 
56
  55: 'p', # splash cymbal
57
+ 46: 'j', # hihat_open
 
58
  44: 'h', # hihat_pedal
59
+ 43: 'u', # tom_high_floor
60
+ 50: 'w', # tom_high
61
+ 45: 'x', # tom_low
62
+ 47: 'q', # tom_low_mid
63
  58: 'v', # vibraslap
64
  53: 'd', # ride_bell
65
+ 0: 'n', # none
66
+ -1: 'n', # none
 
 
67
  }
68
 
69
  mappings = {
70
+ "k": "drum-samples/kick.wav",
71
+ "s": "drum-samples/snare.wav",
72
+ "h": "drum-samples/hihat.wav",
73
+ "c": "drum-samples/cymbal.wav",
74
+ "y": "drum-samples/cymbal.wav",
75
+ "l": "drum-samples/clap.wav",
76
+ 'r': "drum-samples/ride.wav",
77
+ 'j': "drum-samples/hihat-open.wav",
78
+ 'a': "drum-samples/tambourine.wav",
79
+ 'z': "drum-samples/shaker.wav",
80
+ 'u': "drum-samples/tom-high.wav",
81
+ 'w': "drum-samples/tom-high.wav",
82
+ 'x': "drum-samples/tom-low.wav",
83
+ 'q': "drum-samples/tom-low-mid.wav",
84
+ 't': "drum-samples/tom-mid.wav",
85
+ 'v': "drum-samples/vibraslap.wav",
86
  }
87
 
88
  replacements = {
89
  "hh_closed": "hh",
90
  "hh_open": "hh",
91
+ }
92
+
93
+ replacement_chars = {
94
+ "p": "y", # splash cymbal to cymbal
95
+ 'd': 'r', # ride bell to ride
96
  }