pub struct MpeExpression { /* private fields */ }Expand description
Per-member-channel MPE expression table.
Implementations§
Source§impl MpeExpression
impl MpeExpression
Sourcepub fn new() -> Self
pub fn new() -> Self
A table with every channel at ChannelExpr::NEUTRAL.
Sourcepub fn set_pitch_bend_raw(
&mut self,
channel: u8,
raw14: u16,
) -> Result<(), AudioError>
pub fn set_pitch_bend_raw( &mut self, channel: u8, raw14: u16, ) -> Result<(), AudioError>
Set pitch-bend from the raw 14-bit MIDI value (0..=16383, center 8192).
Errors if channel > 15 or raw14 > 16383.
Sourcepub fn set_pitch_bend_bytes(
&mut self,
channel: u8,
lsb: u8,
msb: u8,
) -> Result<(), AudioError>
pub fn set_pitch_bend_bytes( &mut self, channel: u8, lsb: u8, msb: u8, ) -> Result<(), AudioError>
Set pitch-bend from two 7-bit MIDI data bytes [LSB, MSB].
Sourcepub fn set_pressure(&mut self, channel: u8, value: u8) -> Result<(), AudioError>
pub fn set_pressure(&mut self, channel: u8, value: u8) -> Result<(), AudioError>
Set channel pressure (0..=127).
Sourcepub fn set_timbre_cc(
&mut self,
channel: u8,
cc: u8,
value: u8,
) -> Result<(), AudioError>
pub fn set_timbre_cc( &mut self, channel: u8, cc: u8, value: u8, ) -> Result<(), AudioError>
Set timbre from a CC message. Only CC 74 updates timbre; other CCs are
ignored (returns Ok). Errors on an out-of-range channel or value.
Sourcepub fn get(&self, channel: u8) -> Result<ChannelExpr, AudioError>
pub fn get(&self, channel: u8) -> Result<ChannelExpr, AudioError>
Current expression state of channel.
Trait Implementations§
Source§impl Clone for MpeExpression
impl Clone for MpeExpression
Source§impl Debug for MpeExpression
impl Debug for MpeExpression
Auto Trait Implementations§
impl Freeze for MpeExpression
impl RefUnwindSafe for MpeExpression
impl Send for MpeExpression
impl Sync for MpeExpression
impl Unpin for MpeExpression
impl UnsafeUnpin for MpeExpression
impl UnwindSafe for MpeExpression
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