Calculates the balance. More...
Static Public Member Functions | |
static String | getBalanceAsString (int balanceValue) |
Returns a string version of the pan value. More... | |
static float | getGainFactorForBalance (float balanceValue, bool calculateLeftChannel) |
Converts a balance value to the gain factor for the supplied channel using an equal power formula. More... | |
static void | processBuffer (AudioSampleBuffer &stereoBuffer, float *panValues, int startSample, int numSamples) |
Processes a stereo buffer with an array of balance values (from 0...1) - typically the output of a modulation chain. More... | |
Calculates the balance.
|
static |
Returns a string version of the pan value.
|
static |
Converts a balance value to the gain factor for the supplied channel using an equal power formula.
Input is -100.0 ... 100.0
|
static |
Processes a stereo buffer with an array of balance values (from 0...1) - typically the output of a modulation chain.
This is slightly faster than calling getGainFactorForBalance because it uses some vectorization... The float array that is passed in is used as working buffer, so don't rely on it not being changed...