Measure the offset between a take's MIDI timeline and its audio.
Every MIDI note-on is treated as a reference onset; attacks found in the
audio are the observations. The result's midiToAudioOffsetMs is what to
add to a MIDI event time to find its sound in the audio. One note gives a
calibration-note alignment; several give onset-match, which is more
robust because the offset is a median.
Measure the offset between a take's MIDI timeline and its audio.
Every MIDI note-on is treated as a reference onset; attacks found in the audio are the observations. The result's
midiToAudioOffsetMsis what to add to a MIDI event time to find its sound in the audio. One note gives acalibration-notealignment; several giveonset-match, which is more robust because the offset is a median.