microsoft / microsoft/pxt-microbit

Random freezes when playing tones on Microbit V2

Open
#4,627 12 comments 1 reaction 2 assignees View on GitHub

@JohnVidler is already working on this.

Since Mar 17, 2023.

music P2 v2hardware
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

When playing tones multiples times, by button press or edge events on Pins (tried P1 or P2), the board freezes after a few or many attempts.

Demo :
https://makecode.microbit.org/_FRjWbe2pJMbX

It looks a bit like the bug https://github.com/microbit-foundation/micropython-microbit-v2/issues/73, but Makecode uses a recent enough CODAL version however (codal-microbit-v2 runtime version: v0.2.32)

I've tried with a without an external speaker board, different tones, differnts sounds durations, to no avail. Playing the SAME tone multiple times shortly seems to freeze the board more easily though

Attempted with Firefox 99.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.