[Added 2.7 B3] Globaloscactions.Lua Updates

I think it makes sense to get these added for 2.7

if anyone can think of more please add them.

  
  
-- /song/record/metronome  
  
add_global_action {   
 pattern = "/song/record/metronome",   
 description = "Enable or disable the global metronome",  
  
 arguments = { argument("enabled", "boolean") },  
 handler = function(enabled)  
 song().transport.metronome_enabled = enabled  
 end  
}  
  
  
-- /song/record/metronome_precount  
  
add_global_action {   
 pattern = "/song/record/metronome_precount",   
 description = "Enable or disable the global metronome precount",  
  
 arguments = { argument("enabled", "boolean") },  
 handler = function(enabled)  
 song().transport.metronome_precount_enabled = enabled  
 end  
}  
  
  

/song/record/metronome_precount won’t work until this is fixed http://www.renoise.com/board/index.php?/topic/29471-lua-incorrect-function-name-metronome-precount/page__view__getnewpost__fromsearch__1

Thanks. Added the functions to the default globaloscactions.lua, and fixed the metronome_precount -> metronome_precount_enabled typo for the next beta.