[PlanetCCRMA] sound programming
Kai Vehmanen
kai.vehmanen at wakkanet.fi
Sun Feb 1 14:39:01 PST 2004
On 1 Feb 2004, Christoph Lehmann wrote:
> I need to synthesize/generate simple sinus tones, which last for a certain time
> (e.g. 100ms) and have a fade-in and a fade-out of each e.g. 5ms. Lot many of
> such pieces I need to append to each other
Here's how you can do it with Ecasound:
- tone 1
- 880Hz sine, generated with 'sine_fcac' LADSPA plugin (id=1047)
- 5ms fade-in
- after 90ms, a 5ms fade-out
- output to 'foo.wav'
ecasound -b:1 -i null -el:sine_fcac,880,1 -ea:100 -kl:1,0,100,0.005 \
-ea:100 -kl2:1,100,0,0.095,0.005 -o foo.wav -t:0.100
- tone 2
- add 440Hz sine after the previous one
- similar 5ms fadeins and fadeouts
ecasound -b:1 -i null -el:sine_fcac,440,1 -ea:100 -kl:1,0,100,0.005 \
-ea:100 -kl2:1,100,0,0.095,0.005 -o foo.wav -y:0.100 -t:0.100
More info can be found at:
http://www.eca.cx
http://www.wakkanet.fi/~kaiv/ecasound/Documentation/ecasound_manpage.html
http://www.wakkanet.fi/~kaiv/ecasound/Documentation/examples.html
Ecasound is part of PlanetCCRMA, so you might already have it installed.
--
http://www.eca.cx
Audio software for Linux!
More information about the PlanetCCRMA
mailing list