SlideShare a Scribd company logo
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

ppt
pptppt
ppt
butest
 
ppt
pptppt
ppt
butest
 
Melcomplexity Escom 20090729
Melcomplexity Escom 20090729Melcomplexity Escom 20090729
Melcomplexity Escom 20090729
Klaus Frieler
 
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)
Klaus Frieler
 
Audio Morphing for Percussive Sound Generation
Audio Morphing for Percussive Sound GenerationAudio Morphing for Percussive Sound Generation
Audio Morphing for Percussive Sound Generation
a3labdsp
 
207 intro lecture2010
207 intro lecture2010207 intro lecture2010
207 intro lecture2010
guest1db8cc6
 
Computational models of symphonic music
Computational models of symphonic musicComputational models of symphonic music
Computational models of symphonic music
Emilia Gómez
 
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
Andreas Floros
 
Rigaud_et_al_WASPAA
Rigaud_et_al_WASPAARigaud_et_al_WASPAA
Rigaud_et_al_WASPAA
François Rigaud
 
Graphical visualization of musical emotions
Graphical visualization of musical emotionsGraphical visualization of musical emotions
Graphical visualization of musical emotions
Pranay Prasoon
 
UofL_Math_Club_Talk
UofL_Math_Club_TalkUofL_Math_Club_Talk
UofL_Math_Club_Talk
Matt Hawthorn
 
Tervo: Sensory Dissonance Models
Tervo: Sensory Dissonance ModelsTervo: Sensory Dissonance Models
Tervo: Sensory Dissonance Models
Tommi Himberg
 
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
Waqas Tariq
 
Harmony Search as a Metaheuristic Algorithm
Harmony Search as a Metaheuristic AlgorithmHarmony Search as a Metaheuristic Algorithm
Harmony Search as a Metaheuristic Algorithm
Xin-She Yang
 
Nithin Xavier research_proposal
Nithin Xavier research_proposalNithin Xavier research_proposal
Nithin Xavier research_proposal
Nithin Xavier
 
Introduction to Music Information Retrieval
Introduction to Music Information RetrievalIntroduction to Music Information Retrieval
Introduction to Music Information Retrieval
Andrea Gazzarini
 
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
 
Introduction to Music Information Retrieval
Introduction to Music Information RetrievalIntroduction to Music Information Retrieval
Introduction to Music Information Retrieval
Sease
 
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
TubleDennisIIC
 
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
Distinguished Lecturer Series - Leon The Mathematician
 

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

Desenvolvimento de jogos Mobile - FliSol 2017
Desenvolvimento de jogos Mobile - FliSol 2017Desenvolvimento de jogos Mobile - FliSol 2017
Desenvolvimento de jogos Mobile - FliSol 2017
Ronildo Oliveira
 
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
Ronildo Oliveira
 
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...
Ronildo Oliveira
 
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
Ronildo Oliveira
 
Apresentação de Slide - Deadlocks
Apresentação de Slide - DeadlocksApresentação de Slide - Deadlocks
Apresentação de Slide - Deadlocks
Ronildo Oliveira
 
Deadlocks (Resumo)
Deadlocks (Resumo)Deadlocks (Resumo)
Deadlocks (Resumo)
Ronildo Oliveira
 
Resolução de Problemas - Sistemas Operacionais
Resolução de Problemas - Sistemas OperacionaisResolução de Problemas - Sistemas Operacionais
Resolução de Problemas - Sistemas Operacionais
Ronildo Oliveira
 
Conceitos básicos de sistemas operacionais
Conceitos básicos de sistemas operacionaisConceitos básicos de sistemas operacionais
Conceitos básicos de sistemas operacionais
Ronildo Oliveira
 
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.
Ronildo Oliveira
 
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
Ronildo Oliveira
 
Minicurso de Desenvolvimento Android - Iguatu - CE
Minicurso de Desenvolvimento Android - Iguatu - CEMinicurso de Desenvolvimento Android - Iguatu - CE
Minicurso de Desenvolvimento Android - Iguatu - CE
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
 
Ciclo de Vida de uma Activity
Ciclo de Vida de uma ActivityCiclo de Vida de uma Activity
Ciclo de Vida de uma Activity
Ronildo Oliveira
 
Arquitetura da Plataforma Android
Arquitetura da Plataforma AndroidArquitetura da Plataforma Android
Arquitetura da Plataforma Android
Ronildo Oliveira
 
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
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

一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Fernanda Palhano
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 

Recently uploaded (20)

一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 

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