Skip to main content

score_similarity

Function score_similarity 

Source
pub fn score_similarity(
    index: &[(String, Vec<Segments>)],
    minimum_length: usize,
    include_reverse: bool,
) -> Vec<SegmentSimilarity>
Expand description

Every segment of an index of named scores at least minimum_length characters long, compared with every such segment of each score after its own: music21’s scoreSimilarity, by difflib. A score’s segments are not compared with each other, as music21 compares none. With include_reverse, each comparison comes again with its two segments the other way round.