#include <Instrument.h>
Public Member Functions | |
Voice (int bank, int patch) | |
Voice (int bankMSB, int bankLSB, int patch) | |
int | bank () const |
int | bankMSB () const |
int | bankLSB () const |
int | patch () const |
int | operator< (const Voice &v) const |
A Voice struct holds information about a voice - the bank and patch values. It is based on pair<int,int> where the first in is the bank value and the second int is the patch value.
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.
|
Creates a Voice with the given bank and patch values.
|
|
Creates a Voice with the given bank and patch values.
|
|
Returns the bank value in the form (bankMSB<<7)+bankLSB. |
|
Returns the bank MSB value. |
|
Returns the bank LSB value. |
|
Returns the patch value. |
|
Comparison operator. Compares banks first, then patches. |