Page tree
Skip to end of metadata
Go to start of metadata

Description

Enumerator to identify the different voice group steal modes.

Available in: Controller.

Voice Group Steal Modes

The voice group steal modes can be determined with these names or indices:

IndexName
1StealMode.lastNotePriority
2StealMode.firstNotePriority
3StealMode.lowNotePriority
4StealMode.highNotePriority
5StealMode.stealLowestAmplitude
6StealMode.stealReleasedNotes

Example

-- Activate the voice groups for the parent layer.
layer = this.parent
layer:setParameter("VoiceManager.Voice Management", 1) -- Set Voice Manager to "On".
layer:setParameter("VoiceManager.VoiceGroups", true) -- Activate the Voice Groups.
voiceGroups = layer:getParameter("VoiceManager.VoiceGroupsData")
for i = 1, 128 do
	voiceGroups[i].maxPolyphony = 4 -- Set the max polyphony to 4.
	voiceGroups[i].exclusiveGroup = 0 -- Set the exclusive group to "Off".
	voiceGroups[i].stealMode = StealMode.lastNotePriority -- Set the steal mode to "Last Note Priority".
end
layer:setParameter("VoiceManager.VoiceGroupsData", voiceGroups)

1 Comment