diff options
author | Oli <olpc@localhost.localdomain> | 2007-02-20 07:12:53 (GMT) |
---|---|---|
committer | Oli <olpc@localhost.localdomain> | 2007-02-20 07:12:53 (GMT) |
commit | 8bc8d153a6309735b64b4406566a8579afbf400c (patch) | |
tree | 93b69b54e72500b1f5ef7d5b22083b9ab4b1da0e /Util/CSoundClient.py | |
parent | 93d877d87b9e5bcaf7f521d459cc51d9967a840f (diff) |
drums listing
Diffstat (limited to 'Util/CSoundClient.py')
-rw-r--r-- | Util/CSoundClient.py | 11 |
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: |