VoiceManager Class Reference
List of all members.Public Member Functions | |
VoiceManager (int totalvoices) | |
~VoiceManager () | |
int | allocateVoice (int chn, int key) |
void | deallocateVoice (int id) |
void | initSearch (void) |
int | search (int chn) |
int | search (int chn, int note) |
int | channel (int v) |
int | note (int v) |
int | used (int v) |
void | clearLists (void) |
Detailed Description
Definition at line 35 of file voiceman.h.
Constructor & Destructor Documentation
|
Cronstructor.
Definition at line 33 of file voiceman.cc. |
|
Destructor.
Definition at line 72 of file voiceman.cc. |
Member Function Documentation
|
Allocates a voice used in channel
Definition at line 113 of file voiceman.cc. Referenced by GUSOut::noteOn(), and FMOut::noteOn(). |
|
Deallocates the voice with ID
Definition at line 151 of file voiceman.cc. Referenced by GUSOut::noteOff(), and FMOut::noteOff(). |
|
initSearch() must be called always before search() to initialize internal variables.
Definition at line 229 of file voiceman.cc. Referenced by GUSOut::chnController(), FMOut::chnController(), GUSOut::chnPatchChange(), FMOut::chnPatchChange(), GUSOut::chnPitchBender(), FMOut::chnPitchBender(), FMOut::chnPressure(), GUSOut::keyPressure(), FMOut::keyPressure(), GUSOut::noteOff(), and FMOut::noteOff(). |
|
Returns -1 if channel chn is not currently used, or a voice using channel
Calling search repeteadly, will return all the voices using channel
Definition at line 235 of file voiceman.cc. Referenced by GUSOut::chnController(), FMOut::chnController(), GUSOut::chnPatchChange(), FMOut::chnPatchChange(), GUSOut::chnPitchBender(), FMOut::chnPitchBender(), FMOut::chnPressure(), GUSOut::keyPressure(), FMOut::keyPressure(), GUSOut::noteOff(), and FMOut::noteOff(). |
|
This is a convenience function that differs from the above in that it also looks for a specific note (the second parameter).
Definition at line 252 of file voiceman.cc. |
|
Returns the channel that voice
Definition at line 154 of file voiceman.h. |
|
Returns the note that voice
Definition at line 159 of file voiceman.h. Referenced by GUSOut::initDev(), and FMOut::initDev(). |
|
Returns true or false if the voice
Definition at line 164 of file voiceman.h. |
|
Clears the lists of used voices.
Definition at line 95 of file voiceman.cc. Referenced by GUSOut::closeDev(), and FMOut::closeDev(). |
The documentation for this class was generated from the following files: