Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Generation
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-03-05 13:33:20 (GMT)
committer Oli <olpc@localhost.localdomain>2007-03-05 13:33:20 (GMT)
commit771f7b8ed93126313091d17a516cb631ff36c9a9 (patch)
tree3d59421c3dc540682af5d60c13ff30142123e7a8 /Generation
parentd84650c1555f3ebe07d35bca514883fcb64e5951 (diff)
generate one page on edit's load
Diffstat (limited to 'Generation')
-rw-r--r--Generation/GenerationPitch.py2
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 ] )