pub struct AccidentalDisplayOptions<'a> {
pub pitch_past: &'a [Pitch],
pub pitch_past_measure: &'a [Pitch],
pub other_simultaneous_pitches: &'a [Pitch],
pub altered_pitches: &'a [Pitch],
pub cautionary_pitch_class: bool,
pub cautionary_all: bool,
pub override_status: bool,
pub cautionary_not_immediate_repeat: bool,
pub last_note_was_tied: bool,
}Expand description
The context music21’s updateAccidentalDisplay reads: the pitches that
came before, in this measure and the previous one, the other pitches
sounding at the same time, the key signature’s altered pitches, and the
cautionary-accidental switches, with music21’s defaults.
Fields§
§pitch_past: &'a [Pitch]Pitches preceding this one in the same measure.
pitch_past_measure: &'a [Pitch]Pitches preceding this one in the previous measure.
other_simultaneous_pitches: &'a [Pitch]Other pitches in the same simultaneity.
altered_pitches: &'a [Pitch]The key signature’s altered pitches.
cautionary_pitch_class: boolWhether a past accidental in any octave calls for a cautionary one.
cautionary_all: boolWhether every accidental is shown.
override_status: boolWhether an already decided display_status is decided again.
cautionary_not_immediate_repeat: boolWhether an altered pitch shows its accidental again unless it immediately repeats.
last_note_was_tied: boolWhether this pitch follows a tie.
Trait Implementations§
Source§impl<'a> Clone for AccidentalDisplayOptions<'a>
impl<'a> Clone for AccidentalDisplayOptions<'a>
Source§fn clone(&self) -> AccidentalDisplayOptions<'a>
fn clone(&self) -> AccidentalDisplayOptions<'a>
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<'a> Debug for AccidentalDisplayOptions<'a>
impl<'a> Debug for AccidentalDisplayOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccidentalDisplayOptions<'a>
impl<'a> RefUnwindSafe for AccidentalDisplayOptions<'a>
impl<'a> Send for AccidentalDisplayOptions<'a>
impl<'a> Sync for AccidentalDisplayOptions<'a>
impl<'a> Unpin for AccidentalDisplayOptions<'a>
impl<'a> UnsafeUnpin for AccidentalDisplayOptions<'a>
impl<'a> UnwindSafe for AccidentalDisplayOptions<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more