Skip to content

Commit

Permalink
Apply fix for sustains greater then 60ms
Browse files Browse the repository at this point in the history
  • Loading branch information
troy-f committed Feb 20, 2023
1 parent 59af425 commit 4adda9a
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -176,7 +176,12 @@ internal static Task<List<Note>> FixEndSpacing(this List<Note> notes)

if (j + 1 < notes.Count)
{
if (notes[j + 1].Time <= notes[j].Time + notes[j].Length + 25)
if (notes[j].Length >= 100 && notes[j + 1].Time <= notes[j].Time + notes[j].Length + 60)
{
dur = notes[j + 1].Time - notes[j].Time - 60;
dur = dur < 60 ? 60 : dur;
}
else if (notes[j].Length < 100 && notes[j + 1].Time <= notes[j].Time + notes[j].Length + 25)
{
dur = notes[j + 1].Time - notes[j].Time - 25;
dur = dur < 25 ? 25 : dur;
Expand Down

0 comments on commit 4adda9a

Please sign in to comment.