tempo and beat tracking - audiolabs - home · pdf filetempo and beat tracking ... another one...

94
Music Information Retrieval Meinard Müller, Christof Weiss Meisterklasse HfM Karlsruhe Tempo and Beat Tracking International Audio Laboratories Erlangen [email protected], [email protected]

Upload: lamtu

Post on 06-Feb-2018

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Music Information Retrieval

Meinard Müller, Christof Weiss

Meisterklasse HfM Karlsruhe

Tempo and Beat Tracking

International Audio Laboratories [email protected], [email protected]

Page 2: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Book: Fundamentals of Music Processing

Meinard MüllerFundamentals of Music ProcessingAudio, Analysis, Algorithms, Applications483 p., 249 illus., hardcoverISBN: 978-3-319-21944-8Springer, 2015

Accompanying website: www.music-processing.de

Page 3: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Book: Fundamentals of Music Processing

Meinard MüllerFundamentals of Music ProcessingAudio, Analysis, Algorithms, Applications483 p., 249 illus., hardcoverISBN: 978-3-319-21944-8Springer, 2015

Accompanying website: www.music-processing.de

Page 4: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Book: Fundamentals of Music Processing

Meinard MüllerFundamentals of Music ProcessingAudio, Analysis, Algorithms, Applications483 p., 249 illus., hardcoverISBN: 978-3-319-21944-8Springer, 2015

Accompanying website: www.music-processing.de

Page 5: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Chapter 6: Tempo and Beat Tracking

Tempo and beat are further fundamental properties of music. In Chapter 6, weintroduce the basic ideas on how to extract tempo-related information fromaudio recordings. In this scenario, a first challenge is to locate note onsetinformation—a task that requires methods for detecting changes in energy andspectral content. To derive tempo and beat information, note onset candidatesare then analyzed with regard to quasiperiodic patterns. This leads us to thestudy of general methods for local periodicity analysis of time series.

6.1 Onset Detection6.2 Tempo Analysis6.3 Beat and Pulse Tracking6.4 Further Notes

Page 6: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Basic beat tracking task:

Given an audio recording of a piece of music, determine the periodic sequence of beat positions.

“Tapping the foot when listening to music’’

Page 7: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Time (seconds)

Example: Queen – Another One Bites The Dust

Introduction

Page 8: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Example: Queen – Another One Bites The Dust

Introduction

Time (seconds)

Page 9: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Example: Happy Birthday to you

Pulse level: Measure

Page 10: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Example: Happy Birthday to you

Pulse level: Tactus (beat)

Page 11: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Example: Happy Birthday to you

Pulse level: Tatum (temporal atom)

Page 12: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Example: Chopin – Mazurka Op. 68-3

Pulse level: Quarter note

Tempo: ???

Introduction

Page 13: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Example: Chopin – Mazurka Op. 68-3

Pulse level: Quarter note

Tempo: 50-200 BPM

This image cannot currently be displayed.

Time (beats)

Tem

po (B

PM

)

50

200

Tempo curve

Introduction

Page 14: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Example: Borodin – String Quartet No. 2

Pulse level: Quarter note

Tempo: 120-140 BPM (roughly)

Beat tracker without any prior knowledge

Beat tracker with prior knowledge on rough tempo range

Page 15: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Introduction

Pulse level often unclear

Local/sudden tempo changes (e.g. rubato)

Vague information

(e.g., soft onsets, extracted onsets corrupt)

Sparse information

(often only note onsets are used)

Challenges in beat tracking

Page 16: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset detection Beat tracking Tempo estimation

Tasks

Introduction

Page 17: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset detection Beat tracking Tempo estimation

Tasks

Introduction

Page 18: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

periodphase

Onset detection Beat tracking Tempo estimation

Tasks

Introduction

Page 19: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempo := 60 / period

Beats per minute (BPM)

Onset detection Beat tracking Tempo estimation

Tasks

period

Introduction

Page 20: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection

Finding start times of perceptually relevant acoustic events in music signal

Onset is the time position where a note is played

Onset typically goes along with a change of the signal’s properties:– energy or loudness– pitch or harmony– timbre

Page 21: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection

[Bello et al., IEEE-TASLP 2005]

Finding start times of perceptually relevant acoustic events in music signal

Onset is the time position where a note is played

