Skip to content

setVolume()

Set how loud the sample is.

audiosample.setVolume(volume)

Parameters

audiosample.setVolume(volume, delay=2, voice=0)
Parameter Type Default Description
volume int required How loud to make the sample, from 0 to 127.
delay int or float 2 How long to take making the change, in milliseconds.
voice int 0 Which voice to set, from 0 to one less than the number of voices.