Quote:
Originally Posted by Edgemeal
I added a button to midi toolbar and set it to that script. Only problem is the button doesn't update (highlight) to tell you if its enabled or not.
|
That's also possible with a few additions to the script.
Code:
reaper.Main_OnCommand(40364, 0) -- Toggle metronome
toggleState = reaper.GetToggleCommandState(40364)
is_new,name,sec,cmd,rel,res,val = reaper.get_action_context()
reaper.SetToggleCommandState(sec, cmd, toggleState)