Hi
I am amazed to see what happend with the code i hacked together on a rainy sunday afternoon

As I wrote in my initial post I did not write the code myself. I found it on the internet and ported it to avr (use code memory for sinwave lookup table) and 8bit operation.
It would be nice if someone could doubleckeck the math. I am not at all sure if I dit it correctly. It would also be nice if it could be put into a real arduino library. But perhaps the original author should be contacted first.
For me the code did not do what I needed. All I want is to get the base Drum out of the music to drive my dmx light controler. My next try will be something using a FIR filter.
comments to posts from the old forum:
@tendor Reply #4 - 16.11.2010 at 09:17:57
you are of course right:
we should use "pgm_read_byte_near" instead of "pgm_read_word_near"
@Toby Segaran Reply #15 - 11.01.2011 at 04:28:57
One more mistake on my side:
The frequency range is 7.8Hz to 500Hz
The frequency resolution is 7.8Hz per band (x64)