ofxPDSP
|
Takes messages from a MessageBuffer and convert them in an optionally smoothed value output. More...
#include <SequencerValueOutput.h>
Public Member Functions | |
SequencerValueOutput (const SequencerValueOutput &other) | |
void | link (MessageBuffer &messageBuffer) override |
connect the SequencerValueOutput to a MessageBuffer. You can also use the >> operator with the same effect. More... | |
void | unLink () override |
disconnect the SequencerValueOutput from the connected MessageBuffer. | |
SequencerBridge & | in_message () |
Sets the standard message input as selected input, and returns this Sequence ready to be linked to a MessageSequencer with the >> operator. You are not patching input and output nodes this way but it works the same. The messages received in the input will be converted to a buffer of value ready to be patched into other Unit . Those values will be also smoothed by a settable slew time. | |
SequencerBridge & | in_slew () |
Sets an alternative message input as selected input, and returns this Sequence ready to be linked to a MessageSequencer with the >> operator. The value received from the message buffer will be used as a multiplier for set the slew time: You are not patching input and output nodes this way but it works the same. | |
Patchable & | out_signal () |
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default output. This is the slewed output. | |
float | meter_output () const |
returns the actual output value. Thread-safe. | |
void | enableSmoothing (float timeMs) |
enables the smoothing the outputted values More... | |
void | disableSmoothing () |
disable the smoothing the outputted values. smoothing is disabled by default | |
void | resetSmoothing () |
don't smooth the next value received, like it was the first message. | |
Public Member Functions inherited from pdsp::UsesSlew | |
void | setSlewTime (float slewTimeMs, SlewMode_t mode=Time) |
sets the slew time in milliseconds More... | |
void | deactivateSlew () |
sets the slew time to 0.0f | |
void | setSlewRateModeReference (float valueReference) |
sets the reference value for Rate mode slewing. More... | |
Takes messages from a MessageBuffer and convert them in an optionally smoothed value output.
Generate smoothed values buffers from a MessageBuffer. You can set the slew time and also control it by patching a MessageBuffer to in_slew_control(). Patch this sequencer to pitch and other control inputs, while using GateSequencer to trigger envelopes. SequencerValueOutput has no inputs, but you can use the >> operator to connect a MessageBuffer to it.
void pdsp::SequencerValueOutput::enableSmoothing | ( | float | timeMs | ) |
enables the smoothing the outputted values
[in] | timeMs | how many milliseconds will take to reach the setted value |
|
override |
connect the SequencerValueOutput to a MessageBuffer. You can also use the >> operator with the same effect.
[in] | messageBuffer | MessageBuffer to connect |