mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
DSP: Added documentation for DryWetMixingRule and PannerRule enum classes
This commit is contained in:
parent
43d5e03a84
commit
29c8b2358d
3 changed files with 19 additions and 15 deletions
|
|
@ -125,7 +125,7 @@ void DryWetMixer<SampleType>::update()
|
|||
break;
|
||||
|
||||
case MixingRule::linear:
|
||||
dryValue = static_cast<SampleType> (1.0) - mix;
|
||||
dryValue = static_cast<SampleType> (1.0) - mix;
|
||||
wetValue = mix;
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,13 +23,14 @@ namespace dsp
|
|||
|
||||
enum class DryWetMixingRule
|
||||
{
|
||||
linear,
|
||||
balanced,
|
||||
sin3dB,
|
||||
sin4p5dB,
|
||||
sin6dB,
|
||||
squareRoot3dB,
|
||||
squareRoot4p5dB
|
||||
linear, // dry volume is equal to 1 - wet volume
|
||||
balanced, // both dry and wet are 1 when mix is 0.5, with dry decreasing to 0
|
||||
// above this value and wet decreasing to 0 below it
|
||||
sin3dB, // alternate dry/wet mixing rule using the 3 dB sine panning rule
|
||||
sin4p5dB, // alternate dry/wet mixing rule using the 4.5 dB sine panning rule
|
||||
sin6dB, // alternate dry/wet mixing rule using the 6 dB sine panning rule
|
||||
squareRoot3dB, // alternate dry/wet mixing rule using the regular 3 dB panning rule
|
||||
squareRoot4p5dB // alternate dry/wet mixing rule using the regular 4.5 dB panning rule
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -23,13 +23,16 @@ namespace dsp
|
|||
|
||||
enum class PannerRule
|
||||
{
|
||||
linear,
|
||||
balanced,
|
||||
sin3dB,
|
||||
sin4p5dB,
|
||||
sin6dB,
|
||||
squareRoot3dB,
|
||||
squareRoot4p5dB
|
||||
linear, // regular 6 dB or linear panning rule, allows the panned sound to be
|
||||
// perceived as having a constant level when summed to mono
|
||||
balanced, // both left and right are 1 when pan value is 0.5, with left decreasing
|
||||
// to 0 above this value and right decreasing to 0 below it
|
||||
sin3dB, // alternate version of the regular 3 dB panning rule with a sine curve
|
||||
sin4p5dB, // alternate version of the regular 4.5 dB panning rule with a sine curve
|
||||
sin6dB, // alternate version of the regular 6 dB panning rule with a sine curve
|
||||
squareRoot3dB, // regular 3 dB or constant power panning rule, allows the panned sound
|
||||
// to be perceived as having a constant level regardless of the pan position
|
||||
squareRoot4p5dB // regular 4.5 dB panning rule, a compromise option between 3 dB and 6 dB panning rules
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue