Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundClient.py
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-02-20 07:12:53 (GMT)
committer Oli <olpc@localhost.localdomain>2007-02-20 07:12:53 (GMT)
commit8bc8d153a6309735b64b4406566a8579afbf400c (patch)
tree93b69b54e72500b1f5ef7d5b22083b9ab4b1da0e /Util/CSoundClient.py
parent93d877d87b9e5bcaf7f521d459cc51d9967a840f (diff)
drums listing
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r--Util/CSoundClient.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/Util/CSoundClient.py b/Util/CSoundClient.py
index 3c5c8ff..c493954 100644
--- a/Util/CSoundClient.py
+++ b/Util/CSoundClient.py
@@ -213,14 +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 == 'drum4kit':
- instr = Config.DRUM4INSTRUMENTS[ key ]
+ if instr in Config.DRUMKITS:
+ instr = Config.DRUMSINSTRUMENTSDICT[Config.DRUMKITS.index(instr)][ key ]
+
pitch = 1
time_in_ticks = 0
else: