Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Why is my microbit (in the ide and in real life) only playing 2 beats on the startMelody function

Currently I'm in the midst of trying to play a song (you may recognize) on my micro-bit, but instead of playing the song it'll play 3 beats of the same tone (2 if I have it at the default bpm). Here's my code

let amongUs = ['c3:0.5', 'd#3:0.5', 'f3:0.5', 'f#3:0.5', 'f3:0.5',
 'eb3:0.5', 'c3:1.5', 'bb3:0.25', 'd3:0.25', 'c3:1', 'r:1',
  'c2:0.5', 'g2:.5']

music.startMelody(amongUs);

Let me know if you have any suggestions that may fix this, not just to mine but a general fix that will work for similar scenarios.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Okay I have no idea why I didn't try this but I guess I hope this helps people having a similar problem.

The beat system in the micro:bit IDE is way off so instead of using beats as little as .5 you'll want to use beats of at least 1.

-Emily

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!