Simulator: This function only works on the micro:bit and in some browsers.
Set Tempo
Makes the tempo (speed of a piece of music) as fast or slow as you say.
music.setTempo(60)
Parameters
bpm
is a number that means the beats per minute you want (the number of beats in a minute of the music that the micro:bit is playing).