measureMidi()
Measure a list of MIDI files against a list of Zipf metrics.
measureMidi(files, metrics)
Reads each MIDI file into a score, then measures the scores like measureScore().
Parameters
measureMidi(files, metrics, quantum=0.25)
| Parameter | Type | Default | Description |
|---|---|---|---|
files |
list[str] |
required | The paths of the MIDI files 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 file. Each row holds the file's measurement for each metric, followed by the score's title. |