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 14 released.
-
Peter Widdicombe Peter Widdicombe https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=336849
- KVRian
- 1208 posts since 29 Aug, 2014
Waveform 13; Win10 desktop/8 Gig; Win11 Laptop; MPK261; VFX+disfunctional ESQ-1
- KVRAF
- 37449 posts since 14 Sep, 2002 from In teh net
So I caved, realised I couldn't use modulators in the rack which is an annoying limitation of the free version.aMUSEd wrote: Fri Jul 03, 2026 10:22 am I have decided the free version is more than adequate for me, especially given all the instruments and effects included in the Pro version I already own, and don't need surround or AI.
