Gin
Enumerations | Functions | Variables

Enumerations

enum class  Wave {
  silence = 0 , sine = 1 , triangle = 2 , sawUp = 3 ,
  sawDown = 4 , pulse = 5 , square = 6 , whiteNoise = 7 ,
  pinkNoise = 8
}
 

Functions

juce::Value findValue (juce::ValueTree &state, juce::Identifier name, juce::var value)
 
template<class T >
getMidiNoteInHertz (const T noteNumber, const T frequencyOfA=(T) 440.0)
 
template<class T >
getMidiNoteFromHertz (const T freq, const T frequencyOfA=(T) 440.0)
 
float velocityToGain (float velocity, float sensitivity=1.0f)
 
void applyGain (juce::AudioSampleBuffer &buffer, juce::LinearSmoothedValue< float > &gain)
 
void applyGain (juce::AudioSampleBuffer &buffer, int channel, juce::LinearSmoothedValue< float > &gain)
 
void clip (juce::AudioSampleBuffer &buffer, float low=-1.0f, float high=1.0f)
 
juce::String getMidiMessageType (const juce::MidiMessage &msg)
 
juce::AudioSampleBuffer sliceBuffer (juce::AudioSampleBuffer &input, int start, int length)
 Get a section of an audio buffer. More...
 
ScratchBuffer monoBuffer (juce::AudioSampleBuffer &input)
 Get a buffer but mono. More...
 
template<class T >
lerp (T a, T b, T t)
 Computes the linear interpolation between a and b, if the parameter t is inside [0, 1]. More...
 
template<class T >
int sign (T x)
 Sign +1 or -1 of number. More...
 
float sine (float phase, float unused1=0, float unused2=0)
 
float triangle (float phase, float freq, float sampleRate)
 
float sawUp (float phase, float freq, float sampleRate)
 
float sawDown (float phase, float freq, float sampleRate)
 
float pulse (float phase, float pw, float freq, float sampleRate)
 
float squareWave (float phase, float freq, float sampleRate)
 
bool loadWavetables (juce::OwnedArray< BandLimitedLookupTable > &bllt, double playbackSampleRate, juce::AudioSampleBuffer &buffer, double fileSampleRate, int tableSize)
 

Variables

constexpr float Q = 0.70710678118655f
 

Detailed Description

Enumeration Type Documentation

◆ Wave

enum Wave
strong
Enumerator
silence 
sine 
triangle 
sawUp 
sawDown 
pulse 
square 
whiteNoise 
pinkNoise 

Function Documentation

◆ findValue()

juce::Value findValue ( juce::ValueTree &  state,
juce::Identifier  name,
juce::var  value 
)

◆ getMidiNoteInHertz()

template<class T >
T getMidiNoteInHertz ( const T  noteNumber,
const T  frequencyOfA = (T)440.0 
)

◆ getMidiNoteFromHertz()

template<class T >
T getMidiNoteFromHertz ( const T  freq,
const T  frequencyOfA = (T)440.0 
)

◆ velocityToGain()

float velocityToGain ( float  velocity,
float  sensitivity = 1.0f 
)

◆ applyGain() [1/2]

void applyGain ( juce::AudioSampleBuffer &  buffer,
juce::LinearSmoothedValue< float > &  gain 
)

◆ applyGain() [2/2]

void applyGain ( juce::AudioSampleBuffer &  buffer,
int  channel,
juce::LinearSmoothedValue< float > &  gain 
)

◆ clip()

void clip ( juce::AudioSampleBuffer &  buffer,
float  low = -1.0f,
float  high = 1.0f 
)

◆ getMidiMessageType()

juce::String getMidiMessageType ( const juce::MidiMessage &  msg)

◆ sliceBuffer()

juce::AudioSampleBuffer sliceBuffer ( juce::AudioSampleBuffer &  input,
int  start,
int  length 
)

Get a section of an audio buffer.

◆ monoBuffer()

ScratchBuffer monoBuffer ( juce::AudioSampleBuffer &  input)

Get a buffer but mono.

◆ lerp()

template<class T >
T lerp ( a,
b,
t 
)

Computes the linear interpolation between a and b, if the parameter t is inside [0, 1].

◆ sign()

template<class T >
int sign ( x)

Sign +1 or -1 of number.

◆ sine()

float sine ( float  phase,
float  unused1 = 0,
float  unused2 = 0 
)

◆ triangle()

float triangle ( float  phase,
float  freq,
float  sampleRate 
)

◆ sawUp()

float sawUp ( float  phase,
float  freq,
float  sampleRate 
)

◆ sawDown()

float sawDown ( float  phase,
float  freq,
float  sampleRate 
)

◆ pulse()

float pulse ( float  phase,
float  pw,
float  freq,
float  sampleRate 
)

◆ squareWave()

float squareWave ( float  phase,
float  freq,
float  sampleRate 
)

◆ loadWavetables()

bool loadWavetables ( juce::OwnedArray< BandLimitedLookupTable > &  bllt,
double  playbackSampleRate,
juce::AudioSampleBuffer &  buffer,
double  fileSampleRate,
int  tableSize 
)

Variable Documentation

◆ Q

constexpr float Q = 0.70710678118655f
constexpr