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

17 lines
468 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Tempo
2016-05-24 02:21:36 +02:00
Finds the tempo (speed of a piece of music).
2016-03-26 00:47:20 +01:00
```sig
music.tempo()
```
2016-05-24 02:21:36 +02:00
### Returns
2016-03-26 00:47:20 +01:00
2016-05-24 02:21:36 +02:00
* a [Number](/reference/types/number) that means the bpm (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-05-24 02:21:36 +02:00
[play tone](/reference/music/play-tone), [ring tone](/reference/music/ring-tone), [rest](/reference/music/rest), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by)
2016-03-26 00:47:20 +01:00