Rest (play no sound) through pin PO for the amount of time you say.

Simulator: This function only works on the micro:bit and in some browsers.


  • ms is a number saying how many milliseconds the micro:bit should rest. One second is 1000 milliseconds.


let frequency = music.noteFrequency(Note.C)
music.playTone(frequency, 1000)

See also

play tone, ring tone , tempo, set tempo, change tempo by