Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example

Code Block
-- assign cutoffpitch octave, resonancecoarse and envelopefine amount to the next free automation
zones = this.program:findZones(true)
parameters = { "FilterPitch.CutoffOctave", "FilterPitch.ResonanceCoarse", "FilterPitch.EnvAmountFine" }
for i, parameter in ipairs(parameters) do
    local automationIndex
    for j, zone in ipairs(zones) do
        assignAutomation(zone, parameter, automationIndex)
        automationIndex = getAutomationIndex(zone, parameter)
    end
end

...