Is it possible to interpolate between an array of values in a Pattern?
I’d like to have an array of values for the \dur
property of a Pbind
, randomly choose among them, and linearly interpolate between the values, to create a sort of rhythmic feel.
Is there a way to do this with Pfunc
?
Thank you!
Can you explain how you want the linear interpolation to work?
-
For each event, choose a fractional index into the array and interpolate based on the index? That would be blendAt, which you can put into a Pfunc.
-
Or, do you mean the way a breakpoint envelope interpolates between the segment endpoints? That would be Pseg(Prand(array, inf), (some other pattern for breakpoint durations), \lin)
I believe.
hjh
Pseg
is exactly what I was looking for. Thank you!