A Processor implementing a comb-based filter with multiple feedback styles.
Definition comb_filter.h:18
CombFilter * comb_filter_
The internal CombFilter processor used by this module.
Definition comb_module.h:79
void init() override
Initializes the CombModule, creating and connecting the internal CombFilter.
Definition comb_module.cpp:8
void hardReset() override
Performs a hard reset of the comb filter, returning it to its initial state.
Definition comb_module.cpp:43
static constexpr int kMaxFeedbackSamples
Maximum number of feedback samples in the comb filter.
Definition comb_module.h:20
void reset(poly_mask reset_mask) override
Resets the comb filter with a given mask to handle polyphonic voices.
Definition comb_module.cpp:33
CombModule()
Constructs a CombModule.
Definition comb_module.cpp:6
@ kAudio
Definition comb_module.h:35
@ kFilterCutoffBlend
Definition comb_module.h:39
@ kMidiBlendTranspose
Definition comb_module.h:38
@ kResonance
Definition comb_module.h:41
@ kReset
Definition comb_module.h:36
@ kStyle
Definition comb_module.h:40
@ kMidiCutoff
Definition comb_module.h:37
void useOutput(Output *output)
Uses an existing Output object as this Processor's first output.
Definition processor.cpp:138
force_inline Input * input(unsigned int index=0) const
Retrieves the Input pointer at a given index.
Definition processor.h:587
void useInput(Input *input)
Uses an existing Input object as this Processor's first input.
Definition processor.cpp:126
virtual void hardReset()
Called to perform a "hard" reset for all voices.
Definition processor.h:272
force_inline Output * output(unsigned int index=0) const
Retrieves the Output pointer at a given index.
Definition processor.h:616
virtual void init()
Called after constructor, used for any additional initialization. Subclasses can override....
Definition processor.h:258
virtual void reset(poly_mask reset_mask)
Called to reset the Processor's per-voice state (e.g., on note-on).
Definition processor.h:267
Processor * getLocalProcessor(const Processor *global_processor)
Retrieves the local instance of a globally defined Processor.
Definition processor_router.cpp:376
virtual void addProcessor(Processor *processor)
Adds a Processor to be managed by this router.
Definition processor_router.cpp:121
@ kPassBlend
Blending parameter for low-pass, high-pass, band-pass.
Definition synth_filter.h:62
@ kResonance
Resonance parameter.
Definition synth_filter.h:58
@ kTranspose
MIDI transpose in semitones.
Definition synth_filter.h:65
@ kMidiCutoff
MIDI-based cutoff parameter.
Definition synth_filter.h:57
@ kReset
Reset signal.
Definition synth_filter.h:56
@ kStyle
Filter style (12 dB, 24 dB, etc.)
Definition synth_filter.h:61
@ kAudio
Audio input index.
Definition synth_filter.h:55
A ProcessorRouter that encapsulates a cohesive unit of functionality in the synthesizer.
Definition synth_module.h:129
Contains classes and functions used within the Vital synthesizer framework.
Represents a vector of integer values using SIMD instructions.
Definition poly_values.h:56