I would like to implement fade in and out curves. What i what to achieve is a simple knob control. I’m trying samples with sfplay and the idea is when i’m holding on to a button, (midi controller) the files in a selected folder will play one after another. When i let go of the button, it will automatically bang a line out value which i can set with the knob. (2 knobs for fade in and out). The idea is when the knob is in the middle it will trigger a simple linear function with a fixed line. when the knob is turned to the left, it will trigger a convex log curve and to the right concave log curve. the value of how far left or right will determine the duration of the fade in/out time.
I’ve been looking at the hann function and others, but i’m confused on how to implement this. Can someone advise me on how to implement this with an expr?