pub struct Key { /* private fields */ }Expand description
Mapping data relating to notes played
Implementations§
Source§impl Key
 
impl Key
Sourcepub fn with_track(self, track: impl Into<Option<f64>>) -> Self
 
pub fn with_track(self, track: impl Into<Option<f64>>) -> Self
Set the keytrack amount (0 to 2)
Sourcepub fn with_tune(self, tune: impl Into<Option<f64>>) -> Self
 
pub fn with_tune(self, tune: impl Into<Option<f64>>) -> Self
Set the fine tuning for the sample
Sourcepub fn with_high(self, high: impl Into<Option<u8>>) -> Self
 
pub fn with_high(self, high: impl Into<Option<u8>>) -> Self
Set the upper end of the pitch range
Sourcepub fn with_low_fade(self, low_fade: impl Into<Option<u8>>) -> Self
 
pub fn with_low_fade(self, low_fade: impl Into<Option<u8>>) -> Self
Set the length of the lower fade region
Sourcepub fn with_high_fade(self, high_fade: impl Into<Option<u8>>) -> Self
 
pub fn with_high_fade(self, high_fade: impl Into<Option<u8>>) -> Self
Set the length of the upper fade region
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Key
 
impl<'de> Deserialize<'de> for Key
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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