Time-stamp: <2001-05-29 19:10:15 pvsavola>
--/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/--
V o i c e A p p
*** program to visualize sound waves via FFT (Fast Fourier Transformation) ***
This thing works by reading ("/dev/dsp"), and transforming data via FFT. The result is thrown on the screen in matrixish colors ;)
Contact Pasi Savolainen <pvsavola@cc.hut.fi> in case of trouble.
This program is available under the GNU General Public License version 2.
- Compilation
- You need SDL 1.1 or later, FFTW, and C++ -compiler. these can be found in packages named "libsdl1.2-dev, fftw-dev".
--/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/--
*** Parameters supported by VoiceApp:
-s input via stdin. this means you can pipe input into voiceapp,
look "./voiceapp --help" for examples.
-n samples how many samples do we perform FFT over, more samples, the
lower is the frequency you get to see (512 means you get
to see about 88Hz)
if samples get lower, then data is drawn faster on the screen.
please note that numbers like 128,256,512... work best.
-w width specifies how many pixels wide your window should be.
-f falloff changes falloff-multiplicator.
this should be 0.0->1.0 (0.75 is good).
it mainly controls how 'visible' sound is,
for example first some lots of drum-banging with
HUGE intensities per freq, and them some silent
piano. if falloff is 1.0 you'll never see piano
on FFT. if falloff is 0.75, piano will become
visible soon.
-l disable 'walking line'
-i disable frequency info
-shiftw enable ShiftView, disables WalkLine, this eats lot's of
processing juice. probably because I fucked up something
with alpha-channel (tried not to use..)
-red Color modifier, four values separated by commas. Values
-green must be 0.0->1.0, where 1.0 is "brightest".
-blue First value is for the "most silent" sound, second one
tells "where-to" go when volume increases. FOURTH is for
the "most loud" one and THIRD tells "where-from" color
"arrives" at point four.
F.ex 0,0.1,0.6,1 gives us black at most silent parts,
little brighter at "medium-volume" and bright when sound
is loud.
--/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/--
*** Examples:
mpg123 -s -r 44100 -m /some/mp3/file | ./voiceapp -s
./voiceapp -n 1024 -w 600 -f 0.8\n"
./voiceapp -n 1024 -w 800 -f 0.6 -s < /var/lib/locate/locatedb
--/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/=/--
