Skip to content

Class daisysp::SampleHold

ClassList > daisysp > SampleHold

More...

  • #include <samplehold.h>

Public Types

Type Name
enum Mode

Public Functions

Type Name
float Process (bool trigger, float input, Mode mode=MODE_SAMPLE_HOLD)
SampleHold ()
~SampleHold ()

Detailed Description

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

Author:

Paul Batchelor

Date:

2015

Public Types Documentation

enum Mode

enum daisysp::SampleHold::Mode {
    MODE_SAMPLE_HOLD,
    MODE_TRACK_HOLD,
    MODE_LAST
};

Public Functions Documentation

function Process

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

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

Parameters:

  • trigger Trigger the sample/track and hold
  • input Signal to be sampled/tracked and held
  • mode Whether to output the tracked or sampled values.

function SampleHold

inline daisysp::SampleHold::SampleHold () 

function ~SampleHold

inline daisysp::SampleHold::~SampleHold () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Utility/samplehold.h