Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Generation
diff options
context:
space:
mode:
authorOli2 <olivier.belanger@umontreal.ca>2007-03-14 06:32:17 (GMT)
committer Oli2 <olivier.belanger@umontreal.ca>2007-03-14 06:32:17 (GMT)
commitfee28b6dc278577e26895c6b38056bfe900c7ab5 (patch)
treed25822e06a23f6655714f6daf3b271b6b5ef02a7 /Generation
parent98d68659ecf5f914c9c56d0e4bc3fc4fc541983e (diff)
minor changes
Diffstat (limited to 'Generation')
-rwxr-xr-xGeneration/GenerationConstants.py2
-rwxr-xr-xGeneration/Generator.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Generation/GenerationConstants.py b/Generation/GenerationConstants.py
index a68b9f8..b31d723 100755
--- a/Generation/GenerationConstants.py
+++ b/Generation/GenerationConstants.py
@@ -8,7 +8,7 @@ class GenerationConstants:
PHRASE_LENGTH = 4
PHRASE_COMPLEXITY = .5
- TABLE_ONSET_VALUES = [ 3, 3, 6, 3, 6, 4, 3, 6, 6, 12, 6, 12, 8, 6, 12, 18, 12, 24, 12, 18, 36, 24, 36, 24, 48 ]
+ TABLE_ONSET_VALUES = [ 3, 3, 6, 3, 6, 12, 4, 3, 6, 6, 12, 6, 12, 18, 8, 6, 12, 18, 12, 24, 12, 18, 36, 24, 36, 24, 48 ]
# scaling constants
MAJOR = 0
diff --git a/Generation/Generator.py b/Generation/Generator.py
index c5be1b7..22c23de 100755
--- a/Generation/Generator.py
+++ b/Generation/Generator.py
@@ -52,6 +52,8 @@ def generator1(
def makeGainSequence( onsetList ):
gainSequence = []
+ max = GenerationConstants.GAIN_MAX_BOUNDARY
+ midMax = GenerationConstants.GAIN_MID_MAX_BOUNDARY
for onset in onsetList:
if onset == 0:
gain = random.uniform(GenerationConstants.GAIN_MID_MAX_BOUNDARY, GenerationConstants.GAIN_MAX_BOUNDARY)