Any way of getting the time between locators?

Discussion about: tracktion.com
Post Reply New Topic
RELATED
PRODUCTS

Post

I need to get the time between loop in and out. Is there a script that can do this? Waveform just displays the time that the cursor is.

Post

Time? Are you wanting beats or seconds or something else?

Know how to work with macros?

var inPos = Tracktion.getPosition('loopIn');
var outPos = Tracktion.getPosition('loopOut');
var secRange = outPos - inPos; // time in seconds between in and out
Tracktion.showMessage('Loop duration: ' + secRange);
Surely there must be consensus by now...

Post

Oh, now that I see that, maybe more useful (??) is a minor variation so that you don't need in and out markers. just highlight the region, and select the macro

MyShowMarkedLength

var inPos = Tracktion.getPosition('markIn');
var outPos = Tracktion.getPosition('markOut');
var secRange = outPos - inPos; // Length of marked region
Tracktion.showMessage('Loop duration: ' + secRange);
Waveform 13; Win10 desktop/8 Gig; Win11 Laptop; MPK261; VFX+disfunctional ESQ-1

Post

Thank you

Post Reply

Return to “Tracktion”