set Tempo

Make the tempo (speed) of the music playing go faster or slower.

music.setTempo(60)

Simulator: ||music:set tempo|| works on the LEGO® MINDSTORMS® Education EV3. It might not work in the simulator on every browser.

Parameters

  • bpm is a number that means the amount beats per minute you want. This is how fast you want LEGO® MINDSTORMS® Education EV3 to play music.

Example

Set the music tempo to 240 beats per minute.

music.setTempo(240)

See also

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

music