I'm working on a script that, in theory, would let users record a tempo using a MIDI track as a guide. It would be similar (though not exactly like) Notion's nTempo ability.
Does anyone have a function (preferably in Lua) to convert tempo measures and beats (from GetTempoTimeSigMarker) into PPQ? it would be easy if the project kept the same time signature throughout, but I need the conversion to work for projects with varying and irregular time signatures.