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

Description

Enumerator to identify the modulation destinations.

Available in: Controller.

Indexsource
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
90-
91-
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

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 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)

1 Comment