Struct rmididings::proc::Port [−][src]
pub struct Port(pub usize);
Expand description
Modify the port to a set value.
The argument is: port.
When calling [RMididings.config()
] the in_ports
and out_ports
are arrays that indicate which MIDI ports to create. The index in
these arrays are the port number (starting with index 0).
Examples
let modifier = Port(1); let mut evs = EventStream::from(NoteOnEvent(0,0,60,20)); modifier.run(&mut evs); assert_eq!(evs, NoteOnEvent(1,0,60,20));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Port
impl UnwindSafe for Port