View Single Post
Old 07-16-2012, 12:05 PM   #218
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
This realtime FFT stuff is cool, but even back in the early apple-2 days, I did realtime spectrum plots (i.e. "waterfall display") by just measuring the zero-cross times to decide which bucket to increment and plot. The end result was much the same. We used it to analyze telephone signalling tones. No sines or cosines. No complex numbers. No bit reversals. But with no interrupts, every path through the code had to be padded to the same execution time for a constant time predictable run loop.

So, depending on your application, you may be able to "cheat" like I did and still have an interesting frequency spectrum visual effect. Of course, we relied on analyzing simple waveforms with a mixture of only a few pure tones. But interestingly, it did show voice plots that looked a lot like those published in the books at the time.

EDIT: We used zero-cross detection because the apple-2 built-in audio (cassette-tape) input only provided a 1-bit digital input value from an analog sound source.

Last edited by geekmaster; 07-16-2012 at 12:51 PM.
geekmaster is offline   Reply With Quote