Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-03-04 09:39:27 (GMT)
committer Oli <olpc@localhost.localdomain>2007-03-04 09:39:27 (GMT)
commitf30b36406907dc1956a18c550fe2fdfa151323f4 (patch)
treecb8ff28217526f957f3e6de5796b32656395e62e /SynthLab
parentfcae3b4a1ae45bd8769bfcb6c6441b5920ff48e7 (diff)
SynthLab bug fix and sources pushed left
Diffstat (limited to 'SynthLab')
-rwxr-xr-xSynthLab/SynthLabConstants.py2
-rw-r--r--SynthLab/SynthLabParametersWindow.py8
-rw-r--r--SynthLab/SynthLabWindow.py11
3 files changed, 12 insertions, 9 deletions
diff --git a/SynthLab/SynthLabConstants.py b/SynthLab/SynthLabConstants.py
index 2a41682..a9dd077 100755
--- a/SynthLab/SynthLabConstants.py
+++ b/SynthLab/SynthLabConstants.py
@@ -33,7 +33,7 @@ class SynthLabConstants:
elif y > HALF_SIZE-GATE_OFFSET: y = HALF_SIZE
m.append( ( x, y ) )
- INIT_LOCATIONS = [ [55,750], [135,750], [215,750], [295, 750], [420,750], [500,750], [580,750], [660, 750], [785,750], [865,750], [945,750], [1025, 750], [540, 645]]
+ INIT_LOCATIONS = [ [420,750], [500,750], [580,750], [660, 750], [55,750], [135,750], [215,750], [295, 750], [785,750], [865,750], [945,750], [1025, 750], [540, 645]]
FLOAT = [.01, False]
INTEGER = [1, 1]
diff --git a/SynthLab/SynthLabParametersWindow.py b/SynthLab/SynthLabParametersWindow.py
index 243d70a..948bf10 100644
--- a/SynthLab/SynthLabParametersWindow.py
+++ b/SynthLab/SynthLabParametersWindow.py
@@ -29,7 +29,6 @@ class SynthLabParametersWindow( gtk.Window ):
self.connect("key-press-event", self.onKeyPress)
self.connect("key-release-event", self.onKeyRelease)
self.connect('focus_in_event',self.onFocusIn)
- self.connect('focus_out_event',self.onFocusOut)
self.instanceID = instanceID
self.objectType = self.instanceID / 4
self.synthObjectsParameters = synthObjectsParameters
@@ -46,7 +45,6 @@ class SynthLabParametersWindow( gtk.Window ):
self.tooltips = gtk.Tooltips()
self.sample_names = [name for i in range( len( Config.INSTRUMENTS ) ) for name in Config.INSTRUMENTS.keys() if Config.INSTRUMENTS[ name ].instrumentId == i ]
-
types = SynthLabConstants.CHOOSE_TYPE[self.objectType]
types2 = SynthLabConstants.CHOOSE_TYPE2[self.objectType]
typesLabelList = Tooltips.SYNTHTYPES[self.objectType]
@@ -138,15 +136,9 @@ class SynthLabParametersWindow( gtk.Window ):
self.show_all()
def onFocusIn(self, event, data=None):
- print 'DEBUG: Params Window::onFocusIn'
csnd = new_csound_client()
csnd.connect(True)
- def onFocusOut(self, event, data=None):
- print 'DEBUG: Params Window::onFocusOut'
-
-
-
def destroy( self, data=None ):
self.hide()
diff --git a/SynthLab/SynthLabWindow.py b/SynthLab/SynthLabWindow.py
index 7306848..0aa4d01 100644
--- a/SynthLab/SynthLabWindow.py
+++ b/SynthLab/SynthLabWindow.py
@@ -48,6 +48,17 @@ class SynthLabWindow(SubActivity):
self.duration = 2
self.durString = '%.2f' % self.duration
self.playingPitch = []
+
+ loopPointsTable = []
+ sample_names = [name for i in range( len( Config.INSTRUMENTS ) ) for name in Config.INSTRUMENTS.keys() if Config.INSTRUMENTS[ name ].instrumentId == i ]
+ for inst in sample_names:
+ loopStart = Config.INSTRUMENTS[ inst ].loopStart
+ loopEnd = Config.INSTRUMENTS[ inst ].loopEnd
+ crossDur = Config.INSTRUMENTS[ inst ].crossDur
+ loopPointsTable.extend( [ loopStart, loopEnd, crossDur ] )
+ mess = "f5755 0 512 -2 " + " " .join([str(n) for n in loopPointsTable])
+ self.csnd.inputMessage( mess )
+
self.lineWidth = 3
self.lineWidthMUL2 = self.lineWidth*2
self.lineWidthMUL4 = self.lineWidth*4