Skip to main content

reduce_measure_to_n_chords

Function reduce_measure_to_n_chords 

Source
pub fn reduce_measure_to_n_chords(
    measure: &Stream,
    maximum: usize,
    trim_below: FloatType,
    meter: Option<TimeSignature>,
    algorithm: ChordWeight,
) -> Result<Stream>
Expand description

A measure reduced to the few chords weighing most in it: music21’s reduceMeasureToNChords, built on reduced_measure_places.

meter is the meter in force where the measure stands, which the beat strengths are read in; without one every beat is as strong as every other, as music21 reads a measure standing in no meter.

§Errors

A length no duration can have.