Re:I Over-Engineered a Fast Fourier Transform for Arduino
by Gordonjcp on Friday November 25, 2022 @03:46AM
(#33740490)
For the same reason as I implemented a VA synth on an Arduino with an antialiased oscillator and 2-pole resonant filter - because building a Ship In A Bottle is fun!
[ Parent
| on HN ]
Re:I Over-Engineered a Fast Fourier Transform for Arduino
by mv9 on Friday November 25, 2022 @06:35AM
(#33741424)
Is it open source? I'm curious.
Re:I Over-Engineered a Fast Fourier Transform for Arduino
by Gordonjcp on Saturday November 26, 2022 @08:15AM
(#33752361)
The oscillator bit is, but I don't appear to have uploaded the one with the filter which I will need to find.
https://github.com/ErroneousBosh/slttblep
The filter is just an SVF with, with a precomputed expo scale "bent over" at the top to correct for quantisation. From that the two SVF coefficients ω/Q and ω*Q are calculated every time there's a control update and of course because you can't divide on an Arduino it uses a lookup table of reciprocals just as for the blep. I could probably use a "wider" table of 16-bit values for better precision.