/ HALion Developer Resource / HALion Script / Reference /

Modulation Destination Types


On this page:


Description

Enumerator to identify the modulation destinations.

Available in: Controller.

IndexDestination
0ModulationDestination.unassigned
1ModulationDestination.pitch
2ModulationDestination.cutoff
3ModulationDestination.resonance
4ModulationDestination.distortion
5ModulationDestination.morphX
6ModulationDestination.morphY
7ModulationDestination.cutoffOffset
8ModulationDestination.resonanceOffset
9ModulationDestination.level
10ModulationDestination.volume1
11ModulationDestination.volume2
12ModulationDestination.pan
13ModulationDestination.sampleStart
14ModulationDestination.speedFactor
15ModulationDestination.formantShift
16ModulationDestination.grainPosition
17ModulationDestination.grainDirection
18ModulationDestination.grainDuration
19ModulationDestination.grainLength
20ModulationDestination.grainPitch
21ModulationDestination.grainFormant
22ModulationDestination.grainLevel
23ModulationDestination.osc1Pitch
24ModulationDestination.osc1Level
25ModulationDestination.osc1Waveform
26ModulationDestination.osc1MultiDetune
27ModulationDestination.osc1MultiPan
28ModulationDestination.osc1MultiVoices
29ModulationDestination.osc2Pitch
30ModulationDestination.osc2Level
31ModulationDestination.osc2Waveform
32ModulationDestination.osc2MultiDetune
33ModulationDestination.osc2MultiPan
34ModulationDestination.osc2MultiVoices
35ModulationDestination.osc3Pitch
36ModulationDestination.osc3Level
37ModulationDestination.osc3Waveform
38ModulationDestination.osc3MultiDetune
39ModulationDestination.osc3MultiPan
40ModulationDestination.osc3MultiVoices
41ModulationDestination.subOscLevel
42ModulationDestination.ringModLevel
43ModulationDestination.noiseLevel
44-
45-
46ModulationDestination.lfo1Freq
47ModulationDestination.lfo1Shape
48ModulationDestination.lfo2Freq
49ModulationDestination.lfo2Shape
50ModulationDestination.ampEnvAttack
51ModulationDestination.ampEnvDecay
52ModulationDestination.ampEnvSustain
53ModulationDestination.ampEnvRelease
54ModulationDestination.filterEnvAttack
55ModulationDestination.filterEnvDecay
56ModulationDestination.filterEnvSustain
57ModulationDestination.filterEnvRelease
58ModulationDestination.pitchEnvStartLev
59ModulationDestination.pitchEnvAttack
60ModulationDestination.pitchEnvAttLev
61ModulationDestination.pitchEnvDecay
62ModulationDestination.pitchEnvSustain
63ModulationDestination.pitchEnvRelease
64ModulationDestination.pitchEnvRelLev
65ModulationDestination.userEnvStartLev
66ModulationDestination.userEnvAttack
67ModulationDestination.userEnvAttLev
68ModulationDestination.userEnvDecay
69ModulationDestination.userEnvSustain
70ModulationDestination.userEnvRelease
71ModulationDestination.userEnvRelLev
72ModulationDestination.stepModFreq
73ModulationDestination.stepModSlope
74ModulationDestination.bus1
75ModulationDestination.bus2
76ModulationDestination.bus3
77ModulationDestination.bus4
78ModulationDestination.bus5
79ModulationDestination.bus6
80ModulationDestination.bus7
81ModulationDestination.bus8
82ModulationDestination.bus9
83ModulationDestination.bus10
84ModulationDestination.bus11
85ModulationDestination.bus12
86ModulationDestination.bus13
87ModulationDestination.bus14
88ModulationDestination.bus15
89ModulationDestination.bus16
90ModulationDestination.xlfoRateX
91ModulationDestination.xlfoRateY
92ModulationDestination.audioIn
93ModulationDestination.wavetable1Pitch
94ModulationDestination.wavetable1Level
95ModulationDestination.wavetable1Pan
96ModulationDestination.wavetable1MultiDetune
97ModulationDestination.wavetable1MultiPan
98ModulationDestination.wavetable1MultiSpread
99ModulationDestination.wavetable1MultiVoices
100ModulationDestination.wavetable1Pos
101-
102ModulationDestination.wavetable1Dir
103-
104ModulationDestination.wavetable1Speed
105-
106ModulationDestination.wavetable2Pitch
107ModulationDestination.wavetable2Level
108ModulationDestination.wavetable2Pan
109ModulationDestination.wavetable2MultiDetune
110ModulationDestination.wavetable2MultiPan
111ModulationDestination.wavetable2MultiSpread
112ModulationDestination.wavetable2MultiVoices
113ModulationDestination.wavetable2Pos
114-
115ModulationDestination.wavetable2Dir
116-
117ModulationDestination.wavetable2Speed
118-
119ModulationDestination.wavetableSubPitch
120ModulationDestination.wavetableSubLevel
121ModulationDestination.wavetableSubPan
122ModulationDestination.wavetableNoiseSpeed
123ModulationDestination.wavetableNoiseLevel
124ModulationDestination.wavetableNoisePan
125ModulationDestination.wavetable1FormantShift
126ModulationDestination.wavetable2FormantShift
[...]-
150ModulationDestination.fmOp1Level
151ModulationDestination.fmOp2Level
152ModulationDestination.fmOp3Level
153ModulationDestination.fmOp4Level
154ModulationDestination.fmOp5Level
155ModulationDestination.fmOp6Level
156ModulationDestination.fmOp7Level
157ModulationDestination.fmOp8Level
158ModulationDestination.fmOp1Pitch
159ModulationDestination.fmOp2Pitch
160ModulationDestination.fmOp3Pitch
161ModulationDestination.fmOp4Pitch
162ModulationDestination.fmOp5Pitch
163ModulationDestination.fmOp6Pitch
164ModulationDestination.fmOp7Pitch
165ModulationDestination.fmOp8Pitch
166ModulationDestination.fmOp1TimeScale
167ModulationDestination.fmOp2TimeScale
168ModulationDestination.fmOp3TimeScale
169ModulationDestination.fmOp4TimeScale
170ModulationDestination.fmOp5TimeScale
171ModulationDestination.fmOp6TimeScale
172ModulationDestination.fmOp7TimeScale
173ModulationDestination.fmOp8TimeScale
174ModulationDestination.fmFeedback
175ModulationDestination.fmModuatorLevel
176ModulationDestination.fmModulatorTimeScale
177ModulationDestination.fmCarrierTimeScale
178ModulationDestination.spectralUnisonVoices
179ModulationDestination.spectralUnisonDetune
180ModulationDestination.spectralUnisonPan
181ModulationDestination.spectralUnisonSpread
182ModulationDestination.spectralPos
183ModulationDestination.spectralDir
184ModulationDestination.spectralSpeed
185ModulationDestination.spectralTargetSpeed
186ModulationDestination.spectralAcceleration
187ModulationDestination.spectralLevel
188ModulationDestination.spectralPurity
189ModulationDestination.spectralInharmonicity
190ModulationDestination.spectralFormantShift
191ModulationDestination.spectralFormantScale
192ModulationDestination.spectralFilterShift
193ModulationDestination.spectralFilterScale
194ModulationDestination.spectralLowCutAmount
195ModulationDestination.spectralBlurTime
196ModulationDestination.spectralBlurDepth
197ModulationDestination.spectralBlurMix
198ModulationDestination.spectralStackLevel1
199ModulationDestination.spectralStackLevel2
200ModulationDestination.spectralStackLevel3
201ModulationDestination.spectralStackLevel4
202ModulationDestination.spectralStackLevel5
203ModulationDestination.spectralStackLevel6
204ModulationDestination.spectralStackLevel7
205ModulationDestination.spectralStackLevel8

