pxt-calliope/docs/reference/music/set-tempo.md
Sam El-Husseini e3975e65e5 pxt-microbit Accessibility PR ()
* Accessibility changes
2017-09-07 13:42:08 -07:00

587 B

Set Tempo

Makes the tempo (speed of a piece of music) as fast or slow as you say.

music.setTempo(60)

Simulator

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

Parameters

  • bpm is a number that means the beats per minute you want (the number of beats in a minute of the music that the @boardname@ is playing).

See also

play tone, ring tone , rest, tempo, change tempo by