pub struct SfzRegion<'a> {
pub lokey: u8,
pub hikey: u8,
pub lovel: u8,
pub hivel: u8,
pub pitch_keycenter: u8,
pub tune_cents: i32,
pub volume_db: f32,
pub sample_ref: &'a str,
}Expand description
One key/velocity-mapped region: a rectangle in (note, velocity) space plus playback params.
sample_ref borrows the relative sample path out of the parsed text; it is NOT loaded
here (Qualia ships no content). All ranges are inclusive.
Fields§
§lokey: u8Lowest MIDI note this region responds to (inclusive).
hikey: u8Highest MIDI note this region responds to (inclusive).
lovel: u8Lowest velocity (inclusive).
hivel: u8Highest velocity (inclusive).
pitch_keycenter: u8The unity/root key the sample was recorded at.
tune_cents: i32Fine tune in cents (SFZ tune).
volume_db: f32Gain in decibels (SFZ volume).
sample_ref: &'a strRelative path to the sample file — a REFERENCE only, resolved by the caller.
Implementations§
Trait Implementations§
impl<'a> Copy for SfzRegion<'a>
impl<'a> StructuralPartialEq for SfzRegion<'a>
Auto Trait Implementations§
impl<'a> Freeze for SfzRegion<'a>
impl<'a> RefUnwindSafe for SfzRegion<'a>
impl<'a> Send for SfzRegion<'a>
impl<'a> Sync for SfzRegion<'a>
impl<'a> Unpin for SfzRegion<'a>
impl<'a> UnsafeUnpin for SfzRegion<'a>
impl<'a> UnwindSafe for SfzRegion<'a>
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