Skip to content

measureScore()

Measure a list of scores against a list of Zipf metrics.

measureScore(scores, metrics)

Runs every metric on every score and collects the results.

Parameters

measureScore(scores, metrics, quantum=0.25)
Parameter Type Default Description
scores list[Score] required The scores to measure.
metrics list[Metric] required The Zipf metrics to apply.
quantum float 0.25 The rhythmic grid to measure on, in beats, where 0.25 is a sixteenth note.

Returns

return allMeasurements

Value Type Description
allMeasurements list[list] One row per score. Each row holds the score's measurement for each metric, followed by the score's title.