diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index cdd3dd5940..7e741e05fa 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -1456,7 +1456,8 @@ LuaBindings::common (lua_State* L) .beginClass ("TempoMap") .addFunction ("add_tempo", &TempoMap::add_tempo) .addFunction ("add_meter", &TempoMap::add_meter) - .addFunction ("tempo_section_at_frame", &TempoMap::tempo_section_at_frame) + .addFunction ("tempo_section_at_frame", (TempoSection& (TempoMap::*)(framepos_t))&TempoMap::tempo_section_at_frame) + .addFunction ("tempo_section_at_frame", (const TempoSection& (TempoMap::*)(framepos_t) const)&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)