pub struct Routing { /* private fields */ }
Expand description
Represents the routing menu.
Implementations§
source§impl Routing
impl Routing
sourcepub fn set_route_to_main_flags(
&mut self,
route_to_main_flags: u16
) -> Result<(), RytmError>
pub fn set_route_to_main_flags( &mut self, route_to_main_flags: u16 ) -> Result<(), RytmError>
Sets the routing flags for ROUTE TO MAIN
.
Range 0..=0b1111_1111_1111
Example
0
would route no tracks to main.0b000000000001
would route track 0 to main.0xFFF
would route all tracks to main.
sourcepub fn route_track_to_main(
&mut self,
track_index: usize
) -> Result<(), RytmError>
pub fn route_track_to_main( &mut self, track_index: usize ) -> Result<(), RytmError>
Routes a track to main.
Range 0..=11
sourcepub fn clear_routing_of_a_track_to_main(
&mut self,
track_index: usize
) -> Result<(), RytmError>
pub fn clear_routing_of_a_track_to_main( &mut self, track_index: usize ) -> Result<(), RytmError>
Clears the routing of a track to main.
Range 0..=11
sourcepub fn set_send_to_fx_flags(
&mut self,
send_to_fx_flags: u16
) -> Result<(), RytmError>
pub fn set_send_to_fx_flags( &mut self, send_to_fx_flags: u16 ) -> Result<(), RytmError>
Sets the routing flags for SEND TO FX
.
Range 0..=0b1111_1111_1111
Example
0
would send no tracks to FX.0b000000000001
would send track 0 to FX.0xFFF
would send all tracks to FX.
sourcepub fn send_track_to_fx(&mut self, track_index: usize) -> Result<(), RytmError>
pub fn send_track_to_fx(&mut self, track_index: usize) -> Result<(), RytmError>
Sends a track to FX.
Range 0..=11
sourcepub fn clear_sending_of_a_track_to_fx(
&mut self,
track_index: usize
) -> Result<(), RytmError>
pub fn clear_sending_of_a_track_to_fx( &mut self, track_index: usize ) -> Result<(), RytmError>
Clears the sending of a track to FX.
Range 0..=11
sourcepub fn set_usb_in(&mut self, usb_in: RoutingUsbInOptions)
pub fn set_usb_in(&mut self, usb_in: RoutingUsbInOptions)
Sets the USB IN
routing.
sourcepub fn set_usb_out(&mut self, usb_out: RoutingUsbOutOptions)
pub fn set_usb_out(&mut self, usb_out: RoutingUsbOutOptions)
Sets the USB OUT
routing.
sourcepub fn set_usb_to_main_db(&mut self, usb_to_main_db: RoutingUsbToMainDb)
pub fn set_usb_to_main_db(&mut self, usb_to_main_db: RoutingUsbToMainDb)
Sets the USB TO MAIN [dB]
routing.
sourcepub const fn raw_route_to_main_flags(&self) -> u16
pub const fn raw_route_to_main_flags(&self) -> u16
Returns the raw ROUTE TO MAIN
flags.
sourcepub fn track_indexes_routed_to_main(&self) -> Vec<usize>
pub fn track_indexes_routed_to_main(&self) -> Vec<usize>
Returns the track indexes routed to main.
sourcepub fn track_indexes_not_routed_to_main(&self) -> Vec<usize>
pub fn track_indexes_not_routed_to_main(&self) -> Vec<usize>
Returns the track indexes not routed to main.
sourcepub const fn is_track_routed_to_main(&self, track_index: usize) -> bool
pub const fn is_track_routed_to_main(&self, track_index: usize) -> bool
Returns true
if a track is routed to main.
sourcepub const fn raw_send_to_fx_flags(&self) -> u16
pub const fn raw_send_to_fx_flags(&self) -> u16
Returns the raw SEND TO FX
flags.
sourcepub fn track_indexes_sent_to_fx(&self) -> Vec<usize>
pub fn track_indexes_sent_to_fx(&self) -> Vec<usize>
Returns the track indexes sent to FX.
sourcepub fn track_indexes_not_sent_to_fx(&self) -> Vec<usize>
pub fn track_indexes_not_sent_to_fx(&self) -> Vec<usize>
Returns the track indexes not sent to FX.
sourcepub const fn is_track_sent_to_fx(&self, track_index: usize) -> bool
pub const fn is_track_sent_to_fx(&self, track_index: usize) -> bool
Returns true
if a track is sent to FX.
sourcepub const fn usb_in(&self) -> RoutingUsbInOptions
pub const fn usb_in(&self) -> RoutingUsbInOptions
Returns the USB IN
routing configuration.
sourcepub const fn usb_out(&self) -> RoutingUsbOutOptions
pub const fn usb_out(&self) -> RoutingUsbOutOptions
Returns the USB OUT
routing configuration.
sourcepub const fn usb_to_main_db(&self) -> RoutingUsbToMainDb
pub const fn usb_to_main_db(&self) -> RoutingUsbToMainDb
Returns the USB TO MAIN [dB]
value.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Routing
impl<'de> Deserialize<'de> for Routing
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 Ord for Routing
impl Ord for Routing
source§impl PartialEq for Routing
impl PartialEq for Routing
source§impl PartialOrd for Routing
impl PartialOrd for Routing
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