Skip to main content

Media Sync Editor

since 1.6.0

This guide is about the Media Sync Editor we provide as part of our Playground.

To use alphaTab together with external media like audio or video backing tracks, it is often needed to somehow synchronize the two parties due to inconsistencies. It is rather rare that the music sheet and the used backing track 100% align in timing. There might be intros, outros slight time differences which need to be accommodated for.

The Media Sync Editor provides an online editor for exactly this task. You can load your music sheet and your backing track. The editor then offers features to eliminate potential differences of the two.

Before we go into the details, first an overview on the general features and recommendations.

Overview

(1) Media Sync Editor

The Media Sync Editor can be accessed on the bottom right side of the playground. When clicking on the button the editor toggles. Closing the editor will reset the editor but most relevant information is generally remembered within the playground. Re-Opening the editor after closing should show again the correct details, but aspects like zoom or undo/redo are reset.

Synchronizing Songs​

The more complex the song, the more time is needed for synchronizing it properly. But assuming that your music notation and your audio should generally match the effort of synchronizing can be reduced drastically if done correctly.

The first two most important steps are applied by the editor when you load an audio file:

  1. Create Sync Points according to the audio start and end
  2. Create Sync Points for all tempo changes and place them according to the played speed.

If the music notation and audio match, you typically do not need any more sync points than these to get already a decent result. If there are some further inaccuracies they might need correction. Typical problems and solutions are:


Problem: In live recordings when the band improvises. In this case obviously the music notation might not match if they decide to stretch the solo or repeat a chorus.

Solution 1: Best would be to adjust the music sheet to match again the actually played parts.

Solution 2: Pick any bar(s) and make them artificially slower/faster to pick up the right spot when the music sheet matches again. e.g. you might use a time signature marker to have the bar mostly shown correct, and then stretch this bar as long as needed until the band continues normally.


Problem: There are instruction parts where a teacher might explain something inbetween.

Solution 1: If you manually control the external media synchronization (via IExternalMediaHandler) you could adjust the time reported to alphaTab so that it quasi stops playing and moving the cursor.

Solution 2: Add an empty bar in the song for the time of this explanation and then stretch this part accordingly with sync points.

Solution 3: Stretch an existing bar by using the time signature markers.


Problem: The audio is from a cover which is not played accurately and there are slips in tempos. This can be on purpose for artistic purposes (e.g. swing style or improvisation) or accidentally.

Solution: First add bar markers before and after the affected bar. Then additionally place time signature markers according to the real playback.


Generally it is discouraged to add too many markers (e.g. for every bar). It's unlikely that the tempo changes constantly and needs adjustment. Rather pick a range where you expect the tempo to be roughtly equal, mark it with two sync points and place them accordingly.

The general recommendation to place markers correctly is:

  1. Seek the player to some bars before the spot where the marker should roughly be. This can be done by clicking at the right spot in the music sheet or in the wave form.
  2. Start the playback but rather ignore what you see on the cursor and music sheet. Listen closely and watch the playback cursor in the waveform.
  3. When the right note/chord is played remember the position on screen.
  4. Move the sync point marker to the spot.
  5. Repeat the playback again and check if the spot matches. If required zoom in and tweak the precise position a bit.
  6. Seek the player back to the previous sync point and let the song play until your new sync point.
  7. Check if the cursor and audio now match up.

Repeat this for all markers until things match up. Then continue with any fine-tuning on time signature marker level if required.

tip

You can change the playback speed in the Settings panel if songs are too fast.