|
| void | setFeedbackMode (FeedbackMode mode) noexcept |
| | Selects clean or analog feedback regeneration. Thread-safe.
|
| |
| FeedbackMode | getFeedbackMode () const noexcept |
| | Returns the active feedback mode.
|
| |
| void | prepare (const AudioSpec &spec) |
| | Prepares for insert use with the default capacity (4 seconds).
|
| |
| void | prepare (const AudioSpec &spec, double maxDelaySeconds) |
| | Prepares the delay structures and allocates memory. Must be called before processing.
|
| |
| void | prepareMs (const AudioSpec &spec, double maxDelayMs) |
| | Prepares the delay with a maximum capacity in milliseconds.
|
| |
| void | reset () noexcept |
| | Clears the delay buffers and resets all filter and feedback states.
|
| |
| void | setSmoother (SmootherType type) noexcept |
| | Sets the smoothing algorithm used for delay time changes.
|
| |
| void | setSmoothingTime (float ms) noexcept |
| | Sets the smoothing transition time.
|
| |
| void | setDelaySamples (SampleType samples) noexcept |
| | Sets the delay time in samples.
|
| |
| void | setDelayMs (SampleType ms) noexcept |
| | Sets the delay time in milliseconds.
|
| |
| void | setDelaySeconds (SampleType secs) noexcept |
| | Sets the delay time in seconds.
|
| |
| SampleType | getCurrentDelaySamples () const noexcept |
| | Returns the current target delay time in samples.
|
| |
| void | setFeedback (SampleType gain) noexcept |
| | Sets the global feedback amount.
|
| |
| void | setFeedbackLpHz (SampleType freq) noexcept |
| | Sets the cutoff frequency for the feedback low-pass filter (0 to disable). Non-finite values are ignored.
|
| |
| void | setFeedbackHpHz (SampleType freq) noexcept |
| | Sets the cutoff frequency for the feedback high-pass filter (0 to disable). Non-finite values are ignored.
|
| |
| SampleType | processSample (int ch, SampleType input) noexcept |
| | Processes a single sample for a specific channel.
|
| |
| void | processBlock (AudioBufferView< SampleType > buffer) noexcept |
| | Insert-style processing: the dry/wet blend, in place, with the stored parameters (setDelayMs(), setFeedback(), the feedback filters and mode, setMix()).
|
| |
| void | setMix (SampleType mix) noexcept |
| | Sets the dry/wet blend of the insert-style processBlock(buffer).
|
| |
| SampleType | getMix () const noexcept |
| | Returns the insert dry/wet blend.
|
| |
| void | setPingPong (bool on) noexcept |
| | Ping-pong for the insert-style processBlock(buffer): the first two channels feed their echoes to each other (left to right, right to left), with the same wiring as processPingPong() and the insert's blend, dry + (wet - dry) * mix. Further channels keep a plain delay. Off by default; needs two or more channels. Thread-safe.
|
| |
| bool | getPingPong () const noexcept |
| | True when the insert path runs as a ping-pong delay.
|
| |
| int | getLatency () const noexcept |
| | Latency in samples: none (the delay is the effect, not a latency).
|
| |
| void | processBlock (AudioBufferView< SampleType > buffer, SampleType delayMs, SampleType feedback=0, SampleType lpHz=0, SampleType hpHz=0) noexcept |
| | Processes a multi-channel block in-place.
|
| |
| void | processChannel (AudioBufferView< SampleType > buffer, int ch, SampleType delayMs, SampleType feedback=0, SampleType lpHz=0, SampleType hpHz=0) noexcept |
| | Processes a single channel block in-place. Safe to call sequentially for different channels.
|
| |
| void | pushDryToWet (AudioBufferView< const SampleType > dry) noexcept |
| | Copies a dry buffer into the internal wet buffer.
|
| |
| void | pushDryToWet (AudioBufferView< SampleType > dry) noexcept |
| | Copies a dry buffer into the internal wet buffer.
|
| |
| void | processWet (SampleType delayMs, SampleType feedback=0, SampleType lpHz=0, SampleType hpHz=0) noexcept |
| | Processes the wet buffer in place with current settings. Processes exactly the samples of the most recent pushDryToWet() call: running the full capacity regardless of the pushed length would advance the delay line past the real stream on short blocks, skewing every subsequent echo's timing.
|
| |
| void | processPingPong (SampleType delayMs, SampleType feedback=0, SampleType lpHz=0, SampleType hpHz=0) noexcept |
| | Processes a true ping-pong delay (L feeds R, R feeds L) on the samples of the most recent pushDryToWet() call.
|
| |
| void | mixWetToDry (AudioBufferView< SampleType > dry, SampleType mix) noexcept |
| | Mixes the processed wet buffer back into the provided dry buffer.
|
| |
| AudioBufferView< SampleType > | getWetView () noexcept |
| | Exposes the internal wet buffer view.
|
| |
| int | getMaxDelaySamples () const noexcept |
| | Returns maximum capacity in samples.
|
| |
| std::vector< uint8_t > | getState () const |
| | Serializes the parameter state (setup/UI threads; allocates).
|
| |
| bool | setState (const uint8_t *data, size_t size) |
| | Restores parameters from a blob (tolerant; rejects foreign ids).
|
| |
| void | advanceWriteIndex (int ch) noexcept |
| | Advances the write index for a specific channel.
|
| |
template<typename SampleType>
class dspark::Delay< SampleType >
Definition at line 54 of file Delay.h.