[CM] Finding the duration of a time-varying resampled sound.
James Ravan
jamesravan@comcast.net
Tue, 28 Oct 2003 10:41:15 -0500
> Since both envelopes are straight lines going
> from (0 1) to (1 0.5), the two numbers
> should have been equal. So that proves
> that just finding the average inverse factor
> is not enough.
>
> I think its only a matter of doing a straight integral
> calculation of some sort, but I just cant figure out
> how.
It's been a while since calculus, but just thinking about it abstractly,
don't you want to (a) calculate the areas of the triangles formed by the
envelope's line segments and the x-axis and then (b) add those together?