Jump to Top

Example

-- Define modulation destinations.

defineSlotLocal("modDestinations")
modDestinations = {
            { name = "-",           index = ModulationDestination.unassigned },
            { name = "Pitch",       index = ModulationDestination.pitch },
            { name = "Cutoff",      index = ModulationDestination.cutoff },
            { name = "Resonance",   index = ModulationDestination.resonance },
            { name = "Distortion",  index = ModulationDestination.distortion }
            }
 
-- Create a table with the names of the modulation destinations.

function getModDestNames()
    modDestNames = {}
    for i=1, #modDestinations do
        modDestNames[i] = modDestinations[i].name
    end
end
getModDestNames()
 
-- Parameter change callback to set the modulation destination.

function onModDestChanged(row, modDestinationParam)
    local modRow = this.parent:getZone():getModulationMatrixRow(row)
    local modDestination = modDestinations[modDestinationParam]
    modRow:setParameter("Destination.Destination", modDestination.index)
end
 
-- Define parameters for modulation matrix destinations 1-4.

defineParameter("ModDestination1", "Modulation Destination 1",  1, modDestNames, function() onModDestChanged(1,  ModDestination1)  end)
defineParameter("ModDestination2", "Modulation Destination 2",  1, modDestNames, function() onModDestChanged(2,  ModDestination2)  end)
defineParameter("ModDestination3", "Modulation Destination 3",  1, modDestNames, function() onModDestChanged(3,  ModDestination3)  end)
defineParameter("ModDestination4", "Modulation Destination 4",  1, modDestNames, function() onModDestChanged(4,  ModDestination4)  end)

See also: ModulationMatrixRow, getModulationMatrixRow, setSource1, setSource2, getSource1, getSource2, Modulation Source Types