New MeasureWave. Mostly the same algorithm, but much more sensible interface