java - Simple music visualizer -
i understand general concepts this, new java graphics programming.
the idea is:
1. byte data song , store in byte array.
2. take small chunk of byte data, perform fft, , sort of useful data (different things can once fft performed).
3. feed processed data graphics function somehow use whatever visualization active.
i'm having hard time on figuring out how 2 , 3 in real time. want data processed, song played, , processed data influencing graphics function drawing @ same time. understand how these things separately, can't quite figure out how put together.
fourier transforms cannot performed in real time (not fast fourier variety). have able "lead" music source reading ahead generate frequency histogram. need sample of nonzero length analyze. make realtime, analyzer might grab samples of, say, half second, ten times second (so there significant overlap), compute fft on each, show difference between sample beginning @ current point in music , next 1 (which show strength of frequencies occurring during 10th of second while still having enough signal perform meaningful analysis).
yes, you'll need threads. quite few.
Comments
Post a Comment