Skip to main content

SerialSpineReport

Struct SerialSpineReport 

Source
pub struct SerialSpineReport {
    pub realizer_id: RealizerId,
    pub kind: SerialSpineKind,
    pub scale: PlayerScale,
    pub entries: Vec<SerialSpineEntry>,
    pub collisions: Vec<SerialSpineCollision>,
    pub repeated_degrees: Vec<SerialRepeatedDegree>,
    pub out_of_mode: Vec<SerialEventId>,
    pub pitch_changes: Vec<SerialEventId>,
    pub aggregate_identity: ChromaticAggregateIdentity,
    pub ordinal_order: Vec<OrdinalRef>,
    pub sonance_context: Vec<SerialSonanceContext>,
}
Expand description

Complete inspectable serial-spine report attached to one realization.

Fields§

§realizer_id: RealizerId

Realizer that produced the report.

§kind: SerialSpineKind

Adaptation family used by the realizer.

§scale: PlayerScale

Effective modal or custom performance scale.

§entries: Vec<SerialSpineEntry>

One note-level entry in canonical note order.

§collisions: Vec<SerialSpineCollision>

Collisions recorded while landing the chromatic source.

§repeated_degrees: Vec<SerialRepeatedDegree>

Repeated modal degrees in canonical note order.

§out_of_mode: Vec<SerialEventId>

Notes that remained outside the scale after landing.

§pitch_changes: Vec<SerialEventId>

Notes whose pitch changed under landing.

§aggregate_identity: ChromaticAggregateIdentity

Aggregate identity report for source versus landed pitch classes.

§ordinal_order: Vec<OrdinalRef>

Canonical ordinal order retained by the landed adaptation.

§sonance_context: Vec<SerialSonanceContext>

Adjacent contextual sonance comparisons over landed windows.

Implementations§

Source§

impl SerialSpineReport

Source

pub fn modal_membership(&self) -> Vec<(SerialEventId, bool, Option<usize>)>

Returns the modal-membership view independently of other report facets.

Source

pub fn pitch_identity(&self) -> Vec<(SerialEventId, Pitch, Pitch, MapWitness)>

Returns the pitch-identity view independently of other report facets.

Source

pub fn chromatic_aggregate_identity(&self) -> &ChromaticAggregateIdentity

Returns the aggregate identity report independently of other report facets.

Source

pub fn ordinal_order(&self) -> &[OrdinalRef]

Returns the retained ordinal order independently of other report facets.

Source

pub fn sonance_context(&self) -> &[SerialSonanceContext]

Returns the contextual sonance view independently of other report facets.

Trait Implementations§

Source§

impl Clone for SerialSpineReport

Source§

fn clone(&self) -> SerialSpineReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SerialSpineReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SerialSpineReport

Source§

fn eq(&self, other: &SerialSpineReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SerialSpineReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RealizationService for T
where T: Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Returns a downcast hook for typed access.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.