diff options
Diffstat (limited to 'pysamples/sinewave.py')
-rw-r--r-- | pysamples/sinewave.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pysamples/sinewave.py b/pysamples/sinewave.py deleted file mode 100644 index 4f14c4c..0000000 --- a/pysamples/sinewave.py +++ /dev/null @@ -1,15 +0,0 @@ -#Copyright (c) 2010-11, Tony Forster - -# This procedure is invoked when the user-definable block on the -# "extras" palette is selected. - -# Usage: Import this code into a Python (user-definable) block and -# pass a frequency in Hertz to the Python block. A tone will play over -# the speaker at the specified frequency. - - -def myblock(tw, frequency): - ''' Plays a sound at frequency frequency ''' - - import os - os.system('speaker-test -t sine -l 1 -f %d' % (int(frequency))) |