Jump to content

PrimingEvent. WTF?


Dewdman42

Recommended Posts

I have been getting some weird issues with Scripter in 10.4.4, I didn't notice before, but that doesn't mean it wasn't happening before. Basically when I hit the run script button, some kind of strange "empty" midi event is called into the HandleMIDI() function at that time. ???

 

Having a look inside EventTypes.js, I see an object defined called PrimingEvent, and this appears to be what it is. But what is it?

 

From EventTypes.js:

 

//-----------------------------------------------------------------------------
// PrimingEvent : { }
//-----------------------------------------------------------------------------
PrimingEvent.prototype = new Event();
PrimingEvent.prototype.constructor = PrimingEvent;
//-----------------------------------------------------------------------------
function PrimingEvent(e) {
 this.value = 0;
 this.beatPos = 0;
 this.isRealtime = false;
};

//-----------------------------------------------------------------------------
PrimingEvent.prototype.toString = function() {
 return '';
};

 

In some cases in order to avoid problems in my HandleMIDI code I'm having to check to see if the event is the blank PrimingEvent obj before doing anything, which is really annoying. does anyone know anything about what this is?

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...