Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTamJam.activity/Jam/Popup.py
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-09-21 08:58:40 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-09-21 08:58:40 (GMT)
commit218aa89d996ac75ba7b863d99cf46044d83df163 (patch)
tree241be671f0dd2d1744fc7e487522a546838d4566 /TamTamJam.activity/Jam/Popup.py
parent02d08e266a577f82b84a8fe0fbf8bfb83c2e7edc (diff)
Jam algo tunning and Desktop 1 and 2
Diffstat (limited to 'TamTamJam.activity/Jam/Popup.py')
-rw-r--r--TamTamJam.activity/Jam/Popup.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/TamTamJam.activity/Jam/Popup.py b/TamTamJam.activity/Jam/Popup.py
index bbc6bd8..4d6bca2 100644
--- a/TamTamJam.activity/Jam/Popup.py
+++ b/TamTamJam.activity/Jam/Popup.py
@@ -17,6 +17,7 @@ from common.Util.CSoundClient import new_csound_client
from Jam.Parasite import LoopParasite
from common.Generation.Generator import generator1, GenerationParameters
+from common.Generation.GenerationConstants import GenerationConstants
class SELECTNOTES:
ALL = -1
@@ -278,7 +279,7 @@ class Drum( Popup ):
self.GUI["regularityLabel"].set_size_request( 130, -1 )
self.GUI["regularityLabel"].set_alignment( 0.0, 0.5 )
self.GUI["regularityBox"].pack_start( self.GUI["regularityLabel"], False, padding = style.DEFAULT_PADDING )
- self.GUI["regularityAdjustment"] = gtk.Adjustment( 0.5, 0.0, 1.0, 0.1, 0.1, 0 )
+ self.GUI["regularityAdjustment"] = gtk.Adjustment( 0.8, 0.0, 1.0, 0.1, 0.1, 0 )
self.GUI["regularityAdjustment"].connect( 'value-changed', self.handleRegularity )
self.GUI["regularitySlider"] = gtk.HScale( adjustment = self.GUI["regularityAdjustment"] )
self.GUI["regularitySlider"].set_size_request( 250, -1 )
@@ -385,7 +386,7 @@ class Loop( Popup ):
self.GUI["regularityLabel"].set_size_request( 130, -1 )
self.GUI["regularityLabel"].set_alignment( 0.0, 0.5 )
self.GUI["regularityBox"].pack_start( self.GUI["regularityLabel"], False, padding = style.DEFAULT_PADDING )
- self.GUI["regularityAdjustment"] = gtk.Adjustment( 0.5, 0.0, 1.0, 0.1, 0.1, 0 )
+ self.GUI["regularityAdjustment"] = gtk.Adjustment( 0.8, 0.0, 1.0, 0.1, 0.1, 0 )
self.GUI["regularityAdjustment"].connect( 'value-changed', self.handleRegularity )
self.GUI["regularitySlider"] = gtk.HScale( adjustment = self.GUI["regularityAdjustment"] )
self.GUI["regularitySlider"].set_size_request( 250, -1 )
@@ -547,8 +548,14 @@ class Loop( Popup ):
def handleRegenerate( self, widget ):
parameters = GenerationParameters(
+ density = [0.9 for x in range(4)],
rythmRegularity = [self.block.getData( "regularity" ) for x in range(4)],
- pitchRegularity = [self.block.getData( "regularity" ) for x in range(4)])
+ step = [0.5 for x in range(4)],
+ pitchRegularity = [0. for x in range(4)],
+ articule = [1. for x in range(4)],
+ silence = [0.1 for x in range(4)],
+ pattern = [3 for x in range(4)],
+ scale = GenerationConstants.NATURAL_MINOR)
self.owner._generateTrack( self.instrument["id"], self.curPage, 0, parameters, generator1 )