diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-09-21 00:13:06 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-09-21 00:13:06 (GMT) |
commit | 72610bcaf281600e9925d65db8f9af89b14e558e (patch) | |
tree | 3712615fcb12b7a8b5ed273ecf5d63531363ea4e /common/Generation/GenerationPitch.py | |
parent | 05958007515277d0adcd9ae161c12ddb0cfb6426 (diff) |
meta algo
Diffstat (limited to 'common/Generation/GenerationPitch.py')
-rw-r--r-- | common/Generation/GenerationPitch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/Generation/GenerationPitch.py b/common/Generation/GenerationPitch.py index 4eaf8ae..4c34e8f 100644 --- a/common/Generation/GenerationPitch.py +++ b/common/Generation/GenerationPitch.py @@ -17,8 +17,8 @@ class GenerationPitch: def drunkPitchSequence(self, length, parameters, table_pitch, trackId): pitchSequence = [] append = pitchSequence.append - numberOfPitch = int( ( 1 - (parameters.pitchRegularity*.8) ) * 10 + 1 ) - step = -(int(parameters.step * 10)) + numberOfPitch = int( ( 1 - (parameters.pitchRegularity[trackId]*.8) ) * 10 + 1 ) + step = -(int(parameters.step[trackId] * 10)) max = len(table_pitch)-1 nextValue = self.methodList[parameters.pattern[trackId]].getNextValue tonique = GenerationConstants.DEFAULT_TONIQUE |