-
Hi, maybe I have limited knowledge in C++ but I don't understand what is the interpolator? What is its purpose and how does it work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, the interpolator smoothes the parameters so that there are no audible clicking noises when changing a value. kTarget is the target value (where you want to go) and kCurrent describes the current value (where you are right now). At some point e.g. after 50ms the current value has ramped to the target value. |
Beta Was this translation helpful? Give feedback.
-
hi, thanks. |
Beta Was this translation helpful? Give feedback.
Hey, the interpolator smoothes the parameters so that there are no audible clicking noises when changing a value. kTarget is the target value (where you want to go) and kCurrent describes the current value (where you are right now). At some point e.g. after 50ms the current value has ramped to the target value.
This means you need to set the target value and read the current value. The interpolator does the rest for you. Does this make sense?