Gin
Classes | Namespaces | Functions | Variables
gin_audioutil.h File Reference

Classes

class  GainProcessor
 
class  WetDryMix
 Mix between wet and dry with a nice curve. More...
 

Namespaces

 Distortion
 Distortion.
 

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 Distortion::saturate (float input, float drive, float lowclip, float highclip)
 
void Distortion::processBlock (juce::AudioSampleBuffer &buffer, float drive, float lowclip, float highclip)
 

Variables

constexpr float Q = 0.70710678118655f