6 #ifndef OFXPDSP_PDSPCONTROLVALUE_H_INCLUDED 7 #define OFXPDSP_PDSPCONTROLVALUE_H_INCLUDED 9 #include "../DSP/pdspCore.h" 10 #include "../DSP/helpers/UsesSlew.h" 38 void set(
float value){ this->value.store( value );}
43 float get()
const {
return value.load(); }
65 void prepareUnit(
int expectedBufferSize,
double sampleRate )
override;
66 void releaseResources ()
override ;
67 void process (
int bufferSize) noexcept
override;
69 atomic<float> lastValue;
76 #endif //OFXPDSP_PDSPCONTROLVALUE_H_INCLUDED void disableSmoothing()
disable the smoothing of the setted values. smoothing is disabled by default
Definition: ValueControl.cpp:40
float meter_output() const
returns the actual output value. Thread-safe.
Definition: ValueControl.h:59
Slewing behavior.
Definition: UsesSlew.h:20
Definition: ValueControl.h:25
void enableSmoothing(float timeMs)
enables the smoothing of the setted values
Definition: ValueControl.cpp:35
Abstract class for implementing Units.
Definition: BasicNodes.h:223
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