Exemple #1
0
 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);
 }
Exemple #2
0
 public IOSMidiOutputPort(CMidiPort port, MidiEndpoint endpoint, MidiPortDetails details)
     : base(details)
 {
     this.port     = port;
     this.endpoint = endpoint;
 }