pub struct ScaleInfo {
pub root: i8,
pub mask: u16,
pub name: [u8; 32],
pub name_len: u8,
}Expand description
Scale/key information from DAW.
Provides tonal context that plugins can use for scale-aware processing.
Fields§
§root: i8Root note pitch class (0=C, 1=C#, …, 11=B), -1 = invalid/unknown.
mask: u16Bitmask of scale degrees (12 bits for chromatic scale). Bit 0 = root, bit 1 = minor 2nd, bit 2 = major 2nd, etc.
name: [u8; 32]Scale name as UTF-8 (e.g., “Major”, “Dorian”, “Pentatonic”).
name_len: u8Actual length of name.
Implementations§
Trait Implementations§
impl Copy for ScaleInfo
Auto Trait Implementations§
impl Freeze for ScaleInfo
impl RefUnwindSafe for ScaleInfo
impl Send for ScaleInfo
impl Sync for ScaleInfo
impl Unpin for ScaleInfo
impl UnwindSafe for ScaleInfo
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