raybellis / PicoSynth

Polyphonic wavetable synthesizer for the Raspberry Pi Pico
17 stars 1 forks source link

Filter implementation? #2

Open DatanoiseTV opened 8 months ago

DatanoiseTV commented 8 months ago

Are you planning on adding a filter?

You could probably reuse some code generated by Vult DSP. There is a "ladder-type" low-pass filter and a SVF filter implementation I could share.

DatanoiseTV commented 8 months ago

Vult is a transcompiler which can compile to C++ along other languages.

Here is the filter code (in Vult DSP language): https://github.com/vult-dsp/vult/tree/master/examples/filters

DatanoiseTV commented 8 months ago

filter_impl_vult_c_fixedpoint.zip

raybellis commented 8 months ago

Yes, a filter is the highest priority for the next feature. There's actually a filter branch where I started work on a state-variable-filter, but I was having trouble finding a decent implementation that would be stable at higher cutoff frequencies.