7 #ifndef PDSP_RANDOM_TRIGGEREDRANDOM_H_INCLUDED 8 #define PDSP_RANDOM_TRIGGEREDRANDOM_H_INCLUDED 11 #include "../pdspCore.h" 41 void prepareUnit(
int expectedBufferSize,
double sampleRate)
override;
42 void releaseResources ()
override;
43 void process (
int bufferSize) noexcept override ;
45 template<
bool smoothed>
46 void process_audio (
int bufferSize) noexcept ;
53 std::atomic<float> meter;
59 #endif // PDSP_RANDOM_TRIGGEREDRANDOM_H_INCLUDED Random values clocked by an external trigger.
Definition: TriggeredRandom.h:20
Patchable & out_signal()
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default outpu...
Definition: TriggeredRandom.cpp:22
Abstract class for implementing Units.
Definition: BasicNodes.h:223
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
Patchable & in_trig()
Sets "trig" as selected input and returns this Unit ready to be patched. This is the default input...
Definition: TriggeredRandom.cpp:18
float meter_output() const
returns the last triggered value.
Definition: TriggeredRandom.cpp:26
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