7 #ifndef PDSP_SIGNAL_SAMPLEHOLD_H_INCLUDED 8 #define PDSP_SIGNAL_SAMPLEHOLD_H_INCLUDED 10 #include "../pdspCore.h" 48 void prepareUnit(
int expectedBufferSize,
double sampleRate )
override;
49 void releaseResources ()
override;
50 void process (
int bufferSize) noexcept override ;
59 std::atomic<float> meter;
65 #endif // PDSP_SIGNAL_SAMPLEHOLD_H_INCLUDED Patchable & in_signal()
Sets "signal" as selected input and returns this Unit ready to be patched. This is the default input...
Definition: SampleAndHold.cpp:25
Patchable & out_signal()
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default outpu...
Definition: SampleAndHold.cpp:29
float meter_output() const
returns the last sampled value. This method is thread-safe.
Definition: SampleAndHold.cpp:17
Abstract class for implementing Units.
Definition: BasicNodes.h:223
Patchable & in_trig()
Sets "trig" as selected input and returns this Unit ready to be patched. On a trigger on value the si...
Definition: SampleAndHold.cpp:21
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
Output of a Unit, contains a buffer of rendered floats and has a variable state flag.
Definition: BasicNodes.h:354
Sample & Hold unit.
Definition: SampleAndHold.h:21