57
Music Information Retrieval Meinard Müller, Christof Weiss Meisterklasse HfM Karlsruhe Harmony Analysis International Audio Laboratories Erlangen [email protected], [email protected]

2017 MuellerWeiss MIR HarmonyAnalysis

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 2017 MuellerWeiss MIR HarmonyAnalysis

Music Information Retrieval

Meinard Müller, Christof Weiss

Meisterklasse HfM Karlsruhe

Harmony Analysis

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

Page 2: 2017 MuellerWeiss MIR HarmonyAnalysis

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: 2017 MuellerWeiss MIR HarmonyAnalysis

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: 2017 MuellerWeiss MIR HarmonyAnalysis

Dissertation: Tonality-Based Style Analysis

Christof WeißComputational Methods for Tonality-Based Style Analysis of Classical Music Audio RecordingsDissertation, Technical University of Ilmenau 2017to appear

Chapter 5: Analysis Methods for Key and Scale StructuresChapter 6: Design of Tonal Features

Page 5: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures

ChordsCM GM7 Am

Global key

Local keyC major G major C majorKey detection

Chord recognition

Music transcriptionNote level

Segment level

Chord level

Movement level C major

MelodyMiddle voices

Bass line

Page 6: 2017 MuellerWeiss MIR HarmonyAnalysis

Recall: Chroma Representations

Salie

nce

/ Lik

elih

ood

L. van Beethoven,Fidelio, Overture,Slovak Philharmonic

Page 7: 2017 MuellerWeiss MIR HarmonyAnalysis

Recall: Chroma Representations

Orchestra

Piano

L. van Beethoven,Fidelio, Overture,Slovak Philharmonic

Fidelio, Overture,arr. Alexander ZemlinskyM. Namekawa, D.R. Davies, piano four hands

Page 8: 2017 MuellerWeiss MIR HarmonyAnalysis

Recall: Chroma Representations

Orchestra

L. van Beethoven,Fidelio, Overture,Slovak Philharmonic

Gómez, Tonal Description of Polyphonic Audio, PhD thesis, Barcelona 2006

Müller / Ewert, Towards Timbre-Invariant Audio Features for Harmony-Based Music, IEEE TASLP, 2010

Mauch / Dixon, Approximate Note Transcription for the Improved Identification of Difficult Chords, ISMIR 2010

Page 9: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Chords

Chord recognition

Typically: Feature extraction, pattern matching, filtering (HMM)

„Out-of-the-box“ solutions

Sonic Visualizer, Chordino Vamp Plugin(Queen Mary University of London)

Page 10: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Chords

C G

Audiorepresentation

Prefiltering▪ Compression▪ Overtones▪ Smoothing

▪ Smoothing▪ Transition▪ HMM

Chromarepresentation

Patternmatching

Recognitionresult

Postfiltering

Majortriads

Minortriads

Page 11: 2017 MuellerWeiss MIR HarmonyAnalysis

Time (seconds)

C G Am F C G F C

Pitc

h cl

ass

Tonal Structures: Chords

Page 12: 2017 MuellerWeiss MIR HarmonyAnalysis

Chord Recognition: Basics

B

A

G

FE

D

C

G♯/A♭

D♯/E♭

C♯/D♭

A♯/B♭

F♯/G♭

C D♭ D E♭ E F G♭ G A♭ A B♭ B

Page 13: 2017 MuellerWeiss MIR HarmonyAnalysis

Chord Recognition: Basics

B

A

G

FE

D

C

G♯/A♭

D♯/E♭

C♯/D♭

A♯/B♭

F♯/G♭

Cm C♯m Dm E♭m Em Fm F♯m Gm G♯m Am B♭m Bm

Page 14: 2017 MuellerWeiss MIR HarmonyAnalysis

Chroma vectorfor each audio frame

24 chord templates(12 major, 12 minor)

Compute for each frame thesimilarity of the chroma vector

to the 24 templates

B

A

G

F

E

D

C

G♯

D♯

C♯

A♯

F♯

C C♯ D … Cm C♯m Dm

0 0 0 … 0 0 0 …

0 0 0 … 0 0 0 …

0 0 1 … 0 0 1 …

0 1 0 … 0 1 0 …

1 0 0 … 1 0 0 …

0 0 1 … 0 0 0 …

