9d. Beat grids: songs that carry no tempo
For Pompas to line two songs up, it needs to know each one's tempo, where its bars start, and its key. Most songs say so. This section is about the ones that don't: how Pompas works it out, and how you tell it.
9d.1 Where a song's grid comes from#
Works now
Know whose word Pompas takes about a song's tempo.
What happens: Pompas keeps one grid for each song: its tempo, where its first bar starts, how many beats a bar has, and its key. A grid comes from one of four places. In order of trust, the last two are the most trusted:
| From | What it is |
|---|---|
| The song's own details | A MIDI file's tempo, time signature and key. A band song's tempo and key. The table of a corpus recording. The first bar starts at the start |
| An estimate | Pompas's guess, when the song has no details (9d.2, 9d.3) |
| Your taps | You tapped the beat (9d.4) |
| Your nudges | You moved the grid (9d.5) |
Good to know:
- A grid you made is never overwritten by an estimate. Your word beats Pompas's guess, and the guess beats the song's own details.
- A grid belongs to the song, so you only tap a song once.
See also: 9c.2
9d.2 Pompas guesses the tempo of a recording#
Works now
Play a recording that has no tempo in it, and have it line up anyway.
What happens: when a lane is playing a recording with no tempo, your browser listens to it and works out the tempo and where the bars start. It looks for the strongest repeating beat between 70 and 180 BPM, and takes the strongest position in it as the downbeat. It also guesses the key from the notes it can find. It then tells Pompas what it found, once.
Good to know:
- It is a guess. If it is wrong, tap the beat (9d.4).
- The sound stays in your browser. Only the tempo, the downbeat and the key are sent.
9d.3 Pompas guesses the key of a MIDI file#
Works now
Know a MIDI song's key when it doesn't say.
What happens: when a MIDI file has no key, Pompas works it out from its notes. It tries once, and remembers the answer. A file whose key it can't tell is not looked at again while Pompas is running.
See also: Follow the key of the lane above (9c.7)
9d.4 Tap the beat#
Works now
Tell Pompas the tempo of a song by tapping along.
| On | Do this |
|---|---|
| Computer | Choose the lane as the target. With the song playing on it, press TAP on each beat, four times or more |
What happens: when you stop tapping for a moment, Pompas takes the middle interval between your taps as the tempo, and your first tap as a downbeat. The button counts your taps as you go: "TAP 3". The tempo must be between 30 and 300 BPM.
Good to know:
- Fewer than four taps do nothing, and Pompas says so.
- The target lane must have a song playing: you tap against what you hear. A tap on a lane with nothing playing is refused.
- A grid you tap is yours (9d.1), and stays until you change it.
See also: 9d.5
9d.5 Nudge the grid#
Works now
Fix a grid that is a little off.
| On | Do this |
|---|---|
| Computer | Choose the lane as the target, and press −10ms, +10ms, −BEAT, +BEAT, ½× or 2× |
What happens: each button changes the grid the way it says: the first bar moves ten milliseconds earlier or later, or a whole beat earlier or later, or the tempo halves or doubles. A grid you nudge is yours (9d.1).
Good to know: use ½× or 2× when Pompas has found twice or half the tempo you hear.
See also: 9d.4
9d.6 What a grid will take#
Works now
Know the limits, and what happens past them.
What happens: a grid's tempo runs from 30 to 300 BPM, and its bars have 1 to 16 beats. A nudge is at most 2 seconds or 16 whole beats, and a tempo change is ½ or 2. A number outside these is refused, and the grid you had stays as it was.
Good to know: a first bar placed far into the song is folded back into the first bar: bar lines repeat, so only where the bar starts matters.