pub struct BridgeChannelState {
pub bank_msb: u8,
pub bank_lsb: u8,
pub program: u8,
pub volume: f64,
pub expression: f64,
pub pan: f32,
pub sustain: bool,
pub pitch_bend_cents: f64,
}Expand description
Per-channel controller state tracked by the bridge.
Fields§
§bank_msb: u8Bank-select MSB.
bank_lsb: u8Bank-select LSB.
program: u8Selected program number.
volume: f64Channel volume in 0.0..=1.0.
expression: f64Expression level in 0.0..=1.0.
pan: f32Stereo pan in -1.0..=1.0.
sustain: boolWhether the sustain pedal is held.
pitch_bend_cents: f64Current pitch-bend offset, in cents.
Trait Implementations§
Source§impl Clone for BridgeChannelState
impl Clone for BridgeChannelState
Source§fn clone(&self) -> BridgeChannelState
fn clone(&self) -> BridgeChannelState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BridgeChannelState
impl Debug for BridgeChannelState
Source§impl Default for BridgeChannelState
impl Default for BridgeChannelState
Source§impl PartialEq for BridgeChannelState
impl PartialEq for BridgeChannelState
impl StructuralPartialEq for BridgeChannelState
Auto Trait Implementations§
impl Freeze for BridgeChannelState
impl RefUnwindSafe for BridgeChannelState
impl Send for BridgeChannelState
impl Sync for BridgeChannelState
impl Unpin for BridgeChannelState
impl UnsafeUnpin for BridgeChannelState
impl UnwindSafe for BridgeChannelState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more