Gin
Public Member Functions | Protected Attributes | List of all members
ModVoice Class Referenceabstract

Make your synth voice inherit from this if it supports modulation. More...

Public Member Functions

 ModVoice ()=default
 
virtual ~ModVoice ()=default
 
float getValue (gin::Parameter *p)
 
float getValueUnsmoothed (gin::Parameter *p)
 
void finishBlock (int numSamples)
 
void snapParams ()
 
void startVoice ()
 
void stopVoice ()
 
int getAge ()
 
virtual bool isVoiceActive ()=0
 

Protected Attributes

bool disableSmoothing = false
 

Detailed Description

Make your synth voice inherit from this if it supports modulation.

Constructor & Destructor Documentation

◆ ModVoice()

ModVoice::ModVoice ( )
default

◆ ~ModVoice()

virtual ModVoice::~ModVoice ( )
virtualdefault

Member Function Documentation

◆ finishBlock()

void ModVoice::finishBlock ( int  numSamples)

◆ snapParams()

void ModVoice::snapParams ( )

◆ startVoice()

void ModVoice::startVoice ( )

◆ stopVoice()

void ModVoice::stopVoice ( )

◆ getAge()

int ModVoice::getAge ( )

◆ isVoiceActive()

virtual bool ModVoice::isVoiceActive ( )
pure virtual

Member Data Documentation

◆ disableSmoothing

bool ModVoice::disableSmoothing = false
protected

The documentation for this class was generated from the following file: