feat: add Pirkle diode ladder filter with filter type selection#33
Open
dfl wants to merge 4 commits intomidilab:developfrom
Open
feat: add Pirkle diode ladder filter with filter type selection#33dfl wants to merge 4 commits intomidilab:developfrom
dfl wants to merge 4 commits intomidilab:developfrom
Conversation
- Fixes 2 issues related to each other midilab#22 and midilab#30 . - Removes static initialized members that might be a fix for midilab#23 but not tested for the issue specific scenario yet. - Update JUCE to 8.0.5 to make it compilant on MacOS Tahoe for build. - Added a Dockerflie for Linux build with specific old glibc for broad support on different linuxes distros.
- Add DiodeLadderFilter based on Will Pirkle's analysis - Implement 4-pole diode ladder with TB-303 octave mode option - Add FilterType enum (TeeBee, Diode, DiodeOctave) - Integrate filter selection into Open303 synth engine - Include passband gain compensation and input drive 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
4a7d4a8 to
b451d90
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a more accurate filter model based on Will Pirkle's diode ladder analysis.
Filter mode can be selected as [TeeBee, Diode, DiodeOctave]
The setOctaveMode param makes the first pole an octave higher, which is a weird quirk of the TB-303 (and why some people say it is 18db/oct which is not quite correct). This ends up taming the self-oscillation a bit, and should be the default. If a more aggressive self-oscillation is desired, then one can choose the regular Diode ladder.
There are also better saturation nonlinearities, which can be driven by boosting the input gain.
This PR also adds passband gain compensation, which is essentially a bass control to balance out the thin sound when resonance is increased. You can think of the knob like a highpass filter, though that's not how it works under the hood.