Hiyve Components - v1.0.0
    Preparing search index...

    Function estimateTakeAlignment

    • 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.

      Parameters

      Returns TakeAlignment | null

      The alignment, or null when the take has no note-ons or no audio attack could be paired with one