Re: lua scripting and TempoMap

Robin Gareus <[email protected]>
Newsgroups gmane.comp.audio.ardour.user
Message-ID <[email protected]>
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.

_______________________________________________
Ardour-Users mailing list
[email protected]
To unsubscribe  or change your mailing preferences please visit:
http://lists.ardour.org/listinfo.cgi/ardour-users-ardour.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.