class MidiParams

A collection of MIDI parameter values. More...

Full nameTSE3::MidiParams
Definition#include <MidiParams.h>
InheritsTSE3::Filter [public ], TSE3::Notifier [public ], TSE3::Playable [public ], TSE3::Serializable [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

The MidiParams class holds values for MIDI parameters used by several of the TSE3 classes.

The parameters it defines can generally be assigned values, not assigned values or forced to not allow any changes in these values at all.

For this reason, MidiParams implements both the Playable and Filter interfaces.

Command classes

Use the following command classes to manipute this object in a undo/redo environment.

 MidiParams ()

MidiParams

The default MidiParams has all parameters set to 'off'.

 MidiParams (const MidiParams &)

MidiParams

 ~MidiParams ()

~MidiParams

[virtual]

MidiParams & operator= (const MidiParams &)

operator=

Reimplemented from Playable.

static const int off

off

static const int forceNone

forceNone

int  bankLSB ()

bankLSB

[const]

Read the bankLSB value.

Returns: Bank select LSB value

See also: setBankLSB

void  setBankLSB (int b)

setBankLSB

Set the bankLSB value.

Parameters:
bNew bank select LSB value

See also: bankLSB

int  bankMSB ()

bankMSB

[const]

Read the bankMSB value.

Returns: Bank select MSB value

See also: setBankMSB

void  setBankMSB (int b)

setBankMSB

Set the bankMSB value.

Parameters:
bNew bank select MSB value

See also: bankMSB

int  program ()

program

[const]

Read the program value.

Returns: Program value

See also: setProgram

void  setProgram (int p)

setProgram

Set the program value.

Parameters:
pNew program value

See also: program

int  pan ()

pan

[const]

Read the pan value.

Returns: Pan value

See also: setPan

void  setPan (int p)

setPan

Set the pan value.

Parameters:
pNew pan value

See also: pan

int  reverb ()

reverb

[const]

Read the reverb value.

Returns: Reverb value

See also: setReverb

void  setReverb (int r)

setReverb

Set the reverb value.

Parameters:
rNew reverb value

See also: reverb

int  chorus ()

chorus

[const]

Read the chorus value.

Returns: Chorus value

See also: setChorus

void  setChorus (int c)

setChorus

Set the chorus value.

Parameters:
cNew chorus value

See also: chorus

int  volume ()

volume

[const]

Read the volume value.

Returns: Volume value

See also: setVolume

void  setVolume (int v)

setVolume

Set the volume value.

Parameters:
vNew volume value

See also: volume

PlayableIterator * iterator (Clock index)

iterator

[virtual]

Reimplemented from Playable for internal purposes..

Clock  lastClock ()

lastClock

[const virtual]

Reimplemented from Playable for internal purposes..

void  save (std::ostream &o, int i)

save

[const virtual]

Reimplemented from Serializable for internal purposes..

void  load (std::istream &in, SerializableLoadInfo &info)

load

[virtual]

Reimplemented from Serializable for internal purposes..

MidiEvent  filter (const MidiEvent &e)

filter

[const virtual]

Reimplemented from Filter for internal purposes..

int _bankLSB

_bankLSB

int _bankMSB

_bankMSB

int _program

_program

int _pan

_pan

int _reverb

_reverb

int _chorus

_chorus

int _volume

_volume