You are not logged in.

#1 2014-05-19 10:42:38

ford prefect
Member
Registered: 2010-07-08
Posts: 43

search for tool to create audio snippets of given frequency

hi there,

for some research i need to create audiosnippets (in whatever format) with certain frequencies.
i remember using such a tool once which was also capable of generating linear changes in freq.

does anybody have an idea of the name of that tool (or another similar), that could do the job?

some tools (like audacity) might also be capable, but i prefer to work from commandline.

thanks


towel-day.com
nvidia ist keine Hautcreme

Offline

#2 2014-05-19 11:03:20

o_caino
Member
Registered: 2013-06-06
Posts: 167

Re: search for tool to create audio snippets of given frequency

I remember using sox for that purpose.
I used something inspired in this http://www.commandlinefu.com/commands/v … 1-to-99-hz

Offline

#3 2014-05-19 11:13:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: search for tool to create audio snippets of given frequency

[extra]/sox will do it with the 'synth' option.  You can generate different frequencies on different channels, add all sorts of audio effects or manipulations, etc.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2014-05-19 13:06:16

ford prefect
Member
Registered: 2010-07-08
Posts: 43

Re: search for tool to create audio snippets of given frequency

thanks, sox works for now. it seems to be the ultimate powerfull weapon on audioproduction.
for the record, i used this code:

sox -nt wav -r44100 -c2 440.wav synth 5 sine 440

if still somebody has an idea about the programm i once used, that'd be great.


towel-day.com
nvidia ist keine Hautcreme

Offline

#5 2014-05-19 19:12:29

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: search for tool to create audio snippets of given frequency

You could play around with sbagen, although it is for brainwave "entertainment". One example:

$ sbagen test.sbg; cat test.sbg
off: -
a1: 100/100 
a2: 180/100
NOW+00:00 a1 ->
NOW+00:02 a2
NOW+00:03 off

This gives you a linear transition from 100 Hz (full volume) to 180 Hz over a period of two minutes. Then sustains 180 Hz for approximately 1 minute and fades out.

Last edited by emeres (2014-05-19 19:24:22)

Offline

#6 2014-05-19 20:00:18

DrZaius
Member
Registered: 2008-01-02
Posts: 193

Re: search for tool to create audio snippets of given frequency

ffmpeg is another option. Example using the sine audio filter for 5 second output:

ffmpeg -f lavfi -i sine=440 -t 5 output.wav

See the docs for more options and examples.

Offline

#7 2014-05-20 06:31:24

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,668

Re: search for tool to create audio snippets of given frequency

If want something with a gui, then audacity has a dialog that can generate sine/square/sawtooth waves

Offline

#8 2014-05-20 11:22:56

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: search for tool to create audio snippets of given frequency

Ecasound would be another option:

ecasound -i:tone,sine,440,5

Or if you like to get your hands dirty, generate whatever signal [transition] you want in python and export it wav.

Offline

Board footer

Powered by FluxBB