public IOSMidiInputPort(CMidiPort port, MidiEndpoint endpoint, MidiPortDetails details) : base(details) { this.port = port; this.endpoint = endpoint; endpoint.MessageReceived += (sender, e) => MessageReceived( sender, new MidiMessageEventArgs(e.Packets.Select(p => new MidiMessage(new ArraySegment <byte> (GetBytes(p)), p.TimeStamp)))); port.ConnectSource(endpoint); }
public IOSMidiOutputPort(CMidiPort port, MidiEndpoint endpoint, MidiPortDetails details) : base(details) { this.port = port; this.endpoint = endpoint; }