UNPKG

pxt-microbit

Version:

micro:bit target for Microsoft MakeCode (PXT)

26 lines (13 loc) 646 B
# Set Tempo Makes the tempo (speed of a piece of music) as fast or slow as you say. ```sig music.setTempo(60) ``` ### ~hint #### Simulator ``||music:set tempo||`` works on the @boardname@. It might not work in the simulator on every browser. ### ~ ## Parameters * ``bpm`` is a [number](/types/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](/reference/music/play-tone), [ring tone](/reference/music/ring-tone) , [rest](/reference/music/rest), [tempo](/reference/music/tempo), [change tempo by](/reference/music/change-tempo-by)