volume

Get the current volume level of the sound synthesizer.

music.volume()

Simulator

Using ||music:volume|| works on the micro:bit. It might not work in the simulator on every browser.

Returns

  • a number that is the current volume level of output from the sound synthesizer. The value can be between 0 for silent and 255 for the loudest sound.

See also

set volume

music