Using Midi Callback to receive and send ping

I have programmed my MEGA2560 to Hiduino firmware in an effort to fabricate an RS-232 <> Midi converter, instead of using Hairless MIDI<>Serial running in the backround, to use my fader controllers with Pro Tools.

In order for my audio program to send and receive midi data properly it needs to "sync" up to my controllers via a ping. Pro Tools sends midi message '90 00 00' and expects message '90 00 7F' sent back from the Arduino. Right now, Pro Tools is sending the ping to the arduino, I can see that happening on the Rx LED. So, I am having trouble understanding the appropriate way to receive that specific message (90 00 00) and send back (90 00 7F) out from the arduino. I have been looking at the Callback function to do this but not sure how to read the specific incoming message and sending out a specific message using this function. How would I configure the below code to properly make this happen?

include

MIDI_CREATE_DEFAULT_INSTANCE();

// -----------------------------------------------------------------------------

// This function will be automatically called when a NoteOn is received. // It must be a void-returning function with the correct parameters, // see documentation here: // http://arduinomidilib.fortyseveneffects.com/a00022.html

void handleNoteOn(byte channel, byte pitch, byte velocity) { // Do whatever you want when a note is pressed.

// Try to keep your callbacks short (no delays ect)
// otherwise it would slow down the loop() and have a bad impact
// on real-time performance.
}

void handleNoteOff(byte channel, byte pitch, byte velocity) { // Do something when the note is released. // Note that NoteOn messages with 0 velocity are interpreted as NoteOffs. }

// -----------------------------------------------------------------------------

void setup() { // Connect the handleNoteOn function to the library, // so it is called upon reception of a NoteOn. MIDI.setHandleNoteOn(handleNoteOn); // Put only the name of the function

// Do the same for NoteOffs
MIDI.setHandleNoteOff(handleNoteOff);

// Initiate MIDI communications, listen to all channels
MIDI.begin(MIDI_CHANNEL_OMNI);
}

void loop() { // Call MIDI.read the fastest you can for real-time performance. MIDI.read();

// There is no need to check if there are messages incoming
// if they are bound to a Callback function.
// The attached method will be called automatically
// when the corresponding message has been received.
}

in your handleNoteOn function you detect when you receive a channel 0, pitch 0 and velocity 0 note.

When you get a message like this you then send a note on message with channel 0, pitch 0 and velocity 0x7F.

That is it.