Onset typically goes along with a change of the signal’s properties:– energy or loudness– pitch or harmony– timbre

Page 22: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Steps

Time (seconds)

Onset Detection (Energy-Based)

Waveform

Page 23: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Time (seconds)

Squared waveform

Steps1. Amplitude squaring

Page 24: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Time (seconds)

Energy envelope

Steps1. Amplitude squaring2. Windowing

Page 25: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Capturing energy changes

Time (seconds)

Differentiated energy envelope

Steps1. Amplitude squaring2. Windowing3. Differentiation

Page 26: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Time (seconds)

Novelty curve

Steps1. Amplitude squaring2. Windowing3. Differentiation4. Half wave rectification

Only energy increases are relevant for note onsets

Page 27: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Time (seconds)

Steps1. Amplitude squaring2. Windowing3. Differentiation4. Half wave rectification5. Peak picking

Peak positions indicate note onset candidates

Page 28: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Energy envelope

Onset Detection (Energy-Based)

Time (seconds)

Page 29: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Energy-Based)

Time (seconds)

Energy envelope / note onsets positions

Page 30: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection

Energy curves often only work for percussive music

Many instruments such as strings have weak note onsets

No energy increase may be observable in complex sound mixtures

More refined methods needed that capture– changes of spectral content– changes of pitch– changes of harmony

Page 31: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

1. SpectrogramMagnitude spectrogram

Freq

uenc

y (H

z)

Time (seconds)

|| X Steps:Onset Detection (Spectral-Based)

Aspects concerning pitch, harmony, or timbre are captured by spectrogram

Allows for detecting local energy changes in certain frequency ranges

Page 32: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Compressed spectrogram Y

|)|1log( XCY

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression

Steps:

Accounts for the logarithmic sensation of sound intensity

Dynamic range compression Enhancement of low-intensity

values Often leading to enhancement

of high-frequency spectrum

Time (seconds)

Freq

uenc

y (H

z)

Page 33: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Spectral difference

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation

Steps:

First-order temporal difference

Captures changes of the spectral content

Only positive intensity changes considered

Time (seconds)

Freq

uenc

y (H

z)

Page 34: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Spectral difference

tNovelty curve

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation4. Accumulation

Steps:

Frame-wise accumulation of all positive intensity changes

Encodes changes of the spectral content

Freq

uenc

y (H

z)

Page 35: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation4. Accumulation

Steps:

Novelty curve

Page 36: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Substraction of local average

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation4. Accumulation5. Normalization

Steps:

Novelty curve

Page 37: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation4. Accumulation5. Normalization

Steps:

Normalized novelty curve

Page 38: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)

1. Spectrogram2. Logarithmic compression3. Differentiation4. Accumulation5. Normalization6. Peak picking

Steps:

Normalized novelty curve

Page 39: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Logarithmic compression is essential

Novelty curve

Onset Detection (Spectral-Based)

Time (seconds)

Freq

uenc

y (H

z)

|| X

Ground-truth onsets

[Klapuri et al., IEEE-TASLP 2006]

Page 40: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

C = 1

Onset Detection (Spectral-Based)

|)|1log( XCY

Logarithmic compression is essential

Novelty curve

Ground-truth onsets

[Klapuri et al., IEEE-TASLP 2006]

Freq

uenc

y (H

z)

Time (seconds)

Page 41: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)Logarithmic compression is essential

Novelty curve

Ground-truth onsets

C = 10

|)|1log( XCY

[Klapuri et al., IEEE-TASLP 2006]

Freq

uenc

y (H

z)

Time (seconds)

Page 42: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)Logarithmic compression is essential

Novelty curve

Ground-truth onsets

C = 1000

