pub struct ContiguousSegmentSearcher {
pub repetitions: Repetitions,
pub include_chords: bool,
pub trim_to_shortest_length_fast: bool,
}Expand description
Finds every run of a stream’s notes and chords that is a segment of a
given length, part by part: music21’s ContiguousSegmentSearcher.
Fields§
§repetitions: RepetitionsHow repeated pitch classes are read.
include_chords: boolWhether chords may be in a segment; where not, a chord breaks one.
trim_to_shortest_length_fast: boolWith Repetitions::IgnoreAll, whether a run’s first note is let go
as soon as it makes one segment: music21’s trimToShortestLengthFast.
Implementations§
Source§impl ContiguousSegmentSearcher
impl ContiguousSegmentSearcher
Sourcepub fn new(repetitions: Repetitions, include_chords: bool) -> Self
pub fn new(repetitions: Repetitions, include_chords: bool) -> Self
A searcher reading repetitions so, chords included or not.
Trait Implementations§
Source§impl Clone for ContiguousSegmentSearcher
impl Clone for ContiguousSegmentSearcher
impl Copy for ContiguousSegmentSearcher
Source§impl Debug for ContiguousSegmentSearcher
impl Debug for ContiguousSegmentSearcher
Auto Trait Implementations§
impl Freeze for ContiguousSegmentSearcher
impl RefUnwindSafe for ContiguousSegmentSearcher
impl Send for ContiguousSegmentSearcher
impl Sync for ContiguousSegmentSearcher
impl Unpin for ContiguousSegmentSearcher
impl UnsafeUnpin for ContiguousSegmentSearcher
impl UnwindSafe for ContiguousSegmentSearcher
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