diff options
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 6 |
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): |