Unheardofski Posted January 29, 2016 Share Posted January 29, 2016 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(); } } Quote Link to comment Share on other sites More sharing options...
Mark R Posted January 29, 2016 Share Posted January 29, 2016 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' Quote Link to comment Share on other sites More sharing options...
Unheardofski Posted January 29, 2016 Author Share Posted January 29, 2016 Thanks. Our Systems behave the same. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.