Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundClient.py
diff options
context:
space:
mode:
authorJames <olpc@localhost.localdomain>2007-02-20 20:04:56 (GMT)
committer James <olpc@localhost.localdomain>2007-02-20 20:04:56 (GMT)
commitc709aba61c557c36c1bf761e0f9c8b95e0cdfd10 (patch)
tree149297a92f0dcbdfdd30ef167fd55900f58f3af3 /Util/CSoundClient.py
parentd26d1270bd7f3c1f9e11db5955ffb2964108a4b4 (diff)
parent16cc50c2a811234429fc00b139a537cb5281ae61 (diff)
Merge branch 'master' of git+ssh://jaberg@dev.laptop.org/git/projects/tamtam
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: