Created
July 11, 2018 13:37
-
-
Save JamesTheHacker/3447929d6edbaaea9b74e8e940f2cbd9 to your computer and use it in GitHub Desktop.
This file contains 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
local Song = NI.DATA.StateHelper.getFocusSong(App) | |
local ScaleEngine = NI.DATA.getScaleEngine(App) | |
local Group = NI.DATA.StateHelper.getFocusGroup(App) | |
if ScaleEngine and Group then | |
Params = | |
{ | |
ScaleEngine:getRootNoteParameter(), | |
not ScaleEngine:getChordModeIsChordSet() and ScaleEngine:getScaleBankParameter() or nil, | |
not ScaleEngine:getChordModeIsChordSet() and ScaleEngine:getScaleParameter() or nil, | |
not ScaleEngine:getChordModeIsChordSet() and NI.HW.getScaleEngineKeyModeParameter(App) or nil, | |
ScaleEngine:getChordModeParameter(), | |
ScaleEngine:getChordModeParameter():getValue() ~= 0 and ScaleEngine:getChordTypeAutomationParameter() or nil | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment