SlideShare a Scribd company logo
1 of 22
Download to read offline
Towards a Computational Model of Melody
Identification in Polyphonic Music
S ren Tjagvad Madsen1
, Gerhard Widmer2
Austrian Research Institute for Artificial Intelligence, Vienna1
,Department of
Computational Perception Johannes Kepler University, Linz2
IJCAI (International Joint Conference on Artificial Intelligence)
Ronildo Oliveira da Silva
9 de janeiro de 2017
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Contents
1 Introduction
2 Complexity and Melody Perception
3 A Computational Model
4 Experiments
5 Discussion
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 2 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Introduction
1 Melody is a central dimension in almost all music.
2 It is not easy define the concept of ‘melody’.
3 In a way, which notes constitute the melody is defined by where
the listeners perceive the most interesting things to be going on
in the music.
4 This paper presents first steps towards a simple, robust
computational model of automatic melody note identification.
Based on results from musicology and music psychology.
5 We will introduce a simple, straightforward measure of melodic
complexity based on entropy, present an algorithm for predicting
the most likely melody note at any point in a piece.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 3 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Complexity and Melody Perception
The basic motivation for our model of melody identification is the
observation, that there seems to be a connection between the
complexity of a musical line, and the amount of attention that will
be devoted to it on the part of a listener.
Show that the complexity or information content of a sequence of notes
may be directly related to the degree to which the note sequence is
perceived as being part of the melody.
measure of complexity based only on note-level entropies;
measures based on pattern compression and top-down heuristics
derived from music theory.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 4 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
A Computational Model
The basic idea of the model consists in calculating a series of
complexity values locally. Based on these series of local complexity
estimates, the melody is then reconstructed note by note by a
simple algorithm. The information measures will be calculated from the
structural core of music alone: a digital representation of the printed
music score like a MIDI (Musical Instrument Digital Interface).
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 5 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Sliding Window
The algorithm operates by in turn examining a small subset of the notes
in the score. A fixed length window is slid from left to right over the
score.
1 offset of first ending note in current window
2 onset of next note after current window
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 6 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Sliding Window
From the notes belonging to the same voice (instrument) in the window,
we calculate a complexity value. We do that for each voice present in the
window.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 7 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Entropy Measures in Musical Dimensions
Shannon’s entropy [Shannon, 1948] is a measure of randomness or
uncertainty in a signal. If the predictability is high, the entropy is low,
and vice versa.
uniformity, low prediction
no uniformity, high prediction
Let X = {x1, x2, ..., xn}
p(x) = Pr(X = x)
X could for example be the set of MIDI pitch numbers and p(x) would
then be the probability (estimated by the frequency) of a certain pitch.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 8 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Entropy Measures in Musical Dimensions
Let X = {x1, x2, ..., xn} and p(x) = Pr(X = x) then the entropy H(x) is
defined as:
H(X) = −
x∈X
p(x)log2p(x)
p(x) would then be the probability (estimated by the frequency) of a
certain pitch.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 9 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Entropy Measures in Musical Dimensions
We are going to calculate entropy of ’features‘ extracted from the notes
in monophonic lines. We will use features related to pitch and duration
of the notes.
1 Pitch class (C): count the occurrences of different pitch classes
present (the term pitch class is used to refer the ‘name’ of a note);
2 MIDI Interval (I): count the occurrences of each melodic interval
present (e.g., minor second up, major third down, . . . );
3 Note duration (D): count the number of note duration classes
present, where note classes are derived by discretisation (a duration
is given its own class if it is not within 10% of an existing class).
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 10 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Entropy Measures in Musical Dimensions
With each measure we extract events from a given sequence of notes, and
calculate entropy from the frequencies of these events (HC , HI ,HD ).
So far rhythm and pitch are treated separately. We have also included a
measure HCID weighting the above three measures:
HCID =
1
4
(HC + HI ) +
1
2
HD.
Entropy is also defined for a pair of random variables with joint
distribution:
H(X, Y ) = −
x∈X y∈Y
p(x, y)log2[p(x, y)]
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 11 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
An Alternative: Complexity via Compression
The entropy function is a purely statistical measure related to the
frequency of events. No relationships between events is measured – e.g.
the events abcabcabc and abcbcacab will result in the same entropy
value.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 12 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Predicting Melody Notes
The prediction period. The prediction period pi is thus the interval
between the beginning of window wi and the beginning of wi+1.
The average complexity value for each voice present in the
windows in o(pi ) is calculated.
Rank the voices according to their average complexity over o(pi ).
Every note in wi gets its melody attribute set to true if it is part of
the winning voice, and to false otherwise.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 13 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Predicting Melody Notes
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 14 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
The Musical Test Corpus
1 Haydn, F.J.: String quartet No 58 op. 54, No. 2, in C major, 1st
movement
2 Mozart, W.A.: Symphony No 40 in G minor (KV 550), 1st
movement
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 15 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
Annotating Melody Notes
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 16 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
Evaluation Method
We can now measure how well the predicted notes correspond to the
annotated melody in the score. We express this in terms of recall (R) and
precision (P) values.
Recall is the number of correctly predicted notes (true positives,
TP) divided by the total number of notes in the melody.
Precision is TP divided by the total number of notes predicted
(TP + FP (false positives)).
F(R, P) = 1 −
2RP
R + P
A high rate of correctly predicted notes will result in high values of recall,
precision and F − measure (close to 1.0).
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 17 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
Results
We performed prediction experiments with four different window sizes
(1-4 seconds) and with the six different entropy measures.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 18 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
Results
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 19 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
The Musical Test Corpus
Results
We can conclude that there is indeed a correlation between melody and
complexity in both pieces. The precision value of 0.60 in the best
symphony experiment with a resulting F- measure of 0.51 (window size 3
seconds) tells us that 60% of the predicted notes in the symphony are
truly melody notes.
In the string quartet, the second violin is alternating between a single
note and notes from a descending scale, making the voice very attractive
(lots of different notes and intervals) while the ‘real melody’
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 20 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Discussion
In our opinion, the current results, though based on a rather limited test
corpus, indicate that it makes sense to consider musical complexity as an
important factor in computational models of melody perception.
(MADSEN, 2015)
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 21 / 22
Introduction Complexity and Melody Perception A Computational Model Experiments Discussion
Referêcias I
MADSEN, G. W. S. T. Towards a Computational Model of Melody
Identification in Polyphonic Music. 1st. ed. [S.l.]: IJCAI, 2015.
So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 22 / 22

