Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundClient.py
diff options
context:
space:
mode:
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r--Util/CSoundClient.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py
index eb80ce4..913e143 100644
--- a/Util/CSoundClient.py
+++ b/Util/CSoundClient.py
@@ -213,12 +213,9 @@ class _CSoundClientPlugin:
else:
key = pitch
- if instr == 'drum1kit':
- instr = Config.DRUM1INSTRUMENTS[ key ]
- if instr == 'drum2kit':
- instr = Config.DRUM2INSTRUMENTS[ key ]
- if instr == 'drum3kit':
- instr = Config.DRUM3INSTRUMENTS[ key ]
+ if instr in Config.DRUMKITS:
+ instr = Config.DRUMSINSTRUMENTSDICT[Config.DRUMKITS.index(instr)][ key ]
+
pitch = 1
time_in_ticks = 0
else: