Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created July 11, 2018 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesTheHacker/3447929d6edbaaea9b74e8e940f2cbd9 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/3447929d6edbaaea9b74e8e940f2cbd9 to your computer and use it in GitHub Desktop.
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