NAP
Public Member Functions | Public Attributes | List of all members
GainNode Class Reference

#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
 
Processoperator= (const Process &)=delete
 
virtual ~Process ()
 
void update ()
 
NodeManagergetNodeManager () 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
SampleBuffergetOutputBuffer (OutputPin &output)
 
- Protected Member Functions inherited from Process
virtual void sampleRateChanged (float sampleRate)
 
virtual void bufferSizeChanged (int bufferSize)
 
bool isRegisteredWithNodeManager () const
 

Description

Node to scale an audio signal

Inheritance diagram for GainNode:
[legend]
Collaboration diagram for GainNode:
[legend]

Constructor & Destructor Documentation

◆ GainNode()

GainNode ( NodeManager manager,
ControllerValue  initValue = 1,
unsigned int  stepCount = 64 
)

Member Function Documentation

◆ getGain()

ControllerValue getGain ( ) const
Returns
: the gain scaling factor

◆ setGain()

void setGain ( ControllerValue  gain,
TimeValue  smoothTime 
)

Sets the gain or scaling factor

Parameters
gainthe new gain value
smoothTimesmoothtime in milliseconds

Member Data Documentation

◆ audioInput

InputPin audioInput = {this}

The input to be scaled

◆ audioOutput

OutputPin audioOutput = {this}

Outputs the scaled signal