MessageHook typedef

MessageHook = void Function(Synthesizer synthesizer, int channel, int command, int data1, int data2)
Represents the method that is called each time a MIDI message is processed during playback. The synthesizer used by the sequencer. The channel to which the message will be sent. The type of the message. The first data part of the message. The second data part of the message.

Implementation

typedef MessageHook = void Function(
  Synthesizer synthesizer,
  int channel,
  int command,
  int data1,
  int data2,
);