Tempo

Finds the tempo (speed of a piece of music).

music.tempo()

Returns

  • a number that means the beats per minute (number of beats in a minute of the music that the micro:bit is playing).

See also

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