# [CM] Finding the duration of a time-varying resampled sound.

**Bill Schottstaedt
**
bil@ccrma.Stanford.EDU

*Tue, 28 Oct 2003 05:04:05 -0800*

> This function just finds the inverted average. But
> how does the integration function look like?
I need to test this, but in general integration in the
digital world is the same as a sum. You'd take each
segment, get the value for that segment given the
overall x extent (my function assumes it's 0..1),
then add them all together. Somehow, I don't trust
this in this case -- will spend the rest of the day
probably worrying over this.