0 1 0 … 0 0 1 …

1 0 0 … 0 1 0 …

0 0 0 … 1 0 0 …

0 0 1 … 0 0 1 …

0 1 0 … 0 1 0 …

1 0 0 … 1 0 0 …

Chord Recognition: Template Matching

Page 15: 2017 MuellerWeiss MIR HarmonyAnalysis

Cho

rdP

itch

clas

s

Chord Recognition: Template Matching

Time (seconds)

Page 16: 2017 MuellerWeiss MIR HarmonyAnalysis

Chord Recognition: Label Assignment

Assign to each frame the chord labelof the template that maximizes the

similarity to the chroma vector

Chroma vectorfor each audio frame

24 chord templates(12 major, 12 minor)

Compute for each frame thesimilarity of the chroma vector

to the 24 templates

B

A

G

F

E

D

C

G♯

D♯

C♯

A♯

F♯

C C♯ D … Cm C♯m Dm

0 0 0 … 0 0 0 …

0 0 0 … 0 0 0 …

0 0 1 … 0 0 1 …

0 1 0 … 0 1 0 …

1 0 0 … 1 0 0 …

0 0 1 … 0 0 0 …

0 1 0 … 0 0 1 …

1 0 0 … 0 1 0 …

0 0 0 … 1 0 0 …

0 0 1 … 0 0 1 …

0 1 0 … 0 1 0 …

1 0 0 … 1 0 0 …

Page 17: 2017 MuellerWeiss MIR HarmonyAnalysis

Chord Recognition: Label Assignment

Cho

rdC

hord

Time (seconds)

Page 18: 2017 MuellerWeiss MIR HarmonyAnalysis

Chord Recognition: Evaluation

Time (seconds)

C G Am F C G F C

Page 19: 2017 MuellerWeiss MIR HarmonyAnalysis

A

Cm

Em

Am

C

C

E G

E♭

B

E G

Em

C

B

CCmaj7

Chord Recognition: Challenges

Page 20: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Chords

Chord recognition

Typically: Feature extraction, pattern matching, filtering (HMM)

„Out-of-the-box“ solutions

Sonic Visualizer, Chordino Vamp Plugin(Queen Mary University of London)

Page 21: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Chord & Interval Categories Chromagram

Chord type

Interval categories

Salie

nce

Salie

nce

Salie

nce

Time (seconds)

Time (seconds)

Time (seconds)

Pitc

h cl

ass

Cho

rdty

pe

Inte

rval

cate

ogry

Page 22: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Final Chord

Global key detection – typical approach:

Full piece chroma statistics

Template matching

Idea: Use particular role of final chord

Page 23: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Final Chord

Global key detection – typical approach:

Full piece chroma statistics

Template matching

Idea: Use particular role of final chord

Page 24: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Final Chord

Weiss, Global Key Extraction Basedon the Final Chord, SMC 2013Weiss / Schaab, On the Impact of Key Detection Performance, ISMIR 2015

Global key detection – typical approach:

Full piece chroma statistics

Template matching

Idea: Use particular role of final chord

Full piece chroma statistics → Diatonic scale

Page 25: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Final Chord

State-of-the-art

Learning of pitch class profiles

Weighting of beginning and ending sections (15 seconds)

Evaluation with optimized parameters

Dataset: symphonies, piano, chamber music, 478 pieces

Final chord (own): 94 % Profile learning (Van de Par): 92 %

Evaluation on unseen data

Dataset: orchestra, piano, 1200 pieces

Final chord (own): 85 % Profile learning (Van de Par): 87 %

Van de Par et al., Musical Key Extraction from Audio Using Profile Training, ISMIR 2006

Page 26: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales

Modulations → Local approach

Diatonic Scales

Simplification of keys

Perfect-fifth relation

0 diatonic level+1 diatonic level-2 diatonic level

Circle of fifths →

Page 27: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Example: J.S. Bach, Choral "Durch Dein Gefängnis" (Johannespassion) Score – Piano reduction

Page 28: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Example: J.S. Bach, Choral "Durch Dein Gefängnis" (Johannespassion) Audio – Waveform (Scholars Baroque Ensemble, Naxos 1994)

Time (seconds)

Page 29: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Example: J.S. Bach, Choral "Durch Dein Gefängnis" (Johannespassion) Audio – Spectrogram (Scholars Baroque Ensemble, Naxos 1994)

Page 30: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Example: J.S. Bach, Choral "Durch Dein Gefängnis" (Johannespassion) Audio – Chroma features (Scholars Baroque Ensemble, Naxos 1994)

Page 31: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Summarize pitch classes over a certain time

Chroma smoothing Parameters: blocksize b and hopsize h

bb

bh

h

Page 32: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach)

Page 33: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — smoothed with b = 42 seconds and h = 15 seconds

Page 34: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Re-ordering to perfect fifth series

Page 35: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Re-ordering to perfect fifth series

Page 36: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation (7 fifths)

4#

Page 37: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation (7 fifths)

5#

Page 38: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation: Multiply chroma values*

Page 39: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation: Multiply chroma values

Page 40: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation

Page 41: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation

4 #(E major)

Page 42: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — Diatonic Scale Estimation: Shift to global key

4 #(E major)

Page 43: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales Choral (Bach) — 0 ≙ 4#

Weiss / Habryka, Chroma-Based Scale Matchingfor Audio Tonality Analysis, CIM 2014

Page 44: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales L. v. Beethoven – Sonata No. 10 op. 14 Nr. 2, 1. Allegro — 0 ≙ 1

(Barenboim, EMI 1998)

Page 45: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Local Diatonic Scales R. Wagner, Die Meistersinger von Nürnberg, Vorspiel — 0 ≙ 0

(Polish National Radio Symphony Orchestra, J. Wildner, Naxos 1993)

Page 46: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Global chroma statistics (audio)

1567 – G. da Palestrina, Missa de Beata Virgine, Credo

G#Eb Bb F C G D A E B F# C#

1

0.8

0.6

0.4

0.2

0

Sal

ienc

e

Pitch class

Circle of fifths →

Page 47: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Global chroma statistics (audio)

1725 – J. S. Bach, Orchestral Suite No. 4 BWV 1069, 1. Ouverture (D major)

G# D# A#F C G D A E B F# C#

1

0.8

0.6

0.4

0.2

0

Sal

ienc

e

Pitch class

Circle of fifths →

Page 48: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Global chroma statistics (audio)

1783 – W. A. Mozart, „Linz“ symphony KV 425, 1. Adagio / Allegro (C major)

G#Eb Bb F C G D A E B F# C#

1

0.8

0.6

0.4

0.2

0

Sal

ienc

e

Pitch class

Circle of fifths →

Page 49: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Global chroma statistics (audio)

1883 – J. Brahms, Symphony No. 3, 1. Allegro con brio (F major)

Ab Eb Bb F C G D A E B F# C#

1

0.8

0.6

0.4

0.2

0

Sal

ienc

e

Pitch class

Circle of fifths →

Page 50: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Global chroma statistics (audio)

1940 – A. Webern, Variations for Orchestra op. 30

Ab Eb Bb F C G D A E B F# C#

1

0.8

0.6

0.4

0.2

0

Sal

ienc

e

Pitch class

Circle of fifths →

Page 51: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity Realization of complexity measure Γ Entropy / Flatness measures

Distribution over Circle of Fifths

Relating to different time scales!

Γ 0

length

Γ 1

Γ 1 0 Γ 1

Page 52: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity

Weiss / Müller, Quantifying and Visualizing Tonal Complexity, CIM 2014

Com

plex

ityΓ

Page 53: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity

L. van BeethovenSonata Op. 2, No. 3

1st movement

Page 54: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity

Op. 2, No. 3 Op. 57, No. 1„Appassionata“

Op. 106, No. 1„Hammerklavier“

Page 55: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity

17001650 1850 1900 1950 20001750 1800

Page 56: 2017 MuellerWeiss MIR HarmonyAnalysis

Tonal Structures: Complexity

17001650 1750 1800 1850 1900 1950 2000

Haydn, Joseph1732 – 1809100 works in dataset

Page 57: 2017 MuellerWeiss MIR HarmonyAnalysis

17001650 1750 1800 1850 1900 1950 2000

Tonal Structures: Complexity

1700 1750 1800 1850 1900 1950

1

0.9

0.8

0.7

Com

plex

ityΓ

Complexity Global

Complexity Mid-scale

Complexity Local