pub struct ConsecutiveOptions {
pub skip_rests: bool,
pub skip_chords: bool,
pub skip_unisons: bool,
pub skip_octaves: bool,
pub skip_gaps: bool,
pub get_overlaps: bool,
pub no_none: bool,
}Expand description
Which notes Stream::find_consecutive_notes passes over, and where it
marks a break: music21’s keyword arguments to findConsecutiveNotes.
Every option is off by default.
Fields§
§skip_rests: boolWhether a rest is passed over rather than breaking the line:
skipRests.
skip_chords: boolWhether a chord breaks the line rather than joining it:
skipChords.
skip_unisons: boolWhether a note sounding the pitch of the note before, or a chord
sounding the pitches of the chord before, is passed over:
skipUnisons. Pitches are compared as sounded, so F# and G- are
one. What is passed over still sounds until it ends, so no break
follows it.
skip_octaves: boolWhether a note an octave or more from the note before, in the same
pitch class, is passed over too: skipOctaves, which implies
skip_unisons.
skip_gaps: boolWhether time with nothing in it is passed over rather than breaking
the line: skipGaps.
get_overlaps: boolWhether a note starting before the one before it ends is kept:
getOverlaps.
no_none: boolWhether the list leaves out its breaks: noNone.
Trait Implementations§
Source§impl Clone for ConsecutiveOptions
impl Clone for ConsecutiveOptions
impl Copy for ConsecutiveOptions
Source§impl Debug for ConsecutiveOptions
impl Debug for ConsecutiveOptions
Source§impl Default for ConsecutiveOptions
impl Default for ConsecutiveOptions
impl Eq for ConsecutiveOptions
Source§impl PartialEq for ConsecutiveOptions
impl PartialEq for ConsecutiveOptions
impl StructuralPartialEq for ConsecutiveOptions
Auto Trait Implementations§
impl Freeze for ConsecutiveOptions
impl RefUnwindSafe for ConsecutiveOptions
impl Send for ConsecutiveOptions
impl Sync for ConsecutiveOptions
impl Unpin for ConsecutiveOptions
impl UnsafeUnpin for ConsecutiveOptions
impl UnwindSafe for ConsecutiveOptions
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
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> ⓘ
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> ⓘ
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