raybellis / PicoSynth

Polyphonic wavetable synthesizer for the Raspberry Pi Pico
22 stars 2 forks source link

Filter implementation? #2

Open DatanoiseTV opened 10 months ago

DatanoiseTV commented 10 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 10 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 10 months ago

filter_impl_vult_c_fixedpoint.zip

raybellis commented 10 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.