Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: JohnF Newsgroups: comp.os.linux.misc Subject: Re: White Noise Software For Linux Date: Wed, 8 Oct 2014 03:18:26 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 33 Message-ID: References: <0eb566bb-5d54-47fd-b24a-53b85abda9ed@googlegroups.com> NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1412738306 6086 166.84.1.3 (8 Oct 2014 03:18:26 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 8 Oct 2014 03:18:26 +0000 (UTC) User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (NetBSD/6.1.4 (i386)) Xref: csiph.com comp.os.linux.misc:12228 William Unruh wrote: > JohnF wrote: >> <> suppose I want to generate, say, a 1GB file containing >> something functionally like the second line below... >> play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo .1 30 \ >> --size 1GB --format mp3 -o brownnoise.mp3 >> How would I correctly do that? Thanks again, > > man sox. Look up the synth option. Note the len argument to synth. > Guessing what the syntax is is a fools game. You will never get it > right. Thanks, William, len seems to be the most straightforward solution, as far as I can tell. From line 2868 of the (Feb 1, 2013) sox man page len is the length of audio to synthesise expressed as a time or as a number of samples; 0=inputlength, default=0. Re "getting it right", yeah, sox's (Feb 1, 2013) man page has 3264 lines on my box, many of which remain a bit cryptic to me. And Loki Harfagr also followed-up... > Loki Harfagr > regarding your "^C Vs length" problem ;-) > in Sox to fix a length I'd use 'trim', e-g for a 1 min 12 secs of your exp: > $ sox -q -c 1 -n white.wav synth noise band -n 24 800 echo .1 5 1 .99 > trim 0 01:12 Thanks, Loki. That seems just about equally straightforward, i.e., from line 3024 of the (Feb 1, 2013) sox man page For example, sox infile outfile trim 0 10 will copy the first ten seconds, while -- John Forkosh ( mailto: j@f.com where j=john and f=forkosh )