More Related Content

Similar to Towards a Computational Model of Melody Identification in Polyphonic Music

207 intro lecture2010
207 intro lecture2010207 intro lecture2010
207 intro lecture2010
guest1db8cc6
 
The kusc classical music dataset for audio key finding
The kusc classical music dataset for audio key findingThe kusc classical music dataset for audio key finding
The kusc classical music dataset for audio key finding
ijma
 

Similar to Towards a Computational Model of Melody Identification in Polyphonic Music (20)

ppt
pptppt
ppt
 
ppt
pptppt
ppt
 
Melcomplexity Escom 20090729
Melcomplexity Escom 20090729Melcomplexity Escom 20090729
Melcomplexity Escom 20090729
 
In Independent (Re-)Creation Likely To Happen In Pop Music? (Escom 2009)
In Independent (Re-)Creation Likely To Happen In Pop Music? (Escom 2009)In Independent (Re-)Creation Likely To Happen In Pop Music? (Escom 2009)
In Independent (Re-)Creation Likely To Happen In Pop Music? (Escom 2009)
 
Audio Morphing for Percussive Sound Generation
Audio Morphing for Percussive Sound GenerationAudio Morphing for Percussive Sound Generation
Audio Morphing for Percussive Sound Generation
 
207 intro lecture2010
207 intro lecture2010207 intro lecture2010
207 intro lecture2010
 
Computational models of symphonic music
Computational models of symphonic musicComputational models of symphonic music
Computational models of symphonic music
 
Intelligent real-time music accompaniment for constraint-free improvisation
Intelligent real-time music accompaniment for constraint-free improvisationIntelligent real-time music accompaniment for constraint-free improvisation
Intelligent real-time music accompaniment for constraint-free improvisation
 
Rigaud_et_al_WASPAA
Rigaud_et_al_WASPAARigaud_et_al_WASPAA
Rigaud_et_al_WASPAA
 
Graphical visualization of musical emotions
Graphical visualization of musical emotionsGraphical visualization of musical emotions
Graphical visualization of musical emotions
 
UofL_Math_Club_Talk
UofL_Math_Club_TalkUofL_Math_Club_Talk
UofL_Math_Club_Talk
 
Tervo: Sensory Dissonance Models
Tervo: Sensory Dissonance ModelsTervo: Sensory Dissonance Models
Tervo: Sensory Dissonance Models
 
