#include <audio/node/controlnode.h>
Public Member Functions | |
| ControlNode (NodeManager &manager) | |
| void | setValue (ControllerValue value) |
| ControllerValue | getValue () const |
| ControllerValue | getRawValue () const |
| void | ramp (ControllerValue destination, TimeValue time, RampMode mode=RampMode::Linear) |
| bool | isRamping () const |
| void | stop () |
| void | setTranslator (SafePtr< Translator< ControllerValue >> &translator) |
| bool | hasTranslator () const |
Public Member Functions inherited from Node | |
| Node (NodeManager &manager) | |
| const std::set< OutputPin * > & | getOutputs () const |
| const std::set< InputPinBase * > & | getInputs () const |
Public Member Functions inherited from Process | |
| Process (NodeManager &nodeManager) | |
| Process (ParentProcess &parent) | |
| Process (const Process &)=delete | |
| Process & | operator= (const Process &)=delete |
| virtual | ~Process () |
| void | update () |
| NodeManager & | getNodeManager () const |
| int | getBufferSize () const |
| float | getSampleRate () const |
| DiscreteTimeValue | getSampleTime () const |
Public Attributes | |
| OutputPin | output = {this} |
| nap::Signal< ControlNode & > | rampFinishedSignal |
Additional Inherited Members | |
Protected Member Functions inherited from Node | |
| SampleBuffer & | getOutputBuffer (OutputPin &output) |
Protected Member Functions inherited from Process | |
| virtual void | sampleRateChanged (float sampleRate) |
| virtual void | bufferSizeChanged (int bufferSize) |
| bool | isRegisteredWithNodeManager () const |
Used to generate a control signal by ramping between different values. Ramps can be either linear or exponential. Optionally a lookup table can be used to shape the output signal.
| ControlNode | ( | NodeManager & | manager | ) |
| manager | NodeManager this node runs on |
| ControllerValue getRawValue | ( | ) | const |
| ControllerValue getValue | ( | ) | const |
| bool hasTranslator | ( | ) | const |
| bool isRamping | ( | ) | const |
| void ramp | ( | ControllerValue | destination, |
| TimeValue | time, | ||
| RampMode | mode = RampMode::Linear |
||
| ) |
Starts a ramp
| destination | the destination value of the ramp |
| time | in milliseconds to reach the destination |
| mode | choose between linear or exponential curvature |
| void setTranslator | ( | SafePtr< Translator< ControllerValue >> & | translator | ) |
Assign a translator to this node to shape the output value.
| void setValue | ( | ControllerValue | value | ) |
Order the node's output to start ramping to the specified value using the current ramp time.
| void stop | ( | ) |
Stops the current ramp (if any) and stays on the current value.
| OutputPin output = {this} |
The output signal pin
| nap::Signal<ControlNode&> rampFinishedSignal |
Signal that is emitted when the destination of a ramp has been reached.