diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 68ce912e32..57b9027409 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -546,9 +546,12 @@ LuaBindings::common (lua_State* L) .beginNamespace ("Temporal") .addConst ("superclock_ticks_per_second", Temporal::superclock_ticks_per_second) + .addConst ("ticks_per_beat", Temporal::ticks_per_beat) .beginClass ("Beats") - /* XXX need some way to construct beats in Lua */ + .addConstructor () + .addStaticFunction ("from_double", &Temporal::Beats::from_double) + .addStaticFunction ("beats", &Temporal::Beats::beats) .endClass () /* TODO */ @@ -579,7 +582,7 @@ LuaBindings::common (lua_State* L) .endClass () .beginClass ("Tempo") - .addConstructor () + .addConstructor () .addFunction ("note_type", &Temporal::Tempo::note_type) .addFunction ("note_types_per_minute", (double (Temporal::Tempo::*)() const)&Temporal::Tempo::note_types_per_minute) .addFunction ("quarter_notes_per_minute", &Temporal::Tempo::quarter_notes_per_minute)