Allow Lua [session] script to directly set controllables
This commit is contained in:
parent
894e6d27a4
commit
bcbb4393fc
@ -5688,6 +5688,15 @@ Session::setup_lua ()
|
||||
LuaBindings::stddef (L);
|
||||
LuaBindings::common (L);
|
||||
LuaBindings::dsp (L);
|
||||
luabridge::getGlobalNamespace (L)
|
||||
.beginNamespace ("Ardour")
|
||||
.beginClass <Session> ("Session")
|
||||
/* thse are private to Session */
|
||||
.addFunction ("rt_set_controls", &Session::rt_set_controls)
|
||||
.addFunction ("rt_clear_all_solo_state", &Session::rt_clear_all_solo_state)
|
||||
.endClass ()
|
||||
.endNamespace ();
|
||||
|
||||
lua_mlock (L, 0);
|
||||
luabridge::push <Session *> (L, this);
|
||||
lua_setglobal (L, "Session");
|
||||
|
Loading…
Reference in New Issue
Block a user