Delay line with interpolation.
More...
#include <delay_interp.h>
|
| | DelayInterp (const DelayOptions &config={}) |
| | Constructs a delay line with interpolation.
|
| |
| void | Clear () override |
| | Clears all internal states of the delay line.
|
| |
|
uint32_t | GetMaximumDelay () const |
| | Gets the maximum delay-line length.
|
| |
| void | SetMaximumDelay (uint32_t delay) |
| | Sets the maximum delay for the delay line.
|
| |
| void | SetDelay (float delay) |
| | Sets the delay for the delay line.
|
| |
|
float | GetDelay () const |
| | Returns the current delay in samples.
|
| |
| float | Tick (float input) |
| | Processes a single sample through the delay line.
|
| |
| void | Process (const AudioBuffer &input, AudioBuffer &output) noexcept override |
| | Processes a block of input samples.
|
| |
| bool | AddNextInputs (std::span< const float > input) |
| | Adds the next input samples to the delay line.
|
| |
| void | GetNextOutputs (std::span< float > output) |
| | Gets the next output samples from the delay line.
|
| |
| uint32_t | InputChannelCount () const override |
| | Returns the number of input channels this processor expects.
|
| |
| uint32_t | OutputChannelCount () const override |
| | Returns the number of output channels this processor produces.
|
| |
| std::unique_ptr< AudioProcessor > | Clone () const override |
| | Creates a copy of the audio processor.
|
| |
Delay line with interpolation.
◆ DelayInterp()
| sfFDN::DelayInterp::DelayInterp |
( |
const DelayOptions & | config = {} | ) |
|
Constructs a delay line with interpolation.
- Parameters
-
| config | The configuration for the delay line. |
◆ AddNextInputs()
| bool sfFDN::DelayInterp::AddNextInputs |
( |
std::span< const float > | input | ) |
|
Adds the next input samples to the delay line.
- Parameters
-
| input | The input samples to add. |
- Returns
- True if the samples were added successfully, false otherwise.
- Note
- A return value of false indicates that there was not enough space in the internal buffer to write the input samples. In this case, the internal state remains unchanged. When processing audio in blocks, the delay line maximum delay should be set to a value that is larger than the block size.
◆ Clear()
| void sfFDN::DelayInterp::Clear |
( |
| ) |
|
|
overridevirtual |
◆ Clone()
Creates a copy of the audio processor.
- Returns
- A unique pointer to the cloned audio processor.
Implements sfFDN::AudioProcessor.
◆ GetNextOutputs()
| void sfFDN::DelayInterp::GetNextOutputs |
( |
std::span< float > | output | ) |
|
Gets the next output samples from the delay line.
- Parameters
-
| output | The output samples to fill. |
◆ InputChannelCount()
| uint32_t sfFDN::DelayInterp::InputChannelCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OutputChannelCount()
| uint32_t sfFDN::DelayInterp::OutputChannelCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Process()
Processes a block of input samples.
- Parameters
-
| input | The input audio buffer. |
| output | The output audio buffer. |
Implements sfFDN::AudioProcessor.
◆ SetDelay()
| void sfFDN::DelayInterp::SetDelay |
( |
float | delay | ) |
|
Sets the delay for the delay line.
- Parameters
-
| delay | The delay in samples. |
◆ SetMaximumDelay()
| void sfFDN::DelayInterp::SetMaximumDelay |
( |
uint32_t | delay | ) |
|
Sets the maximum delay for the delay line.
- Parameters
-
| delay | The maximum delay in samples. |
◆ Tick()
| float sfFDN::DelayInterp::Tick |
( |
float | input | ) |
|
Processes a single sample through the delay line.
- Parameters
-
| input | The input sample to process. |
- Returns
- The processed output sample.
The documentation for this class was generated from the following file: