Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Generation/Generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'common/Generation/Generator.py')
-rwxr-xr-xcommon/Generation/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Generation/Generator.py b/common/Generation/Generator.py
index acc605c..8e92780 100755
--- a/common/Generation/Generator.py
+++ b/common/Generation/Generator.py
@@ -67,7 +67,7 @@ def generator1(
def makeDurationSequence( onsetList, parameters, table_duration, barLength, currentInstrument ):
durationSequence = []
- if Config.INSTRUMENTS[currentInstrument].soundClass == 'drum':
+ if Config.INSTRUMENTS[currentInstrument].name[0:4] == 'drum':
duration = GenerationConstants.DOUBLE_TICK_DUR / 2
durationSequence = [duration] * len(onsetList)
return durationSequence