private static MidiMessage BuildMessageFromConfiguration(HauptwerkConfiguration.MidiNote command) { return(new NoteMessage((ushort)command.Channel, (ushort)command.Note, true)); }
private void SendMessageAsConfigured(HauptwerkConfiguration.MidiNote command) { var message = BuildMessageFromConfiguration(command); midi.Send(message); }