Waveform 14 released.

Discussion about: tracktion.com
RELATED
PRODUCTS

Post

Yeah, samples will guide you through - particularly for a first one.

Somebody here had asked for one to determine the length from start to end markers, and it was simpler than I figured - I was kind of surprised that this would work; but outpos - inpos actually worked properly without having to fiddle with minutes and seconds...

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);

In testing it, I realized myself I'd rather be able to simply MARK off a range graphically, and with a minor tweak this worked... without having to actually SET in and out markers

var inPos = Tracktion.getPosition('markIn');
var outPos = Tracktion.getPosition('markOut');
var secRange = outPos - inPos; // Length of marked region
Tracktion.showMessage('Marked duration: ' + secRange);

The "trickiest" part was realizing where to put it - it's in under Keyboard shortcuts way at the end under MACROs.
Waveform 13; Win10 desktop/8 Gig; Win11 Laptop; MPK261; VFX+disfunctional ESQ-1

Post Reply

Return to “Tracktion”