Gin
|
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 > | |
T | getMidiNoteInHertz (const T noteNumber, const T frequencyOfA=(T) 440.0) |
template<class T > | |
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 > | |
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 |
|
strong |
juce::Value findValue | ( | juce::ValueTree & | state, |
juce::Identifier | name, | ||
juce::var | value | ||
) |
T getMidiNoteInHertz | ( | const T | noteNumber, |
const T | frequencyOfA = (T)440.0 |
||
) |
Referenced by OscState::incPhase(), and BandLimitedLookupTable::reset().
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.
ScratchBuffer monoBuffer | ( | juce::AudioSampleBuffer & | input | ) |
Get a buffer but mono.
T lerp | ( | T | a, |
T | b, | ||
T | t | ||
) |
Computes the linear interpolation between a and b, if the parameter t is inside [0, 1].
int sign | ( | T | x | ) |
Sign +1 or -1 of number.
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 | ||
) |
|
constexpr |