Skip to main content

populate_distance_matrix

Function populate_distance_matrix 

Source
pub fn populate_distance_matrix(
    target: &[NoteHash],
    source: &[NoteHash],
) -> Result<Vec<Vec<i64>>>
Expand description

A matrix set up and filled in one: music21’s setupDistanceMatrix and populateDistanceMatrix together.

§Errors

Either side with nothing hashed.