pouët.net

Go to bottom

Audio in (6)4K intros

category: general [glöplog]
Why would you use an FFT for beat syncing if you have the note data? And I wouldn't want to waste valuable space on a FFT/DFT in a 4K, such as Kindercrasher.
added on the 2009-05-27 13:10:46 by trc_wm trc_wm
in a 4k with softsynth, you have the outputs of your envelope generators. these are pretty much perfect for syncing.
added on the 2009-05-27 13:16:14 by ryg ryg
Depends. There are some non-realtime softsynth designs ( forall(notes,n) render_note_into_buffer(n) :) where you don't get the EG outputs when you need to. But parsing the note data in a slightly different way is mostly ok.
added on the 2009-05-27 13:38:50 by kb_ kb_
When you render the song you can also put envelope values into a buffer(s) just like you do with the sound. I hope i explained it somewhat reasonable. Then you use waveOutGetPosition or similar. Then you can still have the song prerenderd.
trc_wm, the DFT code in Kindercrasher isn't more than 50 bytes anyway, and it gived quite a lot of rich information to the visuals (definitely more than noteon/noteoff), although it's not the kind of info you need for synchronization, I agree.
added on the 2009-05-27 16:31:31 by iq iq
*gave
added on the 2009-05-27 16:31:49 by iq iq
iq: did you apply any windowing of the audio data, prior to taking the FFT?
added on the 2009-05-27 17:08:23 by trc_wm trc_wm
like a hamming/hann/kaiser etc? Of course NOT :) :) :)
added on the 2009-05-27 19:20:44 by iq iq
and it's not an FFT, it's a DFT (the direct definition of the transform, which is not fast, but small - and "not slow" enought)
added on the 2009-05-27 19:22:02 by iq iq
FFT, DFT, same thing, different implementation.
added on the 2009-05-27 20:58:01 by trc_wm trc_wm

login

Go to top