pub struct PortConfig { /* private fields */ }
Expand description
Represents the Port Config
menu in Midi Config
menu.
Implementations§
source§impl PortConfig
impl PortConfig
sourcepub fn set_output_port_function(
&mut self,
output_port_function: MidiPortFunction
)
pub fn set_output_port_function( &mut self, output_port_function: MidiPortFunction )
Sets the function of the MIDI out port.
sourcepub fn set_thru_port_function(&mut self, thru_port_function: MidiPortFunction)
pub fn set_thru_port_function(&mut self, thru_port_function: MidiPortFunction)
Sets the function of the MIDI thru port.
sourcepub fn set_input_transport(&mut self, input_from: MidiTransportLayer)
pub fn set_input_transport(&mut self, input_from: MidiTransportLayer)
Sets the transport layer to receive MIDI from.
sourcepub fn set_output_transport(&mut self, output_to: MidiTransportLayer)
pub fn set_output_transport(&mut self, output_to: MidiTransportLayer)
Sets the transport layer to send MIDI to.
sourcepub fn set_parameter_output_type(&mut self, param_output: MidiParameterOutput)
pub fn set_parameter_output_type(&mut self, param_output: MidiParameterOutput)
Sets the MIDI parameter output type.
sourcepub fn set_receive_notes(&mut self, receive_notes: bool)
pub fn set_receive_notes(&mut self, receive_notes: bool)
Turns note messages receive on or off.
sourcepub fn set_receive_cc_nrpn(&mut self, receive_cc_nrpn: bool)
pub fn set_receive_cc_nrpn(&mut self, receive_cc_nrpn: bool)
Turns CC and NRPN messages receive on or off.
sourcepub fn set_pad_parameter_destination(
&mut self,
pad_parameter_destination: ParameterDestination
)
pub fn set_pad_parameter_destination( &mut self, pad_parameter_destination: ParameterDestination )
Sets the destination of parameters produced by pressing pads.
sourcepub fn set_pressure_parameter_destination(
&mut self,
pressure_parameter_destination: ParameterDestination
)
pub fn set_pressure_parameter_destination( &mut self, pressure_parameter_destination: ParameterDestination )
Sets the destination of parameters produced by pressure amount when pressing pads.
sourcepub fn set_encoder_parameter_destination(
&mut self,
encoder_parameter_destination: ParameterDestination
)
pub fn set_encoder_parameter_destination( &mut self, encoder_parameter_destination: ParameterDestination )
Sets the destination of parameters produced by turning encoders.
sourcepub fn set_mute_parameter_destination(
&mut self,
mute_parameter_destination: ParameterDestination
)
pub fn set_mute_parameter_destination( &mut self, mute_parameter_destination: ParameterDestination )
Sets the destination of parameters produced by muting tracks.
sourcepub fn set_ports_output_channel(
&mut self,
ports_output_channel: MidiPortsOutputChannel
)
pub fn set_ports_output_channel( &mut self, ports_output_channel: MidiPortsOutputChannel )
Sets the channel of the MIDI ports output.
AUTO CH
means the channel is determined by the set auto channel.
TRK_CH
means the channel is determined by the track channel.
sourcepub const fn output_port_function(&self) -> MidiPortFunction
pub const fn output_port_function(&self) -> MidiPortFunction
Returns the function of the MIDI out port.
sourcepub const fn thru_port_function(&self) -> MidiPortFunction
pub const fn thru_port_function(&self) -> MidiPortFunction
Returns the function of the MIDI thru port.
sourcepub const fn input_transport(&self) -> MidiTransportLayer
pub const fn input_transport(&self) -> MidiTransportLayer
Returns the transport layer to receive MIDI from.
sourcepub const fn output_transport(&self) -> MidiTransportLayer
pub const fn output_transport(&self) -> MidiTransportLayer
Returns the transport layer to send MIDI to.
sourcepub const fn parameter_output_type(&self) -> MidiParameterOutput
pub const fn parameter_output_type(&self) -> MidiParameterOutput
Returns the MIDI parameter output type.
sourcepub const fn receive_notes(&self) -> bool
pub const fn receive_notes(&self) -> bool
Returns true
if note messages receive is on.
sourcepub const fn receive_cc_nrpn(&self) -> bool
pub const fn receive_cc_nrpn(&self) -> bool
Returns true
if CC and NRPN messages receive is on.
sourcepub const fn pad_parameter_destination(&self) -> ParameterDestination
pub const fn pad_parameter_destination(&self) -> ParameterDestination
Returns the destination of parameters produced by pressing pads.
sourcepub const fn pressure_parameter_destination(&self) -> ParameterDestination
pub const fn pressure_parameter_destination(&self) -> ParameterDestination
Returns the destination of parameters produced by pressure amount when pressing pads.
sourcepub const fn encoder_parameter_destination(&self) -> ParameterDestination
pub const fn encoder_parameter_destination(&self) -> ParameterDestination
Returns the destination of parameters produced by turning encoders.
sourcepub const fn mute_parameter_destination(&self) -> ParameterDestination
pub const fn mute_parameter_destination(&self) -> ParameterDestination
Returns the destination of parameters produced by muting tracks.
sourcepub const fn ports_output_channel(&self) -> MidiPortsOutputChannel
pub const fn ports_output_channel(&self) -> MidiPortsOutputChannel
Returns the channel of the MIDI ports output.
sourcepub const fn turbo_speed(&self) -> bool
pub const fn turbo_speed(&self) -> bool
Returns true
if turbo speed is on.
Note
I believe this parameter is TURBO SPEED
since it is the only one left in the menu when reverse engineering this type.
But since I can not enable it without connecting a turbo speed capable MIDI interface I can not be sure.
If you have a turbo speed capable MIDI interface and can confirm this please open an issue on the GitHub repository.
Trait Implementations§
source§impl Clone for PortConfig
impl Clone for PortConfig
source§fn clone(&self) -> PortConfig
fn clone(&self) -> PortConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PortConfig
impl Debug for PortConfig
source§impl Default for PortConfig
impl Default for PortConfig
source§impl<'de> Deserialize<'de> for PortConfig
impl<'de> Deserialize<'de> for PortConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Hash for PortConfig
impl Hash for PortConfig
source§impl Ord for PortConfig
impl Ord for PortConfig
source§fn cmp(&self, other: &PortConfig) -> Ordering
fn cmp(&self, other: &PortConfig) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PortConfig
impl PartialEq for PortConfig
source§fn eq(&self, other: &PortConfig) -> bool
fn eq(&self, other: &PortConfig) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PortConfig
impl PartialOrd for PortConfig
source§fn partial_cmp(&self, other: &PortConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &PortConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more