nausea

curses audio visualizer
git clone git://git.2f30.org/nausea
Log | Files | Refs | README | LICENSE

commit 0795e7fb740af7a66c9b502640f2d43350067c0b
parent d22fd7d040d1aca8096e6af2b7175e7a0d27ef44
Author: lostd <lostd@2f30.org>
Date:   Tue,  3 Jun 2014 13:54:43 +0300

Comment on the obvious but anyway

Diffstat:
Mnausea.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/nausea.c b/nausea.c @@ -200,6 +200,7 @@ draw_spectrum(struct frame *fr) /* scale each frequency to screen */ #define BARSCALE 0.2 for (i = 0; i < nsamples / 2; i++) { + /* complex absolute value */ fr->res[i] = cabs(fr->out[i]); /* normalize it */ fr->res[i] /= (nsamples / 2);