setVolume()
Set the main volume for a channel.
Play.setVolume(volume)
This is the channel's overall volume, separate from how loud each note is played (see Play.noteOn()).
Parameters
Play.setVolume(volume, channel=0)
| Parameter | Type | Default | Description |
|---|---|---|---|
volume |
int |
required | The main volume, from 0 to 127. |
channel |
int |
0 |
The channel to set, from 0 to 15. |