Skip to content

Commit

Permalink
Allow new lines to delay again
Browse files Browse the repository at this point in the history
  • Loading branch information
reimu committed Oct 6, 2023
1 parent 9dbc2e1 commit 886b28b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const errorEle = document.getElementById("error") as HTMLSpanElement;
function play(notes: string, baseDelay: number) {
let delay = 0;
let inChord = false;
for (const note of notes.replace(/\n/g, "").split("")) {
for (const note of notes.split("")) {
// chord notation, don't delay but keep track
if (note === "[") {
inChord = true;
Expand Down

0 comments on commit 886b28b

Please sign in to comment.