Purpose: create accurate segments from autocorrelation method.
Currently: measure intervals and fiddle with phase. Not accurate.
New way: calculate interval and find previous zero crossing and add the interval to that.
Issue: the end of the interval might not always land on a zero (though I think technically it should), which could create clicks. Maybe need to find the nearest neighboring zero crossing to mark the edge. Thanks, @ruohoruotsi. Part of #11
Purpose: create accurate segments from autocorrelation method.
Currently: measure intervals and fiddle with phase. Not accurate.
New way: calculate interval and find previous zero crossing and add the interval to that.
Issue: the end of the interval might not always land on a zero (though I think technically it should), which could create clicks. Maybe need to find the nearest neighboring zero crossing to mark the edge. Thanks, @ruohoruotsi. Part of #11