[Tutor] Musical note on python
Dwight Hutto
dwightdhutto at gmail.com
Wed Sep 12 09:47:48 CEST 2012
So the following would be the script, except the ability to change
specific values such as frequency with a scroll widget.
import os
#Variables for system call
command_line_app_for sound = "speaker-test"
frequency = " --frequency 2000"
length_of_sound_ms = " --period 5000"
test_type = " --test sine"
#System call with variables placed in
os.system( command_line_app_for sound + frequency + length_of_sound_ms
+ test_type)
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
More information about the Tutor
mailing list