20 lines
589 B
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# Set Tempo
2016-06-06 17:02:15 -07:00
Makes the tempo (speed of a piece of music) as fast or slow as you say.
2016-03-25 16:47:20 -07:00
```sig
music.setTempo(60)
```
2016-06-06 17:02:15 -07:00
## Simulator
2016-11-01 17:44:37 -07:00
This function only works on the @boardname@ and in some browsers.
2016-03-25 16:47:20 -07:00
### Parameters
2017-03-16 07:57:41 -07:00
* ``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).
2016-03-25 16:47:20 -07:00
### See also
2016-04-13 08:27:45 -07: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-25 16:47:20 -07:00