# \[Added 2.7 B3\] Globaloscactions.Lua Updates

**URL:** <https://forum.renoise.com/t/added-2-7-b3-globaloscactions-lua-updates/31830>\
**Category:** Ideas & suggestions\
**Created:** [March 27, 2011, 7:42am UTC](https://forum.renoise.com/t/added-2-7-b3-globaloscactions-lua-updates/31830 "2011-03-27T07:42:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patto](https://forum.renoise.com/user_avatar/forum.renoise.com/patto/32/336_2.png) [@patto](https://forum.renoise.com/u/patto)\
**Post date:** [March 27, 2011, 7:42am UTC](https://forum.renoise.com/t/added-2-7-b3-globaloscactions-lua-updates/31830/1 "2011-03-27T07:42:45Z")

</div>

I think it makes sense to get these added for 2.7

if anyone can think of more please add them.

```auto
  
  
-- /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](http://www.renoise.com/board/index.php?/topic/29471-lua-incorrect-function-name-metronome-precount/page __view__ getnewpost __fromsearch__ 1)

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [March 28, 2011, 8:20am UTC](https://forum.renoise.com/t/added-2-7-b3-globaloscactions-lua-updates/31830/2 "2011-03-28T08:20:37Z")

</div>

Thanks. Added the functions to the default globaloscactions.lua, and fixed the metronome\_precount -\> metronome\_precount\_enabled typo for the next beta.
