|
template<typename CurveClass > |
static float | alphaToGain (float alpha) noexcept |
| Converts an alpha position along the curve (0 to 1.0) into the gain at that point.
|
|
static float | alphaToGainForType (Type type, float alpha) noexcept |
| Converts an alpha position along the curve (0 to 1.0) into the gain at that point.
|
|
template<typename CurveClass , typename DestSamplePointer > |
static void | renderBlock (DestSamplePointer &dest, int numSamples, float startAlpha, float endAlpha) noexcept |
| Multiplies a block of samples by the curve shape between two alpha-positions.
|
|
template<typename DestSamplePointer > |
static void | renderBlockForType (DestSamplePointer &dest, int numSamples, float startAlpha, float endAlpha, Type type) noexcept |
| Multiplies a block of samples by the curve shape between two alpha-positions.
|
|
static void | applyCrossfadeSection (juce::AudioBuffer< float > &, int channel, int startSample, int numSamples, Type type, float startAlpha, float endAlpha) |
|
static void | applyCrossfadeSection (juce::AudioBuffer< float > &, int startSample, int numSamples, Type type, float startAlpha, float endAlpha) |
|
static void | addWithCrossfade (juce::AudioBuffer< float > &dest, const juce::AudioBuffer< float > &src, int destChannel, int destStartIndex, int sourceChannel, int sourceStartIndex, int numSamples, Type type, float startAlpha, float endAlpha) |
|
static void | drawFadeCurve (juce::Graphics &, const AudioFadeCurve::Type, float x1, float x2, float top, float bottom, juce::Rectangle< int > clip) |
|
template<typename DestSamplePointer >
static void tracktion::engine::AudioFadeCurve::renderBlockForType |
( |
DestSamplePointer & |
dest, |
|
|
int |
numSamples, |
|
|
float |
startAlpha, |
|
|
float |
endAlpha, |
|
|
Type |
type |
|
) |
| |
|
staticnoexcept |
Multiplies a block of samples by the curve shape between two alpha-positions.
The DestSamplePointer object must be a class that implements an apply() method that gets called with each gain level.
References concave, convex, linear, and sCurve.