DaisySP
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
daisysp::SampleHold Class Reference

#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)
 

Detailed Description

Dual track and hold / Sample and hold module.
Ported from soundpipe by Ben Sergentanis, June 2020.

Author
Paul Batchelor
Date
2015

Member Function Documentation

◆ Process()

float daisysp::SampleHold::Process ( bool trigger,
float input,
Mode mode = MODE_SAMPLE_HOLD )
inline

Process the next sample. Both sample and track and hold are run in parallel

Parameters
triggerTrigger the sample/track and hold
inputSignal to be sampled/tracked and held
modeWhether to output the tracked or sampled values.

The documentation for this class was generated from the following file: