Simulator
||music:set volume||
works on the micro:bit. It might not work in the simulator on every browser.
Set the volume for the sound synthesizer.
music.setVolume(128)
||music:set volume||
works on the micro:bit. It might not work in the simulator on every browser.
volume
: the volume of of the sounds played to the sound output. The volume number can be between 0
for silent and 255
for the loudest sound.Set the synthesizer volume to something quieter.
music.setVolume(50)
music