mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Add Temporal::Beats Lua bindings
This commit is contained in:
parent
d37f85f9d2
commit
0e3594bb1c
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue