Gin
Classes | Public Types | Public Member Functions | List of all members
LFO Class Reference

LFO with many shapes. More...

Classes

struct  Parameters
 

Public Types

enum class  WaveShape : int {
  none , sine , triangle , sawUp ,
  sawDown , square , squarePos , sampleAndHold ,
  noise , stepUp3 , stepUp4 , stepup8 ,
  stepDown3 , stepDown4 , stepDown8 , pyramid3 ,
  pyramid5 , pyramid9
}
 

Public Member Functions

 LFO ()
 
void setSampleRate (double sr)
 
void setParameters (Parameters p)
 
void reset ()
 
void noteOn (float phase_=-1.0f)
 
float process (int numSamples)
 
float getOutput ()
 
float getOutputUnclamped ()
 
float getCurrentPhase ()
 

Detailed Description

LFO with many shapes.

Member Enumeration Documentation

◆ WaveShape

enum LFO::WaveShape : int
strong
Enumerator
none 
sine 
triangle 
sawUp 
sawDown 
square 
squarePos 
sampleAndHold 
noise 
stepUp3 
stepUp4 
stepup8 
stepDown3 
stepDown4 
stepDown8 
pyramid3 
pyramid5 
pyramid9 

Constructor & Destructor Documentation

◆ LFO()

LFO::LFO ( )

Member Function Documentation

◆ setSampleRate()

void LFO::setSampleRate ( double  sr)

◆ setParameters()

void LFO::setParameters ( Parameters  p)

◆ reset()

void LFO::reset ( )

◆ noteOn()

void LFO::noteOn ( float  phase_ = -1.0f)

◆ process()

float LFO::process ( int  numSamples)

◆ getOutput()

float LFO::getOutput ( )

◆ getOutputUnclamped()

float LFO::getOutputUnclamped ( )

◆ getCurrentPhase()

float LFO::getCurrentPhase ( )

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