Gin
Loading...
Searching...
No Matches
Classes | Functions
gin_util.h File Reference

Classes

class  PerlinNoise< T >
 Perlin noise - realistic looking noise Based on reference implementation of Perlin Noise by Ken Perlin http://mrl.nyu.edu/~perlin/paper445.pdf. More...
 
class  RollingAverage
 Keeps a rolling average of a series of numbers. More...
 
class  TimeProfiler
 Time Profiler – get a quick idea how long something takes. More...
 

Functions

bool compareAndReset (bool &flag)
 Check a bool, it's set, clear and return true.
 
float calculateRMS (const float *values, int n)
 Get RMS.
 
float calculateMedian (const float *values, int n)
 Get average.
 
template<typename T >
void shuffleArray (juce::Random &r, T &array)
 Fisher-Yates Shuffle for juce::Array.
 
int versionStringToInt (const juce::String &versionString)
 
void delayedLambda (std::function< void()> callback, int delayMS)
 Do a lambda, a bit later.
 
template<typename T >
juce::String formatNumber (T v)