Applying parameter ramp over time for AENewTimePitch in AERenderer block
I have an AENewTimePitch effect that I want to randomly adjust its pitch in an AERenderer block using a ramp function to increase/decrease to the target pitch over time (lets say -500 to 500 in 0.5 secs). I was looking at a few ways to do this (AudioUnitParameterEvent, AudioUnitScheduleParameters, etc), or simply keeping track of a few variables with a loop over the frames in each callback and updating them in the render block; I was wondering if you have insights into the most optimal approach though? Is there a good and bad way of doing this? Are there any CoreAudio/Accelerate functions that I should look into?
Also, do you think it would be helpful to add this as a utility function in TAAE2 as I would imagine it is a fairly common use case?