From 3a4db47a3a6f53e438859503b836b72bebcb4db7 Mon Sep 17 00:00:00 2001 From: Pootle daemon Date: Wed, 23 Nov 2011 05:32:11 +0000 Subject: Merge branch 'master' of git.sugarlabs.org:turtleart/mainline --- 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): -- cgit v0.9.1