Jump to content

TimingInfo


Unheardofski

Recommended Posts

When trying to establish if transport is running for some reason, once transport has been running, TimingInfo always returns playing == true for me.

 

Could someone double check this on their system please? Run the code below and check output in script editor after starting and stopping transport. Thanks.

 

var NeedsTimingInfo = true; // Setting to get timing info from host.
var start_time = new Date().getTime()
function ProcessMIDI() {
if(new Date().getTime() - start_time > 750){
var info = GetTimingInfo();
info.playing ? Trace('playing'):Trace('not playing');
start_time += new Date().getTime();
}
}

Link to comment
Share on other sites

Hi,

 

I don't understand much of the code but here on my system I see:

'playing' - when I start transport

nothing changes - when I stop transport

 

When I run the script with the transport stopped - nothing changes.

When I run the script with the transport running I see - 'playing'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...