MidiPerform class public functions

MidiPerform
~MidiPerform
beat
channelCollapse
check
getAmp
getBeatFraction
getBeatLocation
getMaxAmp
getTempo
getTempoMethod
pause
play
read
rewind
setAmp
setBeatLocation
setMaxAmp
setTempo
setTempoMethod
stop
An index of inherited functions can be found at the bottom of this page.
MidiPerform(void);
No description available.

MidiPerform(char* aFile);
No description available.

~MidiPerform();
Deletes the stored MIDI file from memory.

void beat(void);
Perform a beat to control the performance.

double getAmp(void);
Return the amplitude scaling used in the performance.

int getMaxAmp(void);
Return the maximum amplitude for the performance.

double getTempo(void);
Returns the current performance tempo.

int getTempoMethod(void);
Returns the tempo generation method currently being used in the performance. Tempo methods are:
TEMPO_METHOD_AUTOMATIC:
keep performance method an beat locations automatic -- the beat() function will not influence the performance.
TEMPO_METHOD_CONSTANT:
keep the tempo automatically adjusted, but control the start of a beat with the beat function.
TEMPO_METHOD_ONEBACK:
estimate the tempo of the current beat with the tempo of the previous beat period.
TEMPO_METHOD_TWOBACK:
estimate the tempo of the current beat with average of the past two beat periods.
TEMPO_METHOD_THREEBACK:
estimate the tempo of the current beat with average of the past three beat periods.
TEMPO_METHOD_FOURBACK:
estimate the tempo of the current beat with average of the past four beat periods.


int channelCollapse(int aSetting = -1);
Send all output to the specified input value. If the input value is negative, then MIDI channel 1 is used.

void check(void);
Examine the performance data to see if there is some data to perform.

double getBeatFraction(void);
Returns the current Beat position in the range from [0, 1), where 0 is the start of the beat, and 1 is the start of the next beat.

int getBeatLocation(void);
Returns the integral beat count since the start of the performance.

void pause(void);
Temporarily halt the performance.

void play(void);
Start the performance at the current location in the performance data.

void read(char* aFile);
Read in a standard MIDI file and get it ready for a performance.

void rewind(void);
Reset the location in the performance to the beginning.

void setAmp(double anAmp);
Set the amplitude scaling factor for MIDI attack velocities.

void setMaxAmp(int aMax);
Set the maximum output amplitude of the MIDI notes. If any attack velocities are greater than aMax, then the output amplitude will become aMax. Input values are in the range from 1 to 127 inclusive.

void setBeatLocation(double aLocation);
Used when predicting the location of the next beat. will cause the tempo to be adjusted so that the external beat controller will coincide with the performances beat.

void setTempoMethod(int aMethod);
Set the tempo method for the performance. See getTempoMethod for possible values of input parameter.

void setTempo(double aTempo);
Set the tempo of the performance.

void stop(void);
Stop the performance.


Functions inherited from MidiOutput:
MidiOutput
~MidiOutput
NRPN
NRPN_attack
NRPN_decay
NRPN_drumAttack
NRPN_drumChorus
NRPN_drumDecay
NRPN_drumFilterCutoff
NRPN_drumFilterResonance
NRPN_drumLevel
NRPN_drumPan
NRPN_drumPitch
NRPN_drumReverb
NRPN_drumVariation
NRPN_filterCutoff
NRPN_null
NRPN_release
NRPN_vibratoDelay
NRPN_vibratoDepth
NRPN_vibratoRate
RPN
RPN_null
coarseTune
cont
fineTune
off
pbRange
pc
play
pw
recordStart
recordStop
reset
send
silence
sustain
sysex
tuneCoarse
tuneFine
tuningBank
tuningProgram

Functions inherited from MidiOutPort:
MidiOutPort
~MidiOutPort
close
closeAll
getChannelOffset
getName
getNumPorts
getPort
getPortStatus
getTrace
open
rawsend
setAndOpenPort
setChannelOffset
setPort
setTrace
sysex
toggleTrace