Audio Art Authentication and Classification with Wavelet Statistics
Audio Art Authentication and Classification with Wavelet StatisticsAudio Art Authentication and Classification with Wavelet Statistics
Audio Art Authentication and Classification with Wavelet Statistics
 
Harmony Search as a Metaheuristic Algorithm
Harmony Search as a Metaheuristic AlgorithmHarmony Search as a Metaheuristic Algorithm
Harmony Search as a Metaheuristic Algorithm
 
Nithin Xavier research_proposal
Nithin Xavier research_proposalNithin Xavier research_proposal
Nithin Xavier research_proposal
 
Introduction to Music Information Retrieval
Introduction to Music Information RetrievalIntroduction to Music Information Retrieval
Introduction to Music Information Retrieval
 
The kusc classical music dataset for audio key finding
The kusc classical music dataset for audio key findingThe kusc classical music dataset for audio key finding
The kusc classical music dataset for audio key finding
 
Introduction to Music Information Retrieval
Introduction to Music Information RetrievalIntroduction to Music Information Retrieval
Introduction to Music Information Retrieval
 
Art-Appreciation-UNIT-7-Lesson-13-and-141.pptx
Art-Appreciation-UNIT-7-Lesson-13-and-141.pptxArt-Appreciation-UNIT-7-Lesson-13-and-141.pptx
Art-Appreciation-UNIT-7-Lesson-13-and-141.pptx
 
Sparse and Low Rank Representations in Music Signal Analysis
 Sparse and Low Rank Representations in Music Signal  Analysis Sparse and Low Rank Representations in Music Signal  Analysis
Sparse and Low Rank Representations in Music Signal Analysis
 

More from Ronildo Oliveira

Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
Ronildo Oliveira
 
Curso Android - 01 Introdução ao Android
Curso Android - 01 Introdução ao AndroidCurso Android - 01 Introdução ao Android
Curso Android - 01 Introdução ao Android
Ronildo Oliveira
 
Curso Android - 03 Conceitos Chaves
Curso Android - 03 Conceitos ChavesCurso Android - 03 Conceitos Chaves
Curso Android - 03 Conceitos Chaves
Ronildo Oliveira
 
Minicurso Android Ronildo Oliveira
Minicurso Android  Ronildo OliveiraMinicurso Android  Ronildo Oliveira
Minicurso Android Ronildo Oliveira
Ronildo Oliveira
 

More from Ronildo Oliveira (18)

Desenvolvimento de jogos Mobile - FliSol 2017
Desenvolvimento de jogos Mobile - FliSol 2017Desenvolvimento de jogos Mobile - FliSol 2017
Desenvolvimento de jogos Mobile - FliSol 2017
 
Documento de Requisitos do Sistema - Meu Telefone
Documento de Requisitos do Sistema - Meu TelefoneDocumento de Requisitos do Sistema - Meu Telefone
Documento de Requisitos do Sistema - Meu Telefone
 
Slide Encontros Universitários 2015 UFC - SOLID, Design de Software e Progra...
Slide Encontros Universitários 2015 UFC  - SOLID, Design de Software e Progra...Slide Encontros Universitários 2015 UFC  - SOLID, Design de Software e Progra...
Slide Encontros Universitários 2015 UFC - SOLID, Design de Software e Progra...
 
Calculo I - Uma Breve Introdução ao Estudo de Integrais
Calculo I - Uma Breve Introdução ao Estudo de IntegraisCalculo I - Uma Breve Introdução ao Estudo de Integrais
Calculo I - Uma Breve Introdução ao Estudo de Integrais
 
Apresentação de Slide - Deadlocks
Apresentação de Slide - DeadlocksApresentação de Slide - Deadlocks
Apresentação de Slide - Deadlocks
 
Deadlocks (Resumo)
Deadlocks (Resumo)Deadlocks (Resumo)
Deadlocks (Resumo)
 
Resolução de Problemas - Sistemas Operacionais
Resolução de Problemas - Sistemas OperacionaisResolução de Problemas - Sistemas Operacionais
Resolução de Problemas - Sistemas Operacionais
 
Conceitos básicos de sistemas operacionais
Conceitos básicos de sistemas operacionaisConceitos básicos de sistemas operacionais
Conceitos básicos de sistemas operacionais
 
