Voice class public functions

Voice
~Voice
cont
getChan
getChannel
getKey
getKeynum
getOffTime
getOnTime
getVel
getVelocity
off
pc
play
setChan
setChannel
setKey
setKeynum
setVel
setVelocity
status
sustain
An index of inherited functions can be found at the bottom of this page.
No description available.

Voice(int aChannel);
No description available.

Voice(const Voice& aVoice);
No description available.

Voice(void);
No description available.

~Voice();
No description available.

void cont(int controler, int data);
Uses default channel if none specified for the continuous controller message.

int getChan(void) const;
Returns the channel of the voice. Synonym for getChannel.

int getChannel(void) const;
Returns the channel of the voice.

int getKey(void) const;
Returns the current MIDI key number of the voice. Synonym for getKeynum.

int getKeynum(void) const;
Returns the current MIDI key number of the voice.

int getOffTime(void) const;
returns the time of the last automatic note off message sent out of the Voice object.

int getOnTime(void) const;
Returns the time of the last note-on message sent out of the Voice object.

int getVel(void) const;
returns the current velocity of the MIDI key. Synonym for getVelocity.

int getVelocity(void) const;
returns the current velocity of the MIDI key.

void off(void);
If a note being played by the voice is currently on then send a note-off message to turn it off; otherwise, do nothing.

void pc(int aTimbre);
use default channel if none is specified. See MidiOutput::pc.

void play(int aChannel, int aKeyno, int aVelocity);
Override the definition of MidiOutput::play so that all notes played by the Voice object will be turned off automatically before playing a new note.

void play(int aKeyno, int aVelocity);
Uses the default channel setting.

void play(void);
Plays/replays the stored note.

void setChan(int aChannel);
Sets the MIDI channel. Synonym for setChannel.

void setChannel(int aChannel);
Sets the MIDI channel.

void setKey(int aKeyno);
Sets the keynumber of the Voice object. Synonym for setKeyno.

void setKeynum(int aKeyno);
Sets the keynumber of the Voice object.

void setVel(int aVelocity);
Sets the MIDI velocity of the Voice object. Synonym for setVelocity.

void setVelocity(int aVelocity);
Sets the MIDI velocity of the Voice object.

int status(void) const;
Returns zero if off or positive if on.

void sustain(int aStatus);
Uses default channel if none specified. See MidiOutput::sustain.


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