meinardmueller / libtsm

Other
21 stars 2 forks source link

Improve behavior for invalid anchor point sequences #3

Closed simonschwaer closed 5 months ago

simonschwaer commented 5 months ago

This MR contains a few changes that improve the behavior of libtsm when an invalid sequence of anchor points is given to either pv_tsm or wsola_tsm. Both functions now raise an assertion error when

Furthermore, a new helper function libtsm.ensure_validity can help ensuring monotonicity with a simple heuristic that removes any anchor points that lead to an analysis hop size of 0.

Finally, a bugfix is included to use smoother anchor points for the pitch shifting.

yiitozer commented 5 months ago

Thank you!!