mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Cont'd work on TempoMap Lua bindings
This commit is contained in:
parent
3b18b025e3
commit
ce15b6ed66
1 changed files with 5 additions and 2 deletions
|
|
@ -546,9 +546,12 @@ LuaBindings::common (lua_State* L)
|
||||||
.beginNamespace ("Temporal")
|
.beginNamespace ("Temporal")
|
||||||
|
|
||||||
.addConst ("superclock_ticks_per_second", Temporal::superclock_ticks_per_second)
|
.addConst ("superclock_ticks_per_second", Temporal::superclock_ticks_per_second)
|
||||||
|
.addConst ("ticks_per_beat", Temporal::ticks_per_beat)
|
||||||
|
|
||||||
.beginClass <Temporal::Beats> ("Beats")
|
.beginClass <Temporal::Beats> ("Beats")
|
||||||
/* XXX need some way to construct beats in Lua */
|
.addConstructor <void (*) (int32_t, int32_t)> ()
|
||||||
|
.addStaticFunction ("from_double", &Temporal::Beats::from_double)
|
||||||
|
.addStaticFunction ("beats", &Temporal::Beats::beats)
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
/* TODO */
|
/* TODO */
|
||||||
|
|
@ -579,7 +582,7 @@ LuaBindings::common (lua_State* L)
|
||||||
.endClass ()
|
.endClass ()
|
||||||
|
|
||||||
.beginClass <Temporal::Tempo> ("Tempo")
|
.beginClass <Temporal::Tempo> ("Tempo")
|
||||||
.addConstructor <void (*) (double, double, double)> ()
|
.addConstructor <void (*) (double, double, int)> ()
|
||||||
.addFunction ("note_type", &Temporal::Tempo::note_type)
|
.addFunction ("note_type", &Temporal::Tempo::note_type)
|
||||||
.addFunction ("note_types_per_minute", (double (Temporal::Tempo::*)() const)&Temporal::Tempo::note_types_per_minute)
|
.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)
|
.addFunction ("quarter_notes_per_minute", &Temporal::Tempo::quarter_notes_per_minute)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue