|
|
A Voice struct holds information about a voice - the bank and patch
values. It is based on pair
Bank values are defined to be (MSB<<7)+LSB.
The value -1 denotes a wildcard - it matches any bank/patch.
This is a value type.
| Voice (int bank, int patch)
| Voice |
Creates a Voice with the given bank and patch values.
Parameters:
| bank | New bank value in the form (MSB<<7)+LSB |
| patch | New patch value |
| Voice (int bankMSB, int bankLSB, int patch)
| Voice |
Creates a Voice with the given bank and patch values.
Parameters:
| bankMSB | Bank select MSB |
| bankLSB | Bank select LSB |
| patch | New patch value |
| int bank ()
| bank |
[const]
Returns the bank value in the form (bankMSB<<7)+bankLSB.
| int bankMSB ()
| bankMSB |
[const]
Returns the bank MSB value.
| int bankLSB ()
| bankLSB |
[const]
Returns the bank LSB value.
| int patch ()
| patch |
[const]
Returns the patch value.
| int operator < (const Voice &v)
| operator < |
[const]
Comparison operator. Compares banks first, then patches.