[Tutor] Musical note on python
Dwight Hutto
dwightdhutto at gmail.com
Wed Sep 12 09:41:05 CEST 2012
> Where have you forgotten to mention Ubuntu? "I'm sure...", the OP has specifically said "in Python", which implies to me using a Python package or module, hence my question above.
>
Well, I was assuming he would write a command line app like so:
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system("speaker-test" + " --frequency 2000" + " --period 5000" + " --test sine")
This would work in linux/ubuntu, but if they're using windows or don't
have this particular linux distribution/speaker-test installed, it
might need to be a different command line call, such as :
>>> import os
>>> os.system("your_sound_app_here" + " --frequency 2000" + " --period 5000" + " --test sine")
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
More information about the Tutor
mailing list