pxt-calliope/docs/reference/music/set-tempo.md

20 lines
588 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Set Tempo
2016-06-07 02:02:15 +02:00
Makes the tempo (speed of a piece of music) as fast or slow as you say.
2016-03-26 00:47:20 +01:00
```sig
music.setTempo(60)
```
2016-06-07 02:02:15 +02:00
## Simulator
This function only works on the micro:bit and in some browsers.
2016-03-26 00:47:20 +01:00
### Parameters
2016-06-07 02:02:15 +02:00
* a [number](/reference/types/number) that means the bpm you want (beats per minute, or number of beats in a minute of the music that the micro:bit is playing).
2016-03-26 00:47:20 +01:00
### See also
2016-04-13 17:27:45 +02:00
[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)
2016-03-26 00:47:20 +01:00