Gin
Public Member Functions | Protected Attributes | List of all members
GateEffect Class Reference

Gate effect. More...

Public Member Functions

 GateEffect ()
 
void setSampleRate (double sr)
 
void reset ()
 
void process (juce::AudioSampleBuffer &buffer, int noteOnSample, int noteOffSample)
 
void setLength (int n)
 
void setFrequency (float f)
 
void setStep (int step, bool l, bool r)
 
void setAttack (float seconds)
 
void setRelease (float seconds)
 
void setMix (float m)
 

Protected Attributes

double sampleRate = 44100.0
 
AnalogADSR adsrL
 
AnalogADSR adsrR
 
juce::Array< bool > stepsL
 
juce::Array< bool > stepsR
 
float frequency = 0.0f
 
float phase = 0.0f
 
float mix = 1.0f
 
bool triggered = false
 
bool lastLOn = false
 
bool lastROn = false
 

Detailed Description

Gate effect.

Constructor & Destructor Documentation

◆ GateEffect()

GateEffect::GateEffect ( )

Member Function Documentation

◆ setSampleRate()

void GateEffect::setSampleRate ( double  sr)

◆ reset()

void GateEffect::reset ( )

◆ process()

void GateEffect::process ( juce::AudioSampleBuffer &  buffer,
int  noteOnSample,
int  noteOffSample 
)

◆ setLength()

void GateEffect::setLength ( int  n)

References stepsL, and stepsR.

◆ setFrequency()

void GateEffect::setFrequency ( float  f)

References frequency.

◆ setStep()

void GateEffect::setStep ( int  step,
bool  l,
bool  r 
)

References stepsL, and stepsR.

◆ setAttack()

void GateEffect::setAttack ( float  seconds)

References adsrL, adsrR, and AnalogADSR::setAttack().

◆ setRelease()

void GateEffect::setRelease ( float  seconds)

◆ setMix()

void GateEffect::setMix ( float  m)

References mix.

Member Data Documentation

◆ sampleRate

double GateEffect::sampleRate = 44100.0
protected

Referenced by process(), and setSampleRate().

◆ adsrL

AnalogADSR GateEffect::adsrL
protected

◆ adsrR

AnalogADSR GateEffect::adsrR
protected

◆ stepsL

juce::Array<bool> GateEffect::stepsL
protected

Referenced by process(), setLength(), and setStep().

◆ stepsR

juce::Array<bool> GateEffect::stepsR
protected

Referenced by process(), setLength(), and setStep().

◆ frequency

float GateEffect::frequency = 0.0f
protected

Referenced by process(), and setFrequency().

◆ phase

float GateEffect::phase = 0.0f
protected

Referenced by process(), and reset().

◆ mix

float GateEffect::mix = 1.0f
protected

Referenced by process(), and setMix().

◆ triggered

bool GateEffect::triggered = false
protected

Referenced by process(), and reset().

◆ lastLOn

bool GateEffect::lastLOn = false
protected

Referenced by process(), and reset().

◆ lastROn

bool GateEffect::lastROn = false
protected

Referenced by process(), and reset().


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