View Single Post
Old 11-03-2019, 11:32 PM   #582
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Quote:
Originally Posted by Lokasenna View Post
Can't test this right now, but something like:
Code:
local keyswitchOctave = reaper.GetExtState("yourScriptName", "keyswitchOctave")
if keyswitchOctave ~= "" then
  GUI.Val("mnu_mode", tonumber(keyswitchOctave)) -- Ext States are always strings
end

reaper.atexit(function()
  local keyswitchOctave = GUI.Val("mnu_mode")
  reaper.SetExtState("yourScriptName", "keyswitchOctave", keyswitchOctave, true)
end)
WOO HOO !! it works great thanks.

And thanks for Script: Lokasenna_Duplicate selected notes diatonically.lua, I got that to work from the region chord name.
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote