From 6220e82a32c9e448236abc3fc6c33927d7a230a7 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 22 Nov 2011 12:48:33 +0000 Subject: suppress verbose csound output in log --- (limited to 'plugins') 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