|)|1log( XCY

[Klapuri et al., IEEE-TASLP 2006]

Freq

uenc

y (H

z)

Time (seconds)

Page 43: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection (Spectral-Based)

Spectrogram

Compressed Spectrogram

Novelty curve

Page 44: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Time (seconds)

Onset Detection

Peak picking

Peaks of the novelty curve indicate note onset candidates

Page 45: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Time (seconds)

Onset Detection

Peak picking

Peaks of the novelty curve indicate note onset candidates In general many spurious peaks Usage of local thresholding techniques Peak-picking very fragile step in particular for soft onsets

Page 46: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection

Shostakovich – 2nd Waltz

Time (seconds)

Time (seconds)

Borodin – String Quartet No. 2

Page 47: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Onset Detection

Drumbeat

Going Home

Lyphard melodie

Por una cabeza

Donau

Page 48: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat and Tempo

Steady pulse that drives music forward and provides the temporal framework of a piece of music

Sequence of perceived pulses that are equally spaced in time

The pulse a human taps along when listening to the music

[Parncutt 1994]

[Sethares 2007]

[Large/Palmer 2002]

[Lerdahl/ Jackendoff 1983]

[Fitch/ Rosenfeld 2007]

What is a beat?

The term tempo then refers to the speed of the pulse.

Page 49: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat and Tempo

Analyze the novelty curve with respect to reoccurring or quasi-periodic patterns

Avoid the explicit determination of note onsets (no peak picking)

Strategy

Page 50: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat and Tempo

[Scheirer, JASA 1998]

[Ellis, JNMR 2007]

[Davies/Plumbley, IEEE-TASLP 2007]

[Peeters, JASP 2007]

Strategy

Comb-filter methods Autocorrelation Fourier transfrom

Methods

[Grosche/Müller, ISMIR 2009]

Analyze the novelty curve with respect to reoccurring or quasi-periodic patterns

Avoid the explicit determination of note onsets (no peak picking)

[Grosche/Müller, IEEE-TASLP 2011]

Page 51: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Definition: A tempogram is a time-tempo representation that encodes the local tempo of a music signalover time.

Tem

po (B

PM

)

Time (seconds)

Inte

nsity

Tempogram

Page 52: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Definition: A tempogram is a time-tempo represenation that encodes the local tempo of a music signalover time.

Compute a spectrogram (STFT) of the novelty curve Convert frequency axis (given in Hertz) into

tempo axis (given in BPM) Magnitude spectrogram indicates local tempo

Fourier-based method

Tempogram (Fourier)

Page 53: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)

Time (seconds)

Tempogram (Fourier)

Novelty curve

Page 54: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)Tempogram (Fourier)

Novelty curve (local section)

Time (seconds)

Page 55: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)

Windowed sinusoidal

Tempogram (Fourier)

Time (seconds)

Page 56: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)

Windowed sinusoidal

Tempogram (Fourier)

Time (seconds)

Page 57: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)Tempogram (Fourier)

Windowed sinusoidal

Time (seconds)

Page 58: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Definition: A tempogram is a time-tempo represenation that encodes the local tempo of a music signalover time.

Compare novelty curve with time-lagged local sections of itself

Convert lag-axis (given in seconds) into tempo axis (given in BPM)

Autocorrelogram indicates local tempo

Autocorrelation-based method

Tempogram (Autocorrelation)

Page 59: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Novelty curve (local section)

Lag

(sec

onds

)

Time (seconds)

Page 60: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Windowed autocorrelation

Lag

(sec

onds

)

Page 61: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Lag = 0 (seconds)

Lag

(sec

onds

)

Page 62: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Lag = 0.26 (seconds)

Lag

(sec

onds

)

Page 63: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Lag = 0.52 (seconds)

Lag

(sec

onds

)

Page 64: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Lag = 0.78 (seconds)

Lag

(sec

onds

)

Page 65: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Lag = 1.56 (seconds)

Lag

(sec

onds

)

Page 66: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Autocorrelation)

Time (seconds)

Time (seconds)

Lag

(sec

onds

)

Page 67: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

300

60

80

40

30

120

Tempogram (Autocorrelation)Te

mpo

(BP

M)

Time (seconds)

Time (seconds)

Page 68: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

600

500

400

300

200

100

Tempogram (Autocorrelation)Te

mpo

(BP

M)

Time (seconds)

Time (seconds)

Page 69: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Time (seconds)

TempogramFourier Autocorrelation

Time (seconds)

Tem

po (B

PM

)

Page 70: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

TempogramFourier Autocorrelation

210

70

Tem

po (B

PM

)

Tempo@Tatum = 210 BPM Tempo@Measure = 70 BPMTime (seconds) Time (seconds)

Page 71: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram

Fourier Autocorrelation

Time (seconds) Time (seconds)

Tem

po (B

PM

)

Time (seconds)

Emphasis of tempo harmonics (integer multiples)

Emphasis of tempo subharmonics (integer fractions)

