Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda