Forums > MaxMSP

math/formula behind line

June 29, 2011 | 9:18 am

Can someone please give me some information about the line formula.

I need to calculate a linear interpolation in a given time range in c++.

Thanks a lot!


June 29, 2011 | 10:51 am

Basically, what line does is dividing the range by the number of steps (duration / grain size) to calculate an increment. Then for each grain, you just add the increment.

Something like this, in patch:

– Pasted Max Patch, click to expand. –

Viewing 2 posts - 1 through 2 (of 2 total)