Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/SynthLab/SynthLabWindow.py
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/SynthLabWindow.py
parentfcae3b4a1ae45bd8769bfcb6c6441b5920ff48e7 (diff)
SynthLab bug fix and sources pushed left
Diffstat (limited to 'SynthLab/SynthLabWindow.py')
-rw-r--r--SynthLab/SynthLabWindow.py11
1 files changed, 11 insertions, 0 deletions
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