Audio-to-audio and audio-to-midi alignment