diff options
Diffstat (limited to 'common/Generation/Generator.py')
-rwxr-xr-x | common/Generation/Generator.py | 2 |
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 |