Simulator
||music:change tempo by||
works on the micro:bit. It might not work in the simulator on every browser.
Makes the tempo (speed of a piece of music) faster or slower by the amount you say.
music.changeTempoBy(20)
||music:change tempo by||
works on the micro:bit. It might not work in the simulator on every browser.
bpm
is a number that says how much to
change the bpm (beats per minute, or number of beats in a minute of
the music that the micro:bit is playing).This program makes the music faster by 12 bpm.
music.changeTempoBy(12)
This program makes the music slower by 12 bpm.
music.changeTempoBy(-12)