Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Ins::Voice Struct Reference

Instrument voice definition. More...

#include <Instrument.h>

List of all members.

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


Detailed Description

Instrument voice definition.

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.

Author:
Pete Goodliffe
Version:
3.00


Constructor & Destructor Documentation

TSE3::Ins::Voice::Voice int  bank,
int  patch
 

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

TSE3::Ins::Voice::Voice int  bankMSB,
int  bankLSB,
int  patch
 

Creates a Voice with the given bank and patch values.

Parameters:
bankMSB Bank select MSB
bankLSB Bank select LSB
patch New patch value


Member Function Documentation

int TSE3::Ins::Voice::bank  )  const [inline]
 

Returns the bank value in the form (bankMSB<<7)+bankLSB.

int TSE3::Ins::Voice::bankMSB  )  const [inline]
 

Returns the bank MSB value.

int TSE3::Ins::Voice::bankLSB  )  const [inline]
 

Returns the bank LSB value.

int TSE3::Ins::Voice::patch  )  const [inline]
 

Returns the patch value.

int TSE3::Ins::Voice::operator< const Voice v  )  const
 

Comparison operator. Compares banks first, then patches.


The documentation for this struct was generated from the following file:
Generated on Wed May 25 14:48:01 2005 for TSE3 by doxygen 1.3.2