DaisySP
|
#include <samplehold.h>
Public Types | |
enum | Mode { MODE_SAMPLE_HOLD , MODE_TRACK_HOLD , MODE_LAST } |
Public Member Functions | |
float | Process (bool trigger, float input, Mode mode=MODE_SAMPLE_HOLD) |
Dual track and hold / Sample and hold module.
Ported from soundpipe by Ben Sergentanis, June 2020.
|
inline |
Process the next sample. Both sample and track and hold are run in parallel
trigger | Trigger the sample/track and hold |
input | Signal to be sampled/tracked and held |
mode | Whether to output the tracked or sampled values. |