[Tutor] Musical note on python
breamoreboy at yahoo.co.uk
Wed Sep 12 10:04:15 CEST 2012
On 12/09/2012 08:47, Dwight Hutto wrote:
> 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)
Extremely useful if and only if this is what the OP wants. I prefer
working to facts and not assumptions, plus the full context of previous
More information about the Tutor