Some work on phase updates

This commit is contained in:
Chris Cannam
2022-05-24 15:21:13 +01:00
parent 2b401e5cbe
commit 49ac04ceab
4 changed files with 54 additions and 22 deletions

View File

@@ -110,7 +110,7 @@ public:
if (j == 0) {
nearest[i] = np;
} else {
if (np - i < i - pp) {
if (np - i <= i - pp) {
nearest[i] = np;
} else {
nearest[i] = pp;