Add Temporal::Beats Lua bindings

This commit is contained in:
Robin Gareus
2023-09-10 22:23:57 +02:00
parent d37f85f9d2
commit 0e3594bb1c

View File

@@ -641,6 +641,9 @@ LuaBindings::common (lua_State* L)
.addStaticFunction ("from_double", &Temporal::Beats::from_double)
.addStaticFunction ("beats", &Temporal::Beats::beats)
.addStaticFunction ("ticks", &Temporal::Beats::ticks)
.addFunction ("get_beats", &Temporal::Beats::get_beats)
.addFunction ("get_ticks", &Temporal::Beats::get_ticks)
.addFunction ("to_ticks", (int64_t(Temporal::Beats::*)() const)&Temporal::Beats::to_ticks)
.addFunction ("diff", &Temporal::Beats::diff)
.addFunction ("prev_beat", &Temporal::Beats::prev_beat)
.addFunction ("next_beat", &Temporal::Beats::next_beat)