1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

Docs: Add some missing code formatting

This commit is contained in:
Tom Poole 2026-01-16 14:09:22 +00:00
parent 23ed760572
commit bd2f465321

View file

@ -48,8 +48,10 @@ namespace juce::dsp
Example:
LookupTable<float> lut ([] (size_t i) { return std::sqrt ((float) i); }, 64);
auto outValue = lut[17];
@code
LookupTable<float> lut ([] (size_t i) { return std::sqrt ((float) i); }, 64);
auto outValue = lut[17];
@endcode
@see LookupTableTransform
@ -167,8 +169,10 @@ private:
Example:
LookupTableTransform<float> tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64);
auto outValue = tanhApprox (4.2f);
@code
LookupTableTransform<float> 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.