# I made a single function for smoothed values, but is this code bad practice?

**URL:** <https://forum.juce.com/t/i-made-a-single-function-for-smoothed-values-but-is-this-code-bad-practice/34748>\
**Category:** Audio Plugins\
**Created:** [August 12, 2019, 12:43am UTC](https://forum.juce.com/t/i-made-a-single-function-for-smoothed-values-but-is-this-code-bad-practice/34748 "2019-08-12T00:43:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [August 12, 2019, 9:28am UTC](https://forum.juce.com/t/i-made-a-single-function-for-smoothed-values-but-is-this-code-bad-practice/34748/4 "2019-08-12T09:28:19Z")

</div>

> [@LinearSmoothedValue example](https://forum.juce.com/t/linearsmoothedvalue-example/28243):
>
> Hi everyone, I’m pretty new to audio programming and I’m stuck on how to do a cross fade on a delayed signal. I have seen people recommending using the LinearSmoothedValue class for this but I can’t find any examples of it being used. Could someone possibly show me a quick example? Cheers.

Rail

---

_[View the full topic](https://forum.juce.com/t/i-made-a-single-function-for-smoothed-values-but-is-this-code-bad-practice/34748)._
