Home
last modified time | relevance | path

Searched refs:MathConstants (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/fonts/opentype/
H A Dopen_type_math_support_test.cc46 OpenTypeMathSupport::MathConstants constant) { in MathConstant()
70 for (int i = OpenTypeMathSupport::MathConstants::kScriptPercentScaleDown; in TEST_F()
91 OpenTypeMathSupport::MathConstants::kScriptPercentScaleDown); in TEST_F()
110 OpenTypeMathSupport::MathConstants::kFractionNumeratorShiftUp); in TEST_F()
119 OpenTypeMathSupport::MathConstants:: in TEST_F()
138 OpenTypeMathSupport::MathConstants:: in TEST_F()
147 OpenTypeMathSupport::MathConstants::kFractionNumeratorGapMin); in TEST_F()
163 OpenTypeMathSupport::MathConstants::kFractionRuleThickness); in TEST_F()
171 OpenTypeMathSupport::MathConstants::kFractionDenominatorGapMin); in TEST_F()
230 OpenTypeMathSupport::MathConstants::kRadicalKernBeforeDegree); in TEST_F()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/fonts/opentype/
H A Dopen_type_math_support_test.cc46 OpenTypeMathSupport::MathConstants constant) { in MathConstant()
70 for (int i = OpenTypeMathSupport::MathConstants::kScriptPercentScaleDown; in TEST_F()
91 OpenTypeMathSupport::MathConstants::kScriptPercentScaleDown); in TEST_F()
110 OpenTypeMathSupport::MathConstants::kFractionNumeratorShiftUp); in TEST_F()
119 OpenTypeMathSupport::MathConstants:: in TEST_F()
138 OpenTypeMathSupport::MathConstants:: in TEST_F()
147 OpenTypeMathSupport::MathConstants::kFractionNumeratorGapMin); in TEST_F()
163 OpenTypeMathSupport::MathConstants::kFractionRuleThickness); in TEST_F()
171 OpenTypeMathSupport::MathConstants::kFractionDenominatorGapMin); in TEST_F()
230 OpenTypeMathSupport::MathConstants::kRadicalKernBeforeDegree); in TEST_F()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/layout/ng/mathml/
H A Dng_math_fraction_layout_algorithm.cc39 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
41 : OpenTypeMathSupport::MathConstants::kFractionNumeratorGapMin) in GetFractionParameters()
48 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
57 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
63 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
65 : OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
94 ? OpenTypeMathSupport::MathConstants::kStackDisplayStyleGapMin in GetFractionStackParameters()
95 : OpenTypeMathSupport::MathConstants::kStackGapMin) in GetFractionStackParameters()
105 : OpenTypeMathSupport::MathConstants::kStackTopShiftUp) in GetFractionStackParameters()
111 ? OpenTypeMathSupport::MathConstants:: in GetFractionStackParameters()
[all …]
H A Dng_math_under_over_layout_algorithm.cc50 OpenTypeMathSupport::MathConstants::kLowerLimitGapMin) in GetUnderOverVerticalParameters()
54 OpenTypeMathSupport::MathConstants::kUpperLimitGapMin) in GetUnderOverVerticalParameters()
59 OpenTypeMathSupport::MathConstants::kLowerLimitBaselineDropMin) in GetUnderOverVerticalParameters()
64 OpenTypeMathSupport::MathConstants::kUpperLimitBaselineRiseMin) in GetUnderOverVerticalParameters()
76 style, OpenTypeMathSupport::MathConstants::kStretchStackGapBelowMin) in GetUnderOverVerticalParameters()
85 OpenTypeMathSupport::MathConstants::kStretchStackBottomShiftDown) in GetUnderOverVerticalParameters()
89 style, OpenTypeMathSupport::MathConstants::kStretchStackTopShiftUp) in GetUnderOverVerticalParameters()
101 OpenTypeMathSupport::MathConstants::kUnderbarVerticalGap) in GetUnderOverVerticalParameters()
105 OpenTypeMathSupport::MathConstants::kOverbarVerticalGap) in GetUnderOverVerticalParameters()
111 OpenTypeMathSupport::MathConstants::kUnderbarExtraDescender) in GetUnderOverVerticalParameters()
[all …]
H A Dng_math_layout_utils.cc127 OpenTypeMathSupport::MathConstants::kRadicalKernBeforeDegree) in GetRadicalHorizontalParameters()
131 OpenTypeMathSupport::MathConstants::kRadicalKernAfterDegree) in GetRadicalHorizontalParameters()
146 OpenTypeMathSupport::MathConstants::kRadicalRuleThickness) in GetRadicalVerticalParameters()
151 ? OpenTypeMathSupport::MathConstants:: in GetRadicalVerticalParameters()
153 : OpenTypeMathSupport::MathConstants::kRadicalVerticalGap) in GetRadicalVerticalParameters()
158 OpenTypeMathSupport::MathConstants::kRadicalExtraAscender) in GetRadicalVerticalParameters()
162 MathConstant(style, OpenTypeMathSupport::MathConstants:: in GetRadicalVerticalParameters()
241 OpenTypeMathSupport::MathConstants::kFractionRuleThickness) in DefaultFractionLineThickness()
251 MathConstant(style, OpenTypeMathSupport::MathConstants::kAxisHeight) in MathAxisHeight()
H A Dng_math_scripts_layout_algorithm.cc16 using MathConstants = OpenTypeMathSupport::MathConstants; typedef
25 return LayoutUnit(MathConstant(style, MathConstants::kSpaceAfterScript) in GetSpaceAfterScript()
58 LayoutUnit(MathConstant(style, MathConstants::kSubscriptShiftDown) in GetScriptsVerticalParameters()
61 LayoutUnit(MathConstant(style, MathConstants::kSuperscriptShiftUp) in GetScriptsVerticalParameters()
64 LayoutUnit(MathConstant(style, MathConstants::kSuperscriptShiftUpCramped) in GetScriptsVerticalParameters()
67 LayoutUnit(MathConstant(style, MathConstants::kSubscriptBaselineDropMin) in GetScriptsVerticalParameters()
70 LayoutUnit(MathConstant(style, MathConstants::kSuperscriptBaselineDropMax) in GetScriptsVerticalParameters()
73 LayoutUnit(MathConstant(style, MathConstants::kSubSuperscriptGapMin) in GetScriptsVerticalParameters()
76 LayoutUnit(MathConstant(style, MathConstants::kSuperscriptBottomMin) in GetScriptsVerticalParameters()
79 LayoutUnit(MathConstant(style, MathConstants::kSubscriptTopMax) in GetScriptsVerticalParameters()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/layout/ng/mathml/
H A Dng_math_fraction_layout_algorithm.cc41 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
43 : OpenTypeMathSupport::MathConstants::kFractionNumeratorGapMin) in GetFractionParameters()
50 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
61 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
67 ? OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
69 : OpenTypeMathSupport::MathConstants:: in GetFractionParameters()
98 ? OpenTypeMathSupport::MathConstants::kStackDisplayStyleGapMin in GetFractionStackParameters()
99 : OpenTypeMathSupport::MathConstants::kStackGapMin) in GetFractionStackParameters()
109 : OpenTypeMathSupport::MathConstants::kStackTopShiftUp) in GetFractionStackParameters()
115 ? OpenTypeMathSupport::MathConstants:: in GetFractionStackParameters()
[all …]
/dports/devel/juce/JUCE-f37e9a1/modules/juce_dsp/filter_design/
H A Djuce_FilterDesign.cpp159 auto factorp = wp / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
160 auto factors = ws / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
197 auto factorp = wp / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
198 auto factors = ws / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
244 auto wpT = (0.5 - normalisedTransitionWidth) * MathConstants<double>::pi; in designFIRLowpassHalfBandEquirippleMethod()
407 auto omegap = std::tan (MathConstants<double>::pi * fp); in designIIRLowpassHighOrderGeneralMethod()
408 auto omegas = std::tan (MathConstants<double>::pi * fs); in designIIRLowpassHighOrderGeneralMethod()
409 constexpr auto halfPi = MathConstants<double>::halfPi; in designIIRLowpassHighOrderGeneralMethod()
618 const double wt = MathConstants<double>::twoPi * normalisedTransitionWidth; in designIIRLowpassHalfBandPolyphaseAllpassMethod()
621 auto k = std::pow (std::tan ((MathConstants<double>::pi - wt) / 4), 2.0); in designIIRLowpassHalfBandPolyphaseAllpassMethod()
[all …]
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_dsp/filter_design/
H A Djuce_FilterDesign.cpp117 auto indice = MathConstants<double>::pi * (i - 0.5 * order); in designFIRLowpassTransitionMethod()
160 auto factorp = wp / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
161 auto factors = ws / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
198 auto factorp = wp / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
199 auto factors = ws / MathConstants<double>::pi; in designFIRLowpassLeastSquaresMethod()
245 auto wpT = (0.5 - normalisedTransitionWidth) * MathConstants<double>::pi; in designFIRLowpassHalfBandEquirippleMethod()
408 auto omegap = std::tan (MathConstants<double>::pi * fp); in designIIRLowpassHighOrderGeneralMethod()
409 auto omegas = std::tan (MathConstants<double>::pi * fs); in designIIRLowpassHighOrderGeneralMethod()
410 constexpr auto halfPi = MathConstants<double>::halfPi; in designIIRLowpassHighOrderGeneralMethod()
619 const double wt = MathConstants<double>::twoPi * normalisedTransitionWidth; in designIIRLowpassHalfBandPolyphaseAllpassMethod()
[all …]
/dports/devel/juce/JUCE-f37e9a1/modules/juce_dsp/widgets/
H A Djuce_Oscillator.h69 -MathConstants<NumericType>::pi,
70 MathConstants<NumericType>::pi,
122 auto increment = MathConstants<NumericType>::twoPi * frequency.getNextValue() / sampleRate; in processSample()
123 return input + generator (phase.advance (increment) - MathConstants<NumericType>::pi); in processSample()
140 auto baseIncrement = MathConstants<NumericType>::twoPi / sampleRate; in process()
151 - MathConstants<NumericType>::pi; in process()
211 … dst[i] = src[i] + generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
222 dst[i] += generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
232 dst[i] = generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_dsp/processors/
H A Djuce_Oscillator.h70 -MathConstants<NumericType>::pi,
71 MathConstants<NumericType>::pi,
123 auto increment = MathConstants<NumericType>::twoPi * frequency.getNextValue() / sampleRate; in processSample()
124 return input + generator (phase.advance (increment) - MathConstants<NumericType>::pi); in processSample()
141 auto baseIncrement = MathConstants<NumericType>::twoPi / sampleRate; in process()
152 - MathConstants<NumericType>::pi; in process()
212 … dst[i] = src[i] + generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
223 dst[i] += generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
233 dst[i] = generator (p.advance (freq) - MathConstants<NumericType>::pi); in process()
H A Djuce_IIRFilter.cpp100 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderLowPass()
112 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderHighPass()
124 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderAllPass()
145 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeLowPass()
171 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeHighPass()
197 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeBandPass()
224 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeNotch()
352 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / sampleRate); in getMagnitudeForFrequency()
387 … Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / sampleRate); in getMagnitudeForFrequencyArray()
418 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / sampleRate); in getPhaseForFrequency()
[all …]
H A Djuce_FIRFilter.cpp42 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / theSampleRate); in getMagnitudeForFrequency()
72 …Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / theSampleRate); in getMagnitudeForFrequencyArray()
95 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / theSampleRate); in getPhaseForFrequency()
125 …Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / theSampleRate); in getPhaseForFrequencyArray()
/dports/audio/carla/Carla-2.4.1/source/modules/juce_audio_basics/utilities/
H A Djuce_IIRFilter.cpp59 return makeLowPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeLowPass()
70 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeLowPass()
96 auto n = std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeHighPass()
111 return makeBandPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeBandPass()
122 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeBandPass()
137 return makeNotchFilter (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeNotchFilter()
148 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeNotchFilter()
163 return makeAllPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeAllPass()
174 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeAllPass()
198 auto omega = (MathConstants<double>::twoPi * jmax (cutOffFrequency, 2.0)) / sampleRate; in makeLowShelf()
[all …]
/dports/devel/juce/JUCE-f37e9a1/modules/juce_audio_basics/utilities/
H A Djuce_IIRFilter.cpp59 return makeLowPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeLowPass()
70 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeLowPass()
96 auto n = std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeHighPass()
111 return makeBandPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeBandPass()
122 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeBandPass()
137 return makeNotchFilter (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeNotchFilter()
148 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeNotchFilter()
163 return makeAllPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeAllPass()
174 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeAllPass()
198 auto omega = (MathConstants<double>::twoPi * jmax (cutOffFrequency, 2.0)) / sampleRate; in makeLowShelf()
[all …]
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_audio_basics/utilities/
H A Djuce_IIRFilter.cpp59 return makeLowPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeLowPass()
70 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeLowPass()
96 auto n = std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeHighPass()
111 return makeBandPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeBandPass()
122 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeBandPass()
137 return makeNotchFilter (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeNotchFilter()
148 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeNotchFilter()
163 return makeAllPass (sampleRate, frequency, 1.0 / MathConstants<double>::sqrt2); in makeAllPass()
174 auto n = 1.0 / std::tan (MathConstants<double>::pi * frequency / sampleRate); in makeAllPass()
198 auto omega = (MathConstants<double>::twoPi * jmax (cutOffFrequency, 2.0)) / sampleRate; in makeLowShelf()
[all …]
/dports/devel/juce/JUCE-f37e9a1/modules/juce_dsp/processors/
H A Djuce_Panner.cpp98 …leftValue = static_cast<SampleType> (std::sin (0.5 * MathConstants<double>::pi * (1.0 - normalise… in update()
99 … rightValue = static_cast<SampleType> (std::sin (0.5 * MathConstants<double>::pi * normalisedPan)); in update()
104 …leftValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * (1.0 -… in update()
105 …rightValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * normal… in update()
110 …leftValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * (1.0 -… in update()
111 …rightValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * normal… in update()
H A Djuce_DryWetMixer.cpp140 … dryValue = static_cast<SampleType> (std::sin (0.5 * MathConstants<double>::pi * (1.0 - mix))); in update()
141 wetValue = static_cast<SampleType> (std::sin (0.5 * MathConstants<double>::pi * mix)); in update()
145 …dryValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * (1.0 - m… in update()
146 …wetValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * mix), 1.… in update()
150 …dryValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * (1.0 - m… in update()
151 …wetValue = static_cast<SampleType> (std::pow (std::sin (0.5 * MathConstants<double>::pi * mix), 2.… in update()
H A Djuce_IIRFilter.cpp99 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderLowPass()
111 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderHighPass()
123 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeFirstOrderAllPass()
144 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeLowPass()
170 …auto n = std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (sampleRa… in makeHighPass()
196 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeBandPass()
223 …auto n = 1 / std::tan (MathConstants<NumericType>::pi * frequency / static_cast<NumericType> (samp… in makeNotch()
351 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / sampleRate); in getMagnitudeForFrequency()
386 … Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / sampleRate); in getMagnitudeForFrequencyArray()
417 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / sampleRate); in getPhaseForFrequency()
[all …]
H A Djuce_FIRFilter.cpp41 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / theSampleRate); in getMagnitudeForFrequency()
71 …Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / theSampleRate); in getMagnitudeForFrequencyArray()
94 Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequency * j / theSampleRate); in getPhaseForFrequency()
124 …Complex<double> jw = std::exp (-MathConstants<double>::twoPi * frequencies[i] * j / theSampleRate); in getPhaseForFrequencyArray()
/dports/devel/juce/JUCE-f37e9a1/modules/juce_dsp/maths/
H A Djuce_SpecialFunctions.cpp55 K = MathConstants<double>::halfPi; in ellipticIntegralK()
64 Kp = MathConstants<double>::halfPi; in ellipticIntegralK()
89 std::complex<double> last = std::cos (u * (double) MathConstants<double>::halfPi); in cde()
112 std::complex<double> last = std::sin (u * (double) MathConstants<double>::halfPi); in sne()
139 return 2.0 / MathConstants<double>::pi * std::asin (last); in asne()
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_dsp/maths/
H A Djuce_SpecialFunctions.cpp56 K = MathConstants<double>::halfPi; in ellipticIntegralK()
65 Kp = MathConstants<double>::halfPi; in ellipticIntegralK()
90 std::complex<double> last = std::cos (u * (double) MathConstants<double>::halfPi); in cde()
113 std::complex<double> last = std::sin (u * (double) MathConstants<double>::halfPi); in sne()
140 return 2.0 / MathConstants<double>::pi * std::asin (last); in asne()
/dports/devel/juce/JUCE-f37e9a1/examples/BLOCKS/
H A DBlocksSynthDemo.h68 phaseIncrement.setTargetValue (((MathConstants<double>::twoPi) * frequency) / sampleRate); in startNote()
87 …phaseIncrement.setTargetValue (((MathConstants<double>::twoPi) * (frequency + frequencyOffset)) / … in pitchWheelMoved()
120 if (phasePos > MathConstants<double>::twoPi) in getSample()
121 phasePos -= MathConstants<double>::twoPi; in getSample()
202 …veShape (const double currentPhase) override { return (currentPhase < MathConstants<double>::pi ? … in renderWaveShape()
233 …double renderWaveShape (const double currentPhase) override { return (1.0 / MathConstants<double>:… in renderWaveShape()
266 …return currentPhase < MathConstants<double>::pi ? -1.0 + (2.0 / MathConstants<double>::pi) * curre… in renderWaveShape()
267 … : 3.0 - (2.0 / MathConstants<double>::pi) * currentPhase; in renderWaveShape()
396 auto phaseInc = (1.0 / 30.0) * MathConstants<double>::twoPi; in generateWaveshapes()
405 if (currentPhase < MathConstants<double>::pi) in generateWaveshapes()
/dports/audio/libopenshot-audio/libopenshot-audio-0.2.2/JuceLibraryCode/modules/juce_core/maths/
H A Djuce_MathsFunctions.h338 struct MathConstants struct
363 struct MathConstants argument
382 const FloatType MathConstants<FloatType>::pi = static_cast<FloatType> (3.141592653589793238L); argument
385 const FloatType MathConstants<FloatType>::twoPi = static_cast<FloatType> (2 * 3.141592653589793238L…
388 const FloatType MathConstants<FloatType>::halfPi = static_cast<FloatType> (3.141592653589793238L / …
391 const FloatType MathConstants<FloatType>::euler = static_cast<FloatType> (2.71828182845904523536L);
394 const FloatType MathConstants<FloatType>::sqrt2 = static_cast<FloatType> (1.4142135623730950488L);
404 const JUCE_CONSTEXPR double double_Pi = MathConstants<double>::pi;
411 const JUCE_CONSTEXPR float float_Pi = MathConstants<float>::pi;
416 …degreesToRadians (FloatType degrees) noexcept { return degrees * (MathConstants<FloatType>::pi… in degreesToRadians()
[all …]
/dports/devel/juce/JUCE-f37e9a1/examples/Audio/
H A DPluckedStringsDemo.h93 amplitude = std::sin (MathConstants<float>::pi * pluckPosition); in stringPlucked()
191 amplitude = maxAmplitude * std::sin (pluckPositionRelative * MathConstants<float>::pi); in stringPlucked()
192 phase = MathConstants<float>::pi; in stringPlucked()
234 if (phase >= MathConstants<float>::twoPi) in updatePhase()
235 phase -= MathConstants<float>::twoPi; in updatePhase()

12345678910>>...12