#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 |
![]() | |
Node (NodeManager &manager) | |
const std::set< OutputPin * > & | getOutputs () const |
const std::set< InputPinBase * > & | getInputs () const |
![]() | |
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 | |
![]() | |
SampleBuffer & | getOutputBuffer (OutputPin &output) |
![]() | |
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