pub struct ReductionOptions {
pub maximum_number_of_chords: usize,
pub closed_position: bool,
pub allowable_chords: Vec<Chord>,
pub forbidden_chords: Vec<Chord>,
}Expand description
What a reduction is asked for: music21’s arguments to ChordReducer.run.
Fields§
§maximum_number_of_chords: usizeHow many chords a measure may keep: music21’s
maximumNumberOfChords, three by default.
closed_position: boolWhether every chord is written in closed position in the fourth
octave afterwards: music21’s closedPosition.
allowable_chords: Vec<Chord>Chords whose interval classes count as consonant however they
sound: music21’s allowableChords.
forbidden_chords: Vec<Chord>Chords whose interval classes count as dissonant however they
sound: music21’s forbiddenChords.
Trait Implementations§
Source§impl Clone for ReductionOptions
impl Clone for ReductionOptions
Source§impl Debug for ReductionOptions
impl Debug for ReductionOptions
Auto Trait Implementations§
impl Freeze for ReductionOptions
impl RefUnwindSafe for ReductionOptions
impl Send for ReductionOptions
impl Sync for ReductionOptions
impl Unpin for ReductionOptions
impl UnsafeUnpin for ReductionOptions
impl UnwindSafe for ReductionOptions
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