#include <audio/node/gainnode.h>
Public Member Functions | |
| GainNode (NodeManager &manager, ControllerValue initValue=1, unsigned int stepCount=64) | |
| void | setGain (ControllerValue gain, TimeValue smoothTime) |
| ControllerValue | getGain () 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 | |
| InputPin | audioInput = {this} |
| OutputPin | audioOutput = {this} |
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 |
Node to scale an audio signal
| GainNode | ( | NodeManager & | manager, |
| ControllerValue | initValue = 1, |
||
| unsigned int | stepCount = 64 |
||
| ) |
| ControllerValue getGain | ( | ) | const |
| void setGain | ( | ControllerValue | gain, |
| TimeValue | smoothTime | ||
| ) |
Sets the gain or scaling factor
| gain | the new gain value |
| smoothTime | smoothtime in milliseconds |
| InputPin audioInput = {this} |
The input to be scaled
| OutputPin audioOutput = {this} |
Outputs the scaled signal