Skip to content

Commit

Permalink
fix tie
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Nov 1, 2024
1 parent 3bc8c64 commit bc10bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/BeatBlox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
for (let i = 0; i < notes.length; ++i) {
let tt = 0;
for (let j = 0; j < duration[i].length; ++j) {
const m = j === 0 ? mods : mods.concat([ audio.getModification(MODIFIERS['Tie']) ]);
const m = j === duration[i].length - 1 ? mods : mods.concat([ audio.getModification(MODIFIERS['Tie']) ]);
tt += await audio.playNote(this.receiver.id, notes[i], this.musicInfo.t + tt, DURATIONS[duration[i][j]], m);
}
t = Math.min(t, tt);
Expand Down

0 comments on commit bc10bc8

Please sign in to comment.