pub struct GeneratedScale {
pub ordinal: usize,
pub lower: Tetrachord,
pub upper: Tetrachord,
pub join: TetrachordJoin,
pub intervals: Vec<u8>,
pub mask: PitchClassMask,
pub third_stack: Option<ThirdStackSignature>,
pub fixture: Option<char>,
}Expand description
One generated scale candidate with its source choices and derived evidence.
Fields§
§ordinal: usizeStable zero-based ordinal in emission order.
lower: TetrachordLower tetrachord.
upper: TetrachordUpper tetrachord.
join: TetrachordJoinJoin between the tetrachords.
intervals: Vec<u8>Ascending semitone offsets from the scale root.
mask: PitchClassMaskPitch-class set identity for the scale.
third_stack: Option<ThirdStackSignature>Tertian decoding from the scale, when every adjacent third is major or minor.
fixture: Option<char>Matching catalog fixture name, if this is one of the preserved w/x/y/z scales.
Trait Implementations§
Source§impl Clone for GeneratedScale
impl Clone for GeneratedScale
Source§fn clone(&self) -> GeneratedScale
fn clone(&self) -> GeneratedScale
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 GeneratedScale
impl Debug for GeneratedScale
impl Eq for GeneratedScale
Source§impl PartialEq for GeneratedScale
impl PartialEq for GeneratedScale
impl StructuralPartialEq for GeneratedScale
Auto Trait Implementations§
impl Freeze for GeneratedScale
impl RefUnwindSafe for GeneratedScale
impl Send for GeneratedScale
impl Sync for GeneratedScale
impl Unpin for GeneratedScale
impl UnsafeUnpin for GeneratedScale
impl UnwindSafe for GeneratedScale
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