Re: Help requested to make a train of symmetric pulse
Thor Andreassen <[email protected]>
| Newsgroups | gmane.comp.audio.sox |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 25, 2017 at 02:36:25PM +0200, Bengt Nilsson wrote:
> Dear all,
>
> sox man pages are i bit overwhelming for a newbie like me, not
> surprising for such an extensive and powerful toolbox. So I need some
> hints to get started.
>
> I need to create a sequence of symmetric pulses, first 2ms positive,
> then 2ms negative, then 0 for 996ms, repeated for 100 seconds.
What do you mean by pulse? Should they contain a tone?
If not then this should get you started:
sox "|sox -D -n -p trim 0 0.002 dcshift 0.9" \
"|sox -D -n -p trim 0 0.002 dcshift -0.9" \
"|sox -D -n -p trim 0 0.996" \
out.wav
Play it a 100 times:
sox out.wav -d repeat 99
--
BR
Thor
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot