Created
February 19, 2022 22:45
-
-
Save davormaricdev/390cfb173f338b4ddfc11b07993fbd42 to your computer and use it in GitHub Desktop.
GrandMA2 Quantize FX Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Davor's GrandMA2 Quantize FX Plugin | |
| -- [email protected] | |
| -- Use this plugin to sync running effects. | |
| -- [USER DEFINEABLE AREA] -- | |
| local execs = {"1.101", "1.102", "1.103"} -- Executors that contains effects | |
| local debug = false -- set to true if you want to print debug in console output | |
| -- [DO NOT TOUCH ANYTHING BELOW THIS LINE] -- | |
| local cmd = gma.cmd | |
| local get = gma.show.getobj | |
| local handle = get.handle | |
| local print = gma.feedback | |
| function GetActiveExecutors(targetExecutors) | |
| local activeExecutors = {} | |
| for i = 1, #targetExecutors, 1 do | |
| local exec = targetExecutors[i] | |
| local handle = handle('Executor ' .. exec .. ' Cue') | |
| -- Show a warning message if Executor doesn't exist | |
| if debug then | |
| if handle == nil then | |
| print('Warning (Quantize Lua): Executor ' .. exec .. ' does not exist!') | |
| end | |
| end | |
| if handle and get.class(handle) == "CMD_CUE" then | |
| table.insert(activeExecutors, exec) | |
| if debug then | |
| print('Executor ' .. exec .. ' is ON.') | |
| end | |
| end | |
| end | |
| return activeExecutors | |
| end | |
| function ConstructCmdMessage(activeExecutors) | |
| local message = "" | |
| for i = 1, #activeExecutors, 1 do | |
| local e = activeExecutors[i] | |
| message = "" .. message .. "Off Executor " .. e .. "; On Executor " .. e .. "; " | |
| end | |
| return message | |
| end | |
| function Main() | |
| local activeExecutors = GetActiveExecutors(execs) | |
| local cmdMessage = ConstructCmdMessage(activeExecutors) | |
| if debug then | |
| print("Command: " .. cmdMessage) | |
| end | |
| cmd(cmdMessage) | |
| end | |
| return Main |
Where can i get xml file? Sorry for noob
Author
Where can i get xml file? Sorry for noob
Add it manually through onPC and export it from there
Hi thanks it's working great on executor with a seqenc in it,
but is there any way to get it work with effect assiged direcly on executor?
Thanks
Probably yes, you would have to change the line 45 to restart the effect with proper command, not sure which one is needed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hi thanks it's working great on executor with a seqenc in it,
but is there any way to get it work with effect assiged direcly on executor?
Thanks