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

Classes

class  PerlinNoise< T >
 Generates Perlin noise - a type of gradient noise with natural-looking characteristics. More...
 
class  RollingAverage
 Maintains a rolling average of a series of numbers. More...
 
class  TimeProfiler
 A simple RAII-based time profiler for measuring execution duration. More...
 

Functions

bool compareAndReset (bool &flag)
 Checks if a boolean flag is set, and if so, clears it and returns true.
 
float calculateRMS (const float *values, int n)
 Calculates the Root Mean Square (RMS) of an array of values.
 
float calculateMedian (const float *values, int n)
 Calculates the median value of an array of values.
 
template<typename T >
void shuffleArray (juce::Random &r, T &array)
 Randomly shuffles the elements of an array using the Fisher-Yates algorithm.
 
int versionStringToInt (const juce::String &versionString)
 Converts a version string to an integer for comparison purposes.
 
void delayedLambda (std::function< void()> callback, int delayMS)
 Executes a lambda function after a specified delay.
 
template<typename T >
juce::String formatNumber (T v)
 Formats a number as a string with appropriate decimal precision.