summaryrefslogtreecommitdiff
path: root/libs/ardour/luabindings.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-07 02:38:56 +0200
committerRobin Gareus <robin@gareus.org>2016-10-07 02:38:56 +0200
commitbf6b8d76f454af73f952655a6f2998198b8cabf3 (patch)
tree0482c2af31d74bc607c609458e0920f935607b3e /libs/ardour/luabindings.cc
parent9c2d0cb8f782e515572425b34a342cb368fa9a32 (diff)
Add tempo-map Lua bindings
Diffstat (limited to 'libs/ardour/luabindings.cc')
-rw-r--r--libs/ardour/luabindings.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc
index 4f2b277699..fcb57ba8a7 100644
--- a/libs/ardour/luabindings.cc
+++ b/libs/ardour/luabindings.cc
@@ -409,6 +409,10 @@ LuaBindings::common (lua_State* L)
.beginNamespace ("Timecode")
.beginClass <Timecode::BBT_Time> ("BBT_TIME")
.addConstructor <void (*) (uint32_t, uint32_t, uint32_t)> ()
+ .addData ("bars", &Timecode::BBT_Time::bars)
+ .addData ("beats", &Timecode::BBT_Time::beats)
+ .addData ("ticks", &Timecode::BBT_Time::ticks)
+ //.addStaticData ("ticks_per_beat", &Timecode::BBT_Time::ticks_per_beat, false)
.endClass ()
/* libtimecode enums */
@@ -1315,6 +1319,9 @@ LuaBindings::common (lua_State* L)
.addFunction ("tempo_section_at_frame", &TempoMap::tempo_section_at_frame)
.addFunction ("meter_section_at_frame", &TempoMap::meter_section_at_frame)
.addFunction ("meter_section_at_beat", &TempoMap::meter_section_at_beat)
+ .addFunction ("bbt_at_frame", &TempoMap::bbt_at_frame)
+ .addFunction ("exact_beat_at_frame", &TempoMap::exact_beat_at_frame)
+ .addFunction ("exact_qn_at_frame", &TempoMap::exact_qn_at_frame)
.endClass ()
.beginClass <MetricSection> ("MetricSection")