I am creating a time based effect patch that falls in to a predetermined interval, and I need help with the math involved.
What I am looking to do is change playback speed of a buffer for a selectable amount of time, with selectable ramp-up to speed curves.
Example: You could choose to playback 1 bar of a sample in the space of a half note. But, I would like the user to be able to select from several different ramp-up curves, and i'm unsure of how to calculate the time compression on those.
To distract you from my lack of math skills, I have created a diagram to highlight my lack of drawing skills instead.
Thank you for the help