Skip to content

port over melody parsing from pxt-microbit#11252

Open
riknoll wants to merge 1 commit intomasterfrom
dev/riknoll/microbit-improve-melody-parsing
Open

port over melody parsing from pxt-microbit#11252
riknoll wants to merge 1 commit intomasterfrom
dev/riknoll/microbit-improve-melody-parsing

Conversation

@riknoll
Copy link
Copy Markdown
Member

@riknoll riknoll commented Apr 6, 2026

the other part of the fix for microsoft/pxt-microbit#6664

copies over the melody parsing from microsoft/pxt-microbit#6762 and uses it to parse the strings passed into the melody editor. should now allow anything that counts as a valid melody in the note range, e.g.

A4 B4 C5 D##:4

@riknoll riknoll requested a review from a team April 6, 2026 23:05
}

eatWhitespace() {
while (this.melodyStringIndex < this.melody.length && this.melody.charAt(this.melodyStringIndex) == " ") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question in the other PR about if this should be a === or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants