[Ardour-Users] lua scripting and TempoMap

Robin Gareus robin at gareus.org
Mon Dec 11 10:50:50 PST 2017


On 12/11/2017 07:21 PM, Eric Würbel wrote:
> Hi,
> 
> I want to write a lua script (EditorAction) which needs to clear the
> tempo map entirely and then write new tempo at some positions.
> 
> I managed to find how to get the tempo map from the session with
> Session:tempo_map(). I understand that to add tempo events I have to use
> the add_tempo method from the TempoMap class, but I don't see any way to
> remove existin tempo events (TempoSection objects ?)
> 
> Is it possible to iterate over these objects ?
> 

Tempo Map Lua bindings are currently very sparse and most of them are
not exposed in 5.x. This is because musical-time is due a complete
overhaul and the API is being changed for 6.0.




More information about the Ardour-Users mailing list