|
| ||||||||||||
Manages the voices used by synthesizers.
| |
Cronstructor.
| |
Destructor.
| int |
Allocates a voice used in channel chn, and playing key key
Returns: the voice that should be used.
See also: deallocateVoice
| void |
Deallocates the voice with ID id.
See also: allocateVoice
| void |
initSearch() must be called always before search() to initialize internal variables.
See also: search
| int |
Returns -1 if channel chn is not currently used, or a voice using
channel chn if any.
Calling search repeteadly, will return all the voices using channel
chn, and a -1 after the last one.
See also: initSearch
| int |
This is a convenience function that differs from the above in that it also looks for a specific note (the second parameter)
See also: initSearch
| int |
Returns the channel that voice v is using.
| int |
Returns the note that voice v is playing.
| int |
Returns true or false if the voice v is being used or not respectively.
| void |
Clears the lists of used voices.