Fases do desenvolvimento de software baseado no código de ética.
Fases do desenvolvimento de software baseado no código de ética.Fases do desenvolvimento de software baseado no código de ética.
Fases do desenvolvimento de software baseado no código de ética.
 
Exercícios Resolvidos - Arquitetura e Organização de Computadores
Exercícios Resolvidos - Arquitetura e Organização de ComputadoresExercícios Resolvidos - Arquitetura e Organização de Computadores
Exercícios Resolvidos - Arquitetura e Organização de Computadores
 
Minicurso de Desenvolvimento Android - Iguatu - CE
Minicurso de Desenvolvimento Android - Iguatu - CEMinicurso de Desenvolvimento Android - Iguatu - CE
Minicurso de Desenvolvimento Android - Iguatu - CE
 
Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
Curso Android - 02 configuração do ambiente (Tutorial de Instalação Eclipse +...
 
Curso Android - 01 Introdução ao Android
Curso Android - 01 Introdução ao AndroidCurso Android - 01 Introdução ao Android
Curso Android - 01 Introdução ao Android
 
Curso Android - 03 Conceitos Chaves
Curso Android - 03 Conceitos ChavesCurso Android - 03 Conceitos Chaves
Curso Android - 03 Conceitos Chaves
 
Ciclo de Vida de uma Activity
Ciclo de Vida de uma ActivityCiclo de Vida de uma Activity
Ciclo de Vida de uma Activity
 
Arquitetura da Plataforma Android
Arquitetura da Plataforma AndroidArquitetura da Plataforma Android
Arquitetura da Plataforma Android
 
Tutorial de Instalação Eclipse + Android SDK
Tutorial de Instalação Eclipse + Android SDKTutorial de Instalação Eclipse + Android SDK
Tutorial de Instalação Eclipse + Android SDK
 
Minicurso Android Ronildo Oliveira
Minicurso Android  Ronildo OliveiraMinicurso Android  Ronildo Oliveira
Minicurso Android Ronildo Oliveira
 

Recently uploaded

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 

Recently uploaded (20)

Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 

Towards a Computational Model of Melody Identification in Polyphonic Music

  • 1. Towards a Computational Model of Melody Identification in Polyphonic Music S ren Tjagvad Madsen1 , Gerhard Widmer2 Austrian Research Institute for Artificial Intelligence, Vienna1 ,Department of Computational Perception Johannes Kepler University, Linz2 IJCAI (International Joint Conference on Artificial Intelligence) Ronildo Oliveira da Silva 9 de janeiro de 2017
  • 2. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Contents 1 Introduction 2 Complexity and Melody Perception 3 A Computational Model 4 Experiments 5 Discussion So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 2 / 22
  • 3. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Introduction 1 Melody is a central dimension in almost all music. 2 It is not easy define the concept of ‘melody’. 3 In a way, which notes constitute the melody is defined by where the listeners perceive the most interesting things to be going on in the music. 4 This paper presents first steps towards a simple, robust computational model of automatic melody note identification. Based on results from musicology and music psychology. 5 We will introduce a simple, straightforward measure of melodic complexity based on entropy, present an algorithm for predicting the most likely melody note at any point in a piece. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 3 / 22
  • 4. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Complexity and Melody Perception The basic motivation for our model of melody identification is the observation, that there seems to be a connection between the complexity of a musical line, and the amount of attention that will be devoted to it on the part of a listener. Show that the complexity or information content of a sequence of notes may be directly related to the degree to which the note sequence is perceived as being part of the melody. measure of complexity based only on note-level entropies; measures based on pattern compression and top-down heuristics derived from music theory. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 4 / 22
  • 5. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion A Computational Model The basic idea of the model consists in calculating a series of complexity values locally. Based on these series of local complexity estimates, the melody is then reconstructed note by note by a simple algorithm. The information measures will be calculated from the structural core of music alone: a digital representation of the printed music score like a MIDI (Musical Instrument Digital Interface). So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 5 / 22
  • 6. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Sliding Window The algorithm operates by in turn examining a small subset of the notes in the score. A fixed length window is slid from left to right over the score. 1 offset of first ending note in current window 2 onset of next note after current window So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 6 / 22
  • 7. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Sliding Window From the notes belonging to the same voice (instrument) in the window, we calculate a complexity value. We do that for each voice present in the window. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 7 / 22
  • 8. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Entropy Measures in Musical Dimensions Shannon’s entropy [Shannon, 1948] is a measure of randomness or uncertainty in a signal. If the predictability is high, the entropy is low, and vice versa. uniformity, low prediction no uniformity, high prediction Let X = {x1, x2, ..., xn} p(x) = Pr(X = x) X could for example be the set of MIDI pitch numbers and p(x) would then be the probability (estimated by the frequency) of a certain pitch. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 8 / 22
  • 9. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Entropy Measures in Musical Dimensions Let X = {x1, x2, ..., xn} and p(x) = Pr(X = x) then the entropy H(x) is defined as: H(X) = − x∈X p(x)log2p(x) p(x) would then be the probability (estimated by the frequency) of a certain pitch. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 9 / 22
  • 10. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Entropy Measures in Musical Dimensions We are going to calculate entropy of ’features‘ extracted from the notes in monophonic lines. We will use features related to pitch and duration of the notes. 1 Pitch class (C): count the occurrences of different pitch classes present (the term pitch class is used to refer the ‘name’ of a note); 2 MIDI Interval (I): count the occurrences of each melodic interval present (e.g., minor second up, major third down, . . . ); 3 Note duration (D): count the number of note duration classes present, where note classes are derived by discretisation (a duration is given its own class if it is not within 10% of an existing class). So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 10 / 22
  • 11. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Entropy Measures in Musical Dimensions With each measure we extract events from a given sequence of notes, and calculate entropy from the frequencies of these events (HC , HI ,HD ). So far rhythm and pitch are treated separately. We have also included a measure HCID weighting the above three measures: HCID = 1 4 (HC + HI ) + 1 2 HD. Entropy is also defined for a pair of random variables with joint distribution: H(X, Y ) = − x∈X y∈Y p(x, y)log2[p(x, y)] So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 11 / 22
  • 12. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion An Alternative: Complexity via Compression The entropy function is a purely statistical measure related to the frequency of events. No relationships between events is measured – e.g. the events abcabcabc and abcbcacab will result in the same entropy value. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 12 / 22
  • 13. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Predicting Melody Notes The prediction period. The prediction period pi is thus the interval between the beginning of window wi and the beginning of wi+1. The average complexity value for each voice present in the windows in o(pi ) is calculated. Rank the voices according to their average complexity over o(pi ). Every note in wi gets its melody attribute set to true if it is part of the winning voice, and to false otherwise. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 13 / 22
  • 14. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Predicting Melody Notes So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 14 / 22
  • 15. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus The Musical Test Corpus 1 Haydn, F.J.: String quartet No 58 op. 54, No. 2, in C major, 1st movement 2 Mozart, W.A.: Symphony No 40 in G minor (KV 550), 1st movement So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 15 / 22
  • 16. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus Annotating Melody Notes So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 16 / 22
  • 17. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus Evaluation Method We can now measure how well the predicted notes correspond to the annotated melody in the score. We express this in terms of recall (R) and precision (P) values. Recall is the number of correctly predicted notes (true positives, TP) divided by the total number of notes in the melody. Precision is TP divided by the total number of notes predicted (TP + FP (false positives)). F(R, P) = 1 − 2RP R + P A high rate of correctly predicted notes will result in high values of recall, precision and F − measure (close to 1.0). So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 17 / 22
  • 18. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus Results We performed prediction experiments with four different window sizes (1-4 seconds) and with the six different entropy measures. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 18 / 22
  • 19. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus Results So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 19 / 22
  • 20. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion The Musical Test Corpus Results We can conclude that there is indeed a correlation between melody and complexity in both pieces. The precision value of 0.60 in the best symphony experiment with a resulting F- measure of 0.51 (window size 3 seconds) tells us that 60% of the predicted notes in the symphony are truly melody notes. In the string quartet, the second violin is alternating between a single note and notes from a descending scale, making the voice very attractive (lots of different notes and intervals) while the ‘real melody’ So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 20 / 22
  • 21. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Discussion In our opinion, the current results, though based on a rather limited test corpus, indicate that it makes sense to consider musical complexity as an important factor in computational models of melody perception. (MADSEN, 2015) So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 21 / 22
  • 22. Introduction Complexity and Melody Perception A Computational Model Experiments Discussion Referêcias I MADSEN, G. W. S. T. Towards a Computational Model of Melody Identification in Polyphonic Music. 1st. ed. [S.l.]: IJCAI, 2015. So ren Gerhard Towards a Computational Model of Melody Identification in Polyphonic Music 22 / 22