Skip to main content

probability_based_on_changes

Function probability_based_on_changes 

Source
pub fn probability_based_on_changes(own: &str, other: &str) -> FloatType
Expand description

How likely other was misread as own, from the steps that turn the one into the other: music21’s getProbabilityBasedOnChanges. Each equal note is PROBABILITY_ON_EQUALITY, each one missed PROBABILITY_ON_OMISSION, each one added PROBABILITY_ON_ADDITION, and a stretch replaced is probability_on_substitute.