Subtractive Synthesis
A subtractive synth programmed in C++ using the Maximillian DSP library and the Juce Framework for the GUI.
Features a single square-wave oscillator, two LFOs and a low-pass filter. The resonance and cutoff of the filter can be modulated by the two LFOs. The frequency and amplitudes of the LFOs are set via rotary sliders, as are the initial cutoff and resonance settings.
The LFOs are offset so that only positive amplitudes are generated in order to avoid negative ranges being produced for the cutoff and resonance.
To ensure that the modulation doesn't push the resonance and cutoff too high, or past the Nyquist frequency, the result after modulation is restricted to maximum 20000 for the cutoff, and maximum 10 for resonance.