setVolume()
Set the main volume for a channel.
This is the channel's overall volume, separate from how loud each note is played (see noteOn()).
Parameters
Once an object midiout has been created, you can use the following functions:
midiout.setVolume(volume)
midiout.setVolume(volume, channel)
| 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. |