WE Core
|
Functions | |
template<typename T > | |
bool | compareFloatsEqual (T x, T y, T tolerance=std::numeric_limits< T >::epsilon()) |
double | linearTodB (double val) |
double | dBToLinear (double val) |
Variables | |
constexpr long double | LONG_PI {3.14159265358979323846264338327950288} |
constexpr double | DOUBLE_PI {static_cast<double>(LONG_PI)} |
constexpr long double | LONG_TAU {2 * LONG_PI} |
constexpr double | DOUBLE_TAU {static_cast<double>(LONG_TAU)} |
constexpr long double | LONG_E {2.71828182845904523536028747135266250} |
constexpr double | DOUBLE_E {static_cast<double>(LONG_E)} |
constexpr double | MINUS_INF_DB {-200} |
Contains generic math related consts and functions.
bool WECore::CoreMath::compareFloatsEqual | ( | T | x, |
T | y, | ||
T | tolerance = std::numeric_limits<T>::epsilon() ) |
Definition at line 45 of file CoreMath.h.
Referenced by WECore::SimpleCompressor::SimpleCompressor< SampleType >::setSampleRate().
|
inline |
Definition at line 51 of file CoreMath.h.
Referenced by WECore::SimpleCompressor::SimpleCompressor< SampleType >::process1in1out(), and WECore::Songbird::SongbirdFormantFilter< T, NUM_FORMANTS >::setFormants().
|
inline |
Definition at line 50 of file CoreMath.h.
References MINUS_INF_DB.
Referenced by WECore::SimpleCompressor::SimpleCompressor< SampleType >::process1in1out().
|
constexpr |
Definition at line 42 of file CoreMath.h.
Referenced by WECore::Carve::CarveDSPUnit< T >::_processExponent().
|
constexpr |
Definition at line 36 of file CoreMath.h.
Referenced by WECore::TPTSVF::TPTSVFilter< T >::_calculateCoefficients(), WECore::Carve::CarveDSPUnit< T >::_processAsymmetricSine(), WECore::Carve::CarveDSPUnit< T >::_processClipper(), WECore::Carve::CarveDSPUnit< T >::_processParabolicHard(), WECore::Carve::CarveDSPUnit< T >::_processParabolicSoft(), WECore::Carve::CarveDSPUnit< T >::_processSine(), WECore::LookAndFeelMixins::MidAnchoredRotarySlider< BASE >::drawRotarySlider(), WECore::LookAndFeelMixins::RotarySliderV2< BASE >::drawRotarySlider(), and WECore::Richter::Wavetables::Wavetables().
|
constexpr |
Definition at line 39 of file CoreMath.h.
Referenced by WECore::LookAndFeelMixins::MidAnchoredRotarySlider< BASE >::drawRotarySlider(), WECore::LookAndFeelMixins::RotarySliderV2< BASE >::drawRotarySlider(), and WECore::Richter::Wavetables::Wavetables().
|
constexpr |
Definition at line 41 of file CoreMath.h.
|
constexpr |
Used for portability since Visual Studio has a different implementation of math.h
Definition at line 35 of file CoreMath.h.
|
constexpr |
Definition at line 38 of file CoreMath.h.
|
constexpr |
Definition at line 49 of file CoreMath.h.
Referenced by linearTodB().