[ale] Tone Generator

Charles Shapiro hooterpincher at gmail.com
Fri May 21 20:56:38 EDT 2010


sox V14.3 can do this:

sox -n -p synth 0.5 sine 200-500 synth 0.5 sine fmod 700-100  | play -
(stereo)

sox -n -p  synth 0.5 sine 200-500 synth 0.5 sine fmod 700-100 remix 0 1 | play -

(right side)

sox -n -p  synth 0.5 sine 200-500 synth 0.5 sine fmod 700-100 remix 1 0 | play -

(left side)

Leave off the "play -" and substitute a filename for the "-p" if you
want a wav (or other format ) file instead of goin' to the speakers..

sox -n left.wav  synth 0.5 sine 200-500 synth 0.5 sine fmod 700-100 remix 1 0
play left.wav

The "remix" argument to sox is fabulously baroque and should let you
tailor what channels you want to hear; you can use the sox "play"
command to direct it to a specific device.

I just ganked the arguments to "synth" directly off the man page; you
can make that sound as long and as strange as you care to fiddle with
it.

-- CHS

On Fri, May 21, 2010 at 11:26 AM, Brian Pitts <brian at polibyte.com> wrote:
> On 05/21/2010 11:03 AM, Chris Fowler wrote:
>> I'm running into a volume problem on my USB dongle.  I'm on Ubuntu 9.10.
>> In alsamixer if I set the PCM output of the dongle to 2 (almost nothing)
>> it is very loud.  I do see 10db of gain in alsamixer for the device but
>> can't figure out how to turn it off.  I may have to build a pad for the
>> dongle so it does not overload the filter :(
>
> Maybe this is relevant?
>
> http://0pointer.de/blog/projects/decibel-data.html
>
> --
> All the best,
> Brian Pitts
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



More information about the Ale mailing list