Class thl::dsp::BaseProcessor#
-
class BaseProcessor#
Inheritance diagram for thl::dsp::BaseProcessor:
Subclassed by thl::dsp::dynamics::CompressorImpl, thl::dsp::dynamics::LookaheadLimiterImpl, thl::dsp::filter::ParametricEqImpl, thl::dsp::fx::ConstellationReverbImpl, thl::dsp::fx::IntellijelWavefolderImpl, thl::dsp::fx::StereoFDN, thl::dsp::granular::GrainProcessorImpl, thl::dsp::metronome::MetronomePlayerImpl, thl::dsp::synth::SineProcessorImpl, thl::dsp::utils::BandSplitter, thl::dsp::utils::DelayProcessor, thl::dsp::utils::LimiterImpl, thl::graph::Graph
Public Functions
-
BaseProcessor() = default#
-
virtual ~BaseProcessor() = default#
-
inline BaseProcessor(const BaseProcessor &other) noexcept#
-
inline BaseProcessor &operator=(const BaseProcessor &other) noexcept#
-
virtual void prepare(const double &sample_rate, const size_t &samples_per_block, const size_t &num_channels) = 0#
-
virtual void process(thl::core::BufferView buffer, uint32_t modulation_offset = 0) = 0#
-
virtual void process_with_dry(thl::core::BufferView buffer, uint32_t modulation_offset, thl::core::BufferView dry)#
process(), also writing the dry signal into
dry:the input with the phase response of process() but without its effect, so wet and dry can be blended.It matches the phase only, never the latency. Undelayed: a processor with latency_samples() leaves aligning the dry signal to its latency to whoever mixes it (a Graph delays a node’s dry path by it). The default copies
bufferintodry; override it if process() changes the phase. An emptydrymeans no dry signal.
-
inline virtual void reset()#
Clears what the processor holds from the audio it has processed (delay lines, filter states, envelopes), keeping its settings, as if no audio had passed.
Real-time safe: a Graph calls it on the audio thread when a bypassed node comes back, so the node does not resume where it froze. The default does nothing.
-
void process_modulated(const thl::core::BufferView &buffer, uint32_t modulation_offset = 0)#
-
void process_modulated_with_dry(const thl::core::BufferView &buffer, const thl::core::BufferView &dry, uint32_t modulation_offset = 0)#
-
void process_modulated(const thl::core::BufferView &buffer, std::span<const uint32_t> change_points, uint32_t modulation_offset = 0)#
-
void process_modulated_with_dry(const thl::core::BufferView &buffer, std::span<const uint32_t> change_points, const thl::core::BufferView &dry, uint32_t modulation_offset = 0)#
-
inline uint32_t latency_samples() const#
-
inline uint32_t max_latency_samples() const#
-
BaseProcessor() = default#