diff --git a/modules/juce_dsp/maths/juce_LookupTable.h b/modules/juce_dsp/maths/juce_LookupTable.h index 02ad85d8a0..3e555adb4c 100644 --- a/modules/juce_dsp/maths/juce_LookupTable.h +++ b/modules/juce_dsp/maths/juce_LookupTable.h @@ -48,8 +48,10 @@ namespace juce::dsp Example: - LookupTable lut ([] (size_t i) { return std::sqrt ((float) i); }, 64); - auto outValue = lut[17]; + @code + LookupTable lut ([] (size_t i) { return std::sqrt ((float) i); }, 64); + auto outValue = lut[17]; + @endcode @see LookupTableTransform @@ -167,8 +169,10 @@ private: Example: - LookupTableTransform tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64); - auto outValue = tanhApprox (4.2f); + @code + LookupTableTransform tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64); + auto outValue = tanhApprox (4.2f); + @endcode Note: If you try to call the function with an input outside the provided range, it will return either the first or the last recorded LookupTable value.