Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/turtle_blocks_extras/turtle_blocks_extras.py
diff options
context:
space:
mode:
authorPootle daemon <pootle@pootle.sugarlabs.org>2011-11-23 05:32:11 (GMT)
committer Pootle daemon <pootle@pootle.sugarlabs.org>2011-11-23 05:32:11 (GMT)
commit3a4db47a3a6f53e438859503b836b72bebcb4db7 (patch)
treebc232263048cf00f0e11d8e4880250259c2c01ac /plugins/turtle_blocks_extras/turtle_blocks_extras.py
parent0c3ee683d6bc6f48436541b53c812bd3edf86787 (diff)
parent6220e82a32c9e448236abc3fc6c33927d7a230a7 (diff)
Merge branch 'master' of git.sugarlabs.org:turtleart/mainline
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index 1406407..2ffa3c1 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -1107,8 +1107,10 @@ bullets'))
'tmp.csd')
else:
path = os.path.join('/tmp', 'tmp.csd')
- self._audio_write(path) # Create a csound file from the score.
- os.system('csound ' + path) # Play the csound file.
+ # Create a csound file from the score.
+ self._audio_write(path)
+ # Play the csound file.
+ os.system('csound ' + path + ' > /dev/null 2>&1')
def _play_sinewave(self, pitch, amplitude, duration, starttime=0,
pitch_envelope=99, amplitude_envelope=100, instrument=1):