I've got it to work...Yippie.
However it is causing me some problems when playing back through Sibelius. I shall solve them and then post the new version
Captain, your code is very helpful, I added to the statusLo==8 - ||velocity==0 - because some controllers don't send out a NoteOFF message they just send a note on with no velocity.
Should have something to post soon