#include <delay.h>
A single-channel delay-line containing its own buffer.
Inherits signalsmith::delay::Reader< Sample, InterpolatorLinear >.
Static Attributes | |
| static constexpr Sample | latency = Super::latency |
Methods | |
| Delay (int capacity=0) | |
| Delay (const Interpolator< Sample > &interp, int capacity=0) | |
| Pass in a configured interpolator. | |
| void | reset (Sample value=Sample()) |
| void | resize (int minCapacity, Sample value=Sample()) |
| Sample | read (Sample delaySamples) const |
Read a sample from delaySamples >= 0 in the past. | |
| Delay & | write (Sample value) |
Writes a sample. Returns the same object, so that you can say delay.write(v).read(delay). | |
|
inline |
Pass in a configured interpolator.
|
inline |
Read a sample from delaySamples >= 0 in the past.
The interpolator may add its own latency on top of this (see Delay::latency). The default interpolation (linear) has 0 latency.
|
inline |
Writes a sample. Returns the same object, so that you can say delay.write(v).read(delay).