pxt-calliope/docs/reference/music/rest.md
2016-03-25 16:47:20 -07:00

682 B

Rest

Rests (plays nothing) for a specified time through pin PO.

Simulator

Simulation of this function is available in many, but not all browsers.

music.rest(400)

Parameters

  • ms: Number - the duration of the rest (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