Exhaustive minimisation of the distances between keys in consecutive chords

optim_min_dist_exhaustive(key_sequence, error_on_big = TRUE)

Arguments

key_sequence

list of vector with key numbers, note that they can be greater than 12

error_on_big

stop if more than 100,000 combinations of inversions must be checked