/ HALion Developer Resource / HALion Script / Reference /
Voice Group Steal Modes
(Since HALion 6.4.10)
Description
Enumerator to identify the different voice group steal modes.
Available in: Controller.
Arguments
The voice group steal modes can be determined with these names or indices:
Index | Name |
---|---|
1 | StealMode.lastNotePriority |
2 | StealMode.firstNotePriority |
3 | StealMode.lowNotePriority |
4 | StealMode.highNotePriority |
5 | StealMode.stealLowestAmplitude |
6 | StealMode.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
voiceGroups[i].exclusiveGroup = 0 -- Set exclusive group to "Off".
voiceGroups[i].stealMode = StealMode.lastNotePriority
end
layer:setParameter("VoiceManager.VoiceGroupsData", voiceGroups)
See also: VoiceGroupsData Table