[Tutor] Musical note on python
dwightdhutto at gmail.com
Wed Sep 12 14:38:32 CEST 2012
Please hit reply to all when responding.
You should be able to type in 'sudo apt-get install speaker-test' or
<dvnsarma at gmail.com> wrote:
> This is what I got
>>>> import os
>>>> os.system("speaker-test"+"--frequency 2000"+"--period 5000"+"--test
It should look like this:
os.system("speaker-test"+" --frequency 2000"+" --period 5000"+ "--test sine")
You can copy and paste it to see.
This assumed you had speaker-test, you might have another command line
app that does the same thing. So if the instructions to download above
don't work. Let me know.
Note that there is a space before everything in the string, except the
first, speaker-test, other wise it looks like this to the command
The space before the " --frequency 2000", and the rest makes it look like:
speaker-test --frequency 2000 --period 5000 --test sine
so put a space at the beginning of every string except speaker-test
If you have Windows, then you should be on the pywin32 list, I usually
assume linux on this list, but both get answered.
Remember to read this:
Mark is right, besides the little back and forth, that in fact you
need to describe, otherwise I have a tendency to speculate;)
More information about the Tutor