mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
DSP: Fixed a logarithmic conversion issue in Phaser
This commit is contained in:
parent
31613e8e7d
commit
2f9b301cb7
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ void Phaser<SampleType>::setCentreFrequency (SampleType newCentreHz)
|
|||
jassert (isPositiveAndBelow (newCentreHz, static_cast<SampleType> (sampleRate * 0.5)));
|
||||
|
||||
centreFrequency = newCentreHz;
|
||||
normCentreFrequency = mapToLog10 (centreFrequency, static_cast<SampleType> (20.0), static_cast<SampleType> (jmin (20000.0, 0.49 * sampleRate)));
|
||||
normCentreFrequency = mapFromLog10 (centreFrequency, static_cast<SampleType> (20.0), static_cast<SampleType> (jmin (20000.0, 0.49 * sampleRate)));
|
||||
}
|
||||
|
||||
template <typename SampleType>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue