; MIDI PacketPresenter Definition File ; This file defines the transfers to a MIDI device ; over an ASYNC bus running at 31.25Kbaud N, 8, 1 ; [Protocol] name = MIDIBus bytewise [DEBUG] ;DebugOn ; Uncomment this to turn on Debug Packets [Packet] [Start] type = value value = 80h ; command mask = 80h ; Look at the high bit [End] type = value value = 80h ; command mask = 80h ; Look at the high bit exclude ; Keep this data for next packet [Decode] [Fields] Fields Command.4=8h.$Note Off, Channel.4.h, Key.8.d, ReleaseVelocity.8.d Fields Command.4=9h.$Note On, Channel.4.h, Key.8.d, AttackVelocity.8.d Fields Command.4=Ah.$AfterTouch, Channel.4.h, Key.8.d, Pressure.8.d Fields Command.4=Bh.$Control Change, Channel.4.h, Controller.8.d, Data.8.d Fields Command.4=Ch.$Patch Change, Channel.4.h, Instrument.8.d Fields Command.4=Dh.$Channel Pressure, Channel.4.h, Pressure.8.d Fields Command.4=Eh.$Pitch Bend, Channel.4.h, PitchLow.8.d, PitchHigh.8.d Fields Command.4=Fh.$System, Channel.4.h, Data.N.h Fields UnknownCommand.N.h ; Catchall to output undecoded commands