Gin
Functions
utilities

Functions

template<class T >
easeLinear (T p)
 
template<class T >
easeQuadraticIn (T p)
 
template<class T >
easeQuadraticOut (T p)
 
template<class T >
easeQuadraticInOut (T p)
 
template<class T >
easeCubicIn (T p)
 
template<class T >
easeCubicOut (T p)
 
template<class T >
easeCubicInOut (T p)
 
template<class T >
easeQuarticIn (T p)
 
template<class T >
easeQuarticOut (T p)
 
template<class T >
easeQuarticInOut (T p)
 
template<class T >
easeQuinticIn (T p)
 
template<class T >
easeQuinticOut (T p)
 
template<class T >
easeQuinticInOut (T p)
 
template<class T >
easeSineIn (T p)
 
template<class T >
easeSineOut (T p)
 
template<class T >
easeSineInOut (T p)
 
template<class T >
easeCircularIn (T p)
 
template<class T >
easeCircularOut (T p)
 
template<class T >
easeCircularInOut (T p)
 
template<class T >
easeExponentialIn (T p)
 
template<class T >
easeExponentialOut (T p)
 
template<class T >
easeExponentialInOut (T p)
 
template<class T >
easeElasticIn (T p)
 
template<class T >
easeElasticOut (T p)
 
template<class T >
easeElasticInOut (T p)
 
template<class T >
easeBackIn (T p)
 
template<class T >
easeBackOut (T p)
 
template<class T >
easeBackInOut (T p)
 
template<class T >
easeBounceOut (T p)
 
template<class T >
easeBounceIn (T p)
 
template<class T >
easeBounceInOut (T p)
 
bool overwriteWithText (const juce::File &f, const juce::String &text, bool asUnicode=false, bool writeUnicodeHeaderBytes=false, const char *lineEndings=nullptr)
 
bool overwriteWithData (const juce::File &f, const juce::MemoryBlock &data)
 
bool overwriteWithData (const juce::File &f, const void *data, size_t size)
 
juce::var parsePlist (const juce::File &f)
 
juce::var parsePlist (const juce::String &s)
 
juce::var parsePlist (const juce::XmlElement &f)
 
int getWavetableSize (const juce::MemoryBlock &m)
 
int getWavetableSize (const juce::File &f)
 
void callInBackground (std::function< void(void)> function)
 
template<typename T >
void multiThreadedFor (T start, T end, T interval, juce::ThreadPool *threadPool, std::function< void(T idx)> callback)
 
bool compareAndReset (bool &flag)
 Check a bool, it's set, clear and return true. More...
 
float calculateRMS (const float *values, int n)
 Get RMS. More...
 
float calculateMedian (const float *values, int n)
 Get average. More...
 
template<typename T >
void shuffleArray (juce::Random &r, T &array)
 Fisher-Yates Shuffle for juce::Array. More...
 
int versionStringToInt (const juce::String &versionString)
 
void delayedLambda (std::function< void()> callback, int delayMS)
 Do a lambda, a bit later. More...
 
template<typename T >
juce::String formatNumber (T v)
 
juce::String valueTreeToJSON (const juce::ValueTree &v)
 
juce::ValueTree valueTreeFromJSON (const juce::String &jsonText)
 

Detailed Description

Function Documentation

◆ easeLinear()

template<class T >
T easeLinear ( p)

◆ easeQuadraticIn()

template<class T >
T easeQuadraticIn ( p)

Referenced by ModMatrix::shape().

◆ easeQuadraticOut()

template<class T >
T easeQuadraticOut ( p)

Referenced by ModMatrix::shape().

◆ easeQuadraticInOut()

template<class T >
T easeQuadraticInOut ( p)

◆ easeCubicIn()

template<class T >
T easeCubicIn ( p)

◆ easeCubicOut()

template<class T >
T easeCubicOut ( p)

◆ easeCubicInOut()

template<class T >
T easeCubicInOut ( p)

◆ easeQuarticIn()

template<class T >
T easeQuarticIn ( p)

◆ easeQuarticOut()

template<class T >
T easeQuarticOut ( p)

◆ easeQuarticInOut()

template<class T >
T easeQuarticInOut ( p)

◆ easeQuinticIn()

template<class T >
T easeQuinticIn ( p)

◆ easeQuinticOut()

template<class T >
T easeQuinticOut ( p)

