ArborealAudio / arbor

Easy-to-use audio plugin framework
https://arborealaudio.com
MIT License
27 stars 0 forks source link

Give an option to automatically smooth parameter changes #13

Open ArborealAudio opened 2 months ago

ArborealAudio commented 2 months ago

Parameter smoothing should really be an easy option in any audio plugin framework. Users of our parameter module should be able to opt-in to automatic parameter smoothing via a flag.

It can't be fully "automatic" since the smoothing manager will need to be informed of how it is supposed to smooth--should it increment across a fixed number of samples, or should it smooth over a given amount of time? The user can provide this in their init or prepare functions, using sample rate or max frame info if needed.

This will probably mean having special functions which throw a compile error if called on a parameter which does not have the smoothed flag.