Simulator
||music:rest||
works on the board. It might not work in the simulator on every browser.
Give the speaker a period of time to not play any sound.
music.rest(400);
ms
is a number saying how many
milliseconds the board should rest. One second is 1000
milliseconds.Play a ‘C’ note for one second and then rest for one second. Do it again, and again…
let frequency = music.noteFrequency(Note.C)
while (true) {
music.playTone(frequency, 1000)
music.rest(1000)
}