◆ easeQuinticInOut()

template<class T >
T easeQuinticInOut ( p)

◆ easeSineIn()

template<class T >
T easeSineIn ( p)

Referenced by ModMatrix::shape().

◆ easeSineOut()

template<class T >
T easeSineOut ( p)

Referenced by ModMatrix::shape().

◆ easeSineInOut()

template<class T >
T easeSineInOut ( p)

Referenced by ModMatrix::shape().

◆ easeCircularIn()

template<class T >
T easeCircularIn ( p)

◆ easeCircularOut()

template<class T >
T easeCircularOut ( p)

◆ easeCircularInOut()

template<class T >
T easeCircularInOut ( p)

◆ easeExponentialIn()

template<class T >
T easeExponentialIn ( p)

Referenced by ModMatrix::shape().

◆ easeExponentialOut()

template<class T >
T easeExponentialOut ( p)

Referenced by ModMatrix::shape().

◆ easeExponentialInOut()

template<class T >
T easeExponentialInOut ( p)

Referenced by ModMatrix::shape().

◆ easeElasticIn()

template<class T >
T easeElasticIn ( p)

◆ easeElasticOut()

template<class T >
T easeElasticOut ( p)

◆ easeElasticInOut()

template<class T >
T easeElasticInOut ( p)

◆ easeBackIn()

template<class T >
T easeBackIn ( p)

◆ easeBackOut()

template<class T >
T easeBackOut ( p)

◆ easeBackInOut()

template<class T >
T easeBackInOut ( p)

◆ easeBounceOut()

template<class T >
T easeBounceOut ( p)

Referenced by easeBounceIn(), and easeBounceInOut().

◆ easeBounceIn()

template<class T >
T easeBounceIn ( p)

References easeBounceOut().

Referenced by easeBounceInOut().

◆ easeBounceInOut()

template<class T >
T easeBounceInOut ( p)

References easeBounceIn(), and easeBounceOut().

◆ overwriteWithText()

bool overwriteWithText ( const juce::File &  f,
const juce::String &  text,
bool  asUnicode = false,
bool  writeUnicodeHeaderBytes = false,
const char *  lineEndings = nullptr 
)

◆ overwriteWithData() [1/2]

bool overwriteWithData ( const juce::File &  f,
const juce::MemoryBlock &  data 
)

◆ overwriteWithData() [2/2]

bool overwriteWithData ( const juce::File &  f,
const void *  data,
size_t  size 
)

◆ parsePlist() [1/3]

juce::var parsePlist ( const juce::File &  f)

◆ parsePlist() [2/3]

juce::var parsePlist ( const juce::String &  s)

◆ parsePlist() [3/3]

juce::var parsePlist ( const juce::XmlElement &  f)

◆ getWavetableSize() [1/2]

int getWavetableSize ( const juce::MemoryBlock &  m)

Referenced by getWavetableSize().

◆ getWavetableSize() [2/2]

int getWavetableSize ( const juce::File &  f)

References getWavetableSize().

◆ callInBackground()

void callInBackground ( std::function< void(void)>  function)

◆ multiThreadedFor()

template<typename T >
void multiThreadedFor ( start,
end,
interval,
juce::ThreadPool *  threadPool,
std::function< void(T idx)>  callback 
)

◆ compareAndReset()

bool compareAndReset ( bool &  flag)

Check a bool, it's set, clear and return true.

◆ calculateRMS()

float calculateRMS ( const float *  values,
int  n 
)

Get RMS.

◆ calculateMedian()

float calculateMedian ( const float *  values,
int  n 
)

Get average.

◆ shuffleArray()

template<typename T >
void shuffleArray ( juce::Random &  r,
T &  array 
)

Fisher-Yates Shuffle for juce::Array.

Referenced by PerlinNoise< T >::PerlinNoise().

◆ versionStringToInt()

int versionStringToInt ( const juce::String &  versionString)

◆ delayedLambda()

void delayedLambda ( std::function< void()>  callback,
int  delayMS 
)

Do a lambda, a bit later.

◆ formatNumber()

template<typename T >
juce::String formatNumber ( v)

◆ valueTreeToJSON()

juce::String valueTreeToJSON ( const juce::ValueTree &  v)

◆ valueTreeFromJSON()

juce::ValueTree valueTreeFromJSON ( const juce::String &  jsonText)