Skip to content

Commit

Permalink
feat: Parse _ as # in rtttl notation
Browse files Browse the repository at this point in the history
  • Loading branch information
awsdcrafting committed Feb 7, 2024
1 parent 768f357 commit 4b2a132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/experimental/bongox.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const noteFreq = createNoteTable();
function rtttl(song)
{
let notes = song.notes;
notes = notes.replaceAll("_", "#");
let username = song.performer;
console.log("Playing RTTTL", notes, "for", username);
let duration = 4;
Expand Down

0 comments on commit 4b2a132

Please sign in to comment.