|
|
The MixerPort hols all Mixer values for a particular MIDI port. It contains 16 MixerChannel objects which hold the information for each of the port's MIDI channels.
See also: Mixer, MixerChannel
MixerChannel * operator[] (size_t n)
| operator[] |
Returns this MixerPort's MixerChannel object for the specified channel.
The value returned for an index that is out of range is undefined. The size method describes the valid values.
Parameters:
n | Index |
Returns: MixerChannel for this MIDI channel number
unsigned int volume ()
| volume |
[const]
Returns this ports's master volume value.
Returns: Port's volume value
See also: setVolume
void setVolume (unsigned int v, bool send = true)
| setVolume |
Sets the ports's master volume value.
Parameters:
v | New volume value |
send | Whether to send a MIDI command for this setting |
See also: volume
void command (MidiCommand mc)
| command |
Process a MidiCommand.
This accepts the specified event (which is for this port) and sends it to the appropriate MixerChannel.
This will be called by the Mixer class if the Mixer is given a MidiCommand to process.
Parameters:
mc | MidiCommand to process |
friend class Mixer | Mixer |
friend class MixerChannel | MixerChannel |