Gin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Modulation Class Reference

Modulated delay effect for chorus, flanger, and phaser effects. More...

#include <gin_modulation.h>

Public Member Functions

 Modulation (float maxDelay_=30.0f/1000.0f)
 
void setSampleRate (double sr)
 
void reset ()
 
void setParams (float delay_, float rate_, float depth_, float width_, float mix_)
 
void process (juce::AudioSampleBuffer &buffer)
 

Detailed Description

Modulated delay effect for chorus, flanger, and phaser effects.

Modulation uses an LFO to modulate a delay line, creating time-varying delay effects. By adjusting delay time, modulation rate, depth, and stereo width, you can create chorus, flanger, and phaser-like effects.

Key Features:

Parameters:

Effect Types:

Usage:

Modulation chorus(0.03f); // 30ms max delay
chorus.setSampleRate(44100.0);
// Create a chorus effect
chorus.setParams(
0.020f, // 20ms base delay
0.5f, // 0.5 Hz modulation
0.010f, // 10ms depth
0.5f, // 50% stereo width
0.5f // 50% wet/dry mix
);
chorus.process(audioBuffer);
Modulated delay effect for chorus, flanger, and phaser effects.
Definition gin_dsp/dsp/gin_modulation.h:63
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
See also
DelayLine

Constructor & Destructor Documentation

◆ Modulation()

Modulation::Modulation ( float  maxDelay_ = 30.0f / 1000.0f)

Member Function Documentation

◆ setSampleRate()

void Modulation::setSampleRate ( double  sr)

◆ reset()

void Modulation::reset ( )

References DelayLine::clear().

◆ setParams()

void Modulation::setParams ( float  delay_,
float  rate_,
float  depth_,
float  width_,
float  mix_ 
)

◆ process()

void Modulation::process ( juce::AudioSampleBuffer &  buffer)

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