/ 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:

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
    voiceGroups[i].exclusiveGroup = 0 -- Set exclusive group to "Off".
    voiceGroups[i].stealMode = StealMode.lastNotePriority
end

layer:setParameter("VoiceManager.VoiceGroupsData", voiceGroups)

See also: VoiceGroupsData Table