diff options
author | Oli <olpc@localhost.localdomain> | 2007-03-05 13:33:20 (GMT) |
---|---|---|
committer | Oli <olpc@localhost.localdomain> | 2007-03-05 13:33:20 (GMT) |
commit | 771f7b8ed93126313091d17a516cb631ff36c9a9 (patch) | |
tree | 3d59421c3dc540682af5d60c13ff30142123e7a8 /Generation | |
parent | d84650c1555f3ebe07d35bca514883fcb64e5951 (diff) |
generate one page on edit's load
Diffstat (limited to 'Generation')
-rw-r--r-- | Generation/GenerationPitch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Generation/GenerationPitch.py b/Generation/GenerationPitch.py index 4ce9578..d7239a9 100644 --- a/Generation/GenerationPitch.py +++ b/Generation/GenerationPitch.py @@ -34,7 +34,7 @@ class GenerationPitch: pitchSequence = [] numberOfPitch = int( ( 1 - parameters.pitchRegularity ) * 10 + 1 ) for i in range(numberOfPitch): - pitchSequence.append((table_pitch[pitchMethod.getNextValue(10 - (int(parameters.step * 10)), (len(table_pitch)-1))]) + GenerationConstants.DEFAULT_TONIQUE) + pitchSequence.append((table_pitch[pitchMethod.getNextValue(-(10 - (int(parameters.step * 10))), (len(table_pitch)-1))]) + GenerationConstants.DEFAULT_TONIQUE) for i in range( length - numberOfPitch ): position = i % numberOfPitch pitchSequence.append( pitchSequence[ position ] ) |