Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/ControlStream.py
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-10-20 17:25:17 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-10-20 17:25:17 (GMT)
commitcd62e6af4d8f4dda887f1aac15abb13128a7f447 (patch)
tree13fc523fa1f9d1555c7d235e3bf6c5a8bcfbaf25 /common/Util/ControlStream.py
parent138653b35fe9ed1ccc651fd988fac4b14e83f71a (diff)
removed csound table's load from startup
Diffstat (limited to 'common/Util/ControlStream.py')
-rw-r--r--common/Util/ControlStream.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/common/Util/ControlStream.py b/common/Util/ControlStream.py
index 4eeabc1..ae62c61 100644
--- a/common/Util/ControlStream.py
+++ b/common/Util/ControlStream.py
@@ -17,7 +17,7 @@ class TamTamOStream:
self.file = file
def note_add(self, note):
- l = ['note_add', note.id, note.page, note.track,
+ l = ['note_add', note.id, note.page, note.track,
note.cs.onset,
note.cs.pitch,
note.cs.amplitude,
@@ -120,7 +120,7 @@ class TamTamTable:
nid = int(argv[0])
page = self.pid[int(argv[1])]
track = int(argv[2])
- cs = CSoundNote(
+ cs = CSoundNote(
int(argv[3]),
int(argv[4]),
float(argv[5]),
@@ -149,7 +149,7 @@ class TamTamTable:
insts = ""
for str in argv[3:]:
insts += str
- print pid, insts
+ #print pid, insts
instruments = eval( insts )
if len( self.noteDB.tune ):
after = self.noteDB.tune[-1]
@@ -189,11 +189,11 @@ class TamTamTable:
self.jam.updateLoopImage( data["id"] )
if child:
- block = blockClass( self.jam.getDesktop(), data )
- self.lastBlock.addChild( block )
+ block = blockClass( self.jam.getDesktop(), data )
+ self.lastBlock.addChild( block )
else:
block = self.jam.getDesktop().addBlock( blockClass, data, ( x, y ) )
-
+
block.setPlaced( True )
if blockClass == Block.Instrument and active:
@@ -206,7 +206,7 @@ class TamTamTable:
#try:
if os.path.isfile( filename ):
os.remove( filename )
-
+
file = open( filename, "w" )
for line in self.file:
if line == "desktop_store END\n":
@@ -229,4 +229,3 @@ class TamTamTable:
def quit(self, argv):
print 'quitting...'
sys.exit(0)
-