pxt-calliope/docs/reference/music/rest.md
Galen Nickel dda488c08f
Update some music ref docs (#1693)
* Update some music ref docs

* bad link

* Actually add the note, hello
2018-12-02 16:46:05 -08:00

699 B

Rest

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

music.rest(400)

~ hint

Simulator: This function only works on the @boardname@ and in some browsers.

~

Parameters

  • ms is a number saying how many milliseconds the @boardname@ should rest. One second is 1000 milliseconds.

Example

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

See also

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