[Grosche et al., ICASSP 2010][Peeters, JASP 2007]

Page 72: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tempogram (Summary)

Fourier Autocorrelation

Novelty curve is compared withsinusoidal kernels eachrepresenting a specific tempo

Novelty curve is compared withtime-lagged local (windowed) sections of itself

Convert frequency (Hertz) intotempo (BPM)

Convert time-lag (seconds) intotempo (BPM)

Reveals novelty periodicities Reveals novelty self-similarities

Emphasizes harmonics Emphasizes subharmonics

Suitable to analyze tempo on tatum and tactus level

Suitable to analyze tempo on tactus and measure level

Page 73: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat Tracking

Given the tempo, find the best sequence of beats

Complex Fourier tempogram contains magnitude and phase information

The magnitude encodes how well the novelty curve resonates with a sinusoidal kernel of a specific tempo

The phase optimally aligns the sinusoidal kernel with the peaks of the novelty curve

[Peeters, JASP 2005]

Page 74: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Inte

nsity

[Peeters, JASP 2005]

Page 75: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Inte

nsity

[Peeters, JASP 2005]

Page 76: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Inte

nsity

[Peeters, JASP 2005]

Page 77: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Inte

nsity

Page 78: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Tem

po (B

PM

)

Inte

nsity

Time (seconds)

Beat Tracking

[Grosche/Müller, IEEE-TASLP 2011]

Page 79: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat Tracking

Novelty Curve

Predominant Local Pulse (PLP)

[Grosche/Müller, IEEE-TASLP 2011]Time (seconds)

Page 80: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Periodicity enhancement of novelty curve Accumulation introduces error robustness Locality of kernels handles tempo variations

Indicates note onset candidates Extraction errors in particular for soft onsets Simple peak-picking problematic

Beat Tracking

Predominant Local Pulse (PLP)

Novelty Curve

[Grosche/Müller, IEEE-TASLP 2011]

Page 81: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat Tracking

Local tempo at time : [60:240] BPM

Phase

Sinusoidal kernel

Periodicity curve

[Grosche/Müller, IEEE-TASLP 2011]

Page 82: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Time (seconds)

Borodin – String Quartet No. 2

[Grosche/Müller, IEEE-TASLP 2011]

Page 83: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat TrackingTe

mpo

(BP

M)

Borodin – String Quartet No. 2

[Grosche/Müller, IEEE-TASLP 2011]

Strategy: Exploit additional knowledge(e.g. rough tempo range)

Time (seconds)

Page 84: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat Tracking

Brahms Hungarian Dance No. 5

Tem

po (B

PM

)

Page 85: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Beat Tracking

Brahms Hungarian Dance No. 5

Time (seconds)

Tem

po (B

PM

)

Page 86: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Applications

Feature design (beat-synchronous features, adaptive windowing)

Digital DJ / audio editing (mixing and blending of audio material)

Music classification

Music recommendation

Performance analysis (extraction of tempo curves)

Page 87: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Feature Design

Fixed window size

[Ellis et al., ICASSP 2008] [Bello/Pickens, ISMIR 2005]

Page 88: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

[Bello/Pickens, ISMIR 2005]

Application: Feature Design

Fixed window size Adaptive window size

[Ellis et al., ICASSP 2008]

Page 89: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Feature Design

Fixed window size (100 ms)

Time (seconds)

Page 90: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Feature Design

Adative window size (roughly 1200 ms)Note onset positions define boundaries

Time (seconds)

Page 91: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Feature Design

Time (seconds)

Denoising by excluding boundary neighborhoods

Adative window size (roughly 1200 ms)Note onset positions define boundaries

Page 92: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Audio Editing (Digital DJ)

http://www.mixxx.org/

Page 93: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Application: Beat-Synchronous Light Effects

Page 94: Tempo and Beat Tracking - AudioLabs - Home · PDF fileTempo and Beat Tracking ... Another One Bites The Dust Introduction. Example: Queen ... Borodin – String Quartet No. 2 Pulse

Summary

1. Onset Detection Novelty curve (something is changing) Indicates note onset candidates Hard task for non-percussive instruments (strings)

2. Tempo Estimation Fourier tempogram Autocorrelation tempogram Musical knowledge (tempo range, continuity)

3. Beat tracking Find most likely beat positions Exploiting phase information from Fourier tempogram