The mc.voiceallocator~ object assigns voice numbers to incoming messages using an optional multichannel signal to determine voice busy state. It also maintains a voice busy map used by other MC objects to avoid unnecessary processing for channels that are not actively producing audio in response to events.
voice count [int]
An optional argument can set a maximum number of voice numbers the mc.voiceallocator~ object will use. If no argument is supplied, the default voice count is 0, meaning that mc.voiceallocator~ will set its maximum voice count by the number of channels in a connected multichannel input. If there is no connected multichannel input, the default voice count is 16.
initialbusystate [int] (default: 1)
Sets the initial busy state. The default value is 1. Set this to zero to avoid high CPU usage before sending events when audio is turned on.
The name attribute assigns a global name to the object's busy map. By default, mc.voiceallocator~ 's busy map does not have a name and is available only to MC objects within the same patcher. A named busy map is accessible to all MC objects (in any patcher) that refer to it using the busymapname attribute.
When set to 1, the steal attribute allows messages to pass through mc.voiceallocator~ and are assigned to voice numbers when all voices have been allocated. When set to 0, messages are not passed through and are not assigned to voice numbers if all voices are already allocated.
The voices attribute sets the maximum voice number mc.voiceallocator~ will allocate and output. When voices is 0 (the default), the active voice count is determined by the number of channels in the connected multichannel signal. If there is no connected signal, mc.voiceallocator~ defaults to 16 voices.
Common Box Attributes
|MC Wrapper Polyphony||MC Wrapper Polyphony|
|MC and Polyphony||MC and Polyphony|