Craig wrote something about midi and OS X testing in 2005 to the squeak list.
I have a sqMacMIDI.c file in a working directory here.
with some smalltalk code/class
'From Squeak3.2 of 15 January 2002 [latest update: #4956] on 5 September 2002 at 2:33:33 pm'!
Object subclass: #MultiMIDIPort
instanceVariableNames: ''
classVariableNames: 'AccessSema InputData InputPort InputProcess '
poolDictionaries: ''
category: 'Sound-Scores'!
MultiMIDIPort class
instanceVariableNames: ''!
!MultiMIDIPort class methodsFor: 'as yet unclassified' stamp: 'jh 9/4/2002 15:41'!
bufferTimeStampFrom: aByteArray
"Return the timestamp from the given MIDI input buffer. Assume the given buffer is at least 4 bytes long."
^ ((aByteArray at: 1) bitShift: 24) +
((aByteArray at: 2) bitShift: 16) +
((aByteArray at: 3) bitShift: 8) +
(aByteArray at: 4)
! !
...
Not sure who 'jh' is