Struct coremidi::OutputPort [−][src]
pub struct OutputPort { /* fields omitted */ }
Expand description
An output MIDI port owned by a client.
A simple example to create an output port and send a MIDI event:
use coremidi::{Client, Destination, EventBuffer, Protocol};
let client = Client::new("example-client").unwrap();
let output_port = client.output_port("example-port").unwrap();
let destination = Destination::from_index(0).unwrap();
let events = EventBuffer::new(Protocol::Midi10).with_packet(0, &[0x2090407f]);
output_port.send(&destination, &events).unwrap();
Implementations
Send a list of packets to a destination. See MIDISendEventList See MIDISend.