Skip to content

Commit

Permalink
Fix badSustainGap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Geomitron committed Jun 19, 2024
1 parent 7bf7f8c commit db01d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-ads-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"scan-chart": patch
---

Fix badSustainGap bug
2 changes: 1 addition & 1 deletion src/chart/chart-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function findChartIssues(
if (note.msLength > 0 && note.type !== noteTypes.open) {
// ignore gaps of open sustains
futureSustainGaps.push({
startTime: note.msTime + note.msLength - 5,
startTime: note.msTime + note.msLength,
endTime: note.msTime + note.msLength + MIN_SUSTAIN_GAP_MS,
})
}
Expand Down

0 comments on commit db01d18

Please sign in to comment.