Skip to content

Commit

Permalink
fix loop
Browse files Browse the repository at this point in the history
fix sf upload in demo breaking after the first time
  • Loading branch information
spessasus committed Jun 12, 2024
1 parent d99ac04 commit 5713016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spessasynth_lib/sequencer/sequencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export class Sequencer {
this.playedTime += this.oneTickToSeconds * (eventNext.ticks - event.ticks);

// loop
if((this.midiData.loop.end < event.ticks) && this.loop)
if((this.midiData.loop.end <= event.ticks) && this.loop)
{
this.setTimeTicks(this.midiData.loop.start);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/website/demo_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ sfInput.onchange = async e => {
*/
const file = e.target.files[0];

document.getElementById("sf_upload").innerText = file.name;
document.getElementById("sf_upload").firstElementChild.innerText = file.name;
const title = titleMessage.innerText;
titleMessage.innerText = "Parsing SoundFont...";
// parse the soundfont
Expand Down

0 comments on commit 5713016

Please sign in to comment.