FastLED 3.9.15
Loading...
Searching...
No Matches

◆ clamp() [2/2]

template<typename T>
enable_if< is_fixed_point< T >::value, T >::type fl::clamp ( T x,
T lo,
T hi )
inlineconstexpr
Examples
Audio.ino, ElPanelReactive.ino, and Sailboat.ino.

Definition at line 542 of file fixed_point.h.

542{ return T::clamp(x, lo, hi); }

References FL_NOEXCEPT, and x.

Referenced by fl::WaveSimulation1D_Real::WaveSimulation1D_Real(), fl::WaveSimulation2D_Real::WaveSimulation2D_Real(), fl::audio::detector::Backbeat::calculateMultibandAccent(), fl::audio::detector::Backbeat::calculatePatternConfidence(), fl::audio::detector::Note::calculatePitchBend(), fl::audio::detector::Vocal::calculateRawConfidence(), fl::XYPath::calculateSteps(), fl::audio::detector::Note::calculateVelocity(), fl::audio::detector::Percussion::computeConfidences(), fl::gfx::coordToU8(), fl::gfx::coordToU8< fl::s16x16 >(), fl::gfx::coordToU8< int >(), fl::audio::detector::Backbeat::detectBackbeat(), fl::audio::detector::Downbeat::detectDownbeat(), drawRadialSpectrum(), drawSpectrumBars(), drawWaveform(), fl::wave_detail::float_to_fixed(), fl::MatrixSlice< T >::getLocalCoord(), fl::Particles1d::Particle::getPower(), loop(), map_range_clamped(), fl::XYMap::mapToIndex(), fl::Luminova::plotSoftDot(), fl::colorimetric_detail::rgbcct_eta_for_cct(), fl::WaveSimulation1D::setf(), fl::WaveSimulation2D::setf(), fl::iterator<, u8 >::setLoadFactor(), fl::WaveSimulation1D_Real::setSpeed(), fl::WaveSimulation2D_Real::setSpeed(), setup(), showGenerative(), fl::NoiseBias1D::trigger(), fl::WaveSimulation1D_Real::update(), fl::WaveSimulation2D_Real::update(), and updateAutoGain().

+ Here is the caller graph for this function: