pub fn measure_difference(own: &str, other: &str) -> FloatType
How unlike two rhythms are, as music21’s getMeasureDifference has it: one less their difflib likeness, except that the same rhythm is as unlike as can be, one.
getMeasureDifference
difflib