Skip to content

Commit

Permalink
durationFromInt can now handle values less than smallest beat duration
Browse files Browse the repository at this point in the history
  • Loading branch information
gb0808 committed Oct 16, 2024
1 parent 2e4731f commit b7767e0
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 @@ -461,7 +461,7 @@
duration += duration === '' ? `${NOTE_DURATION_NAMES[index]}` : `+${NOTE_DURATION_NAMES[index]}`;
beatLength -= NOTE_DURATION_LENGTHS[index];
}
return duration;
return duration === '' ? NOTE_DURATION_NAMES[0] : duration;
}

// ----------------------------------------------------------------------
Expand Down

0 comments on commit b7767e0

Please sign in to comment.