SlideShare a Scribd company logo
1 of 15
An Algorithm for Piano Pedagogy through
 MIDI Protocol and Computer Software

                 Lee Cheng
         The University of Hong Kong
              leecheng@hku.hk




                                       CITE Research Symposium 2010
Introduction

What IT have we been using in Music Education?




                                           CITE Research Symposium 2010
Introduction

What IT have we been using in other subjects?




                                           CITE Research Symposium 2010
Introduction

How about Piano Pedagogy?

                            It tells you when to play the notes.
                            Students cannot learn rhythms!

                            What about
                            Dynamics?
                            Phrasing?
                            Tempo?




                                                   CITE Research Symposium 2010
How the Computer Interpret Music?

 Note - Number
 (C4 = 60, C#4 = 61, etc)

 Time - Timestamp
 (1st beat = 0s, 2nd beat = 3s, 3rd beat = 6s, etc)

 Dynamics - Velocity
 (f/forte = 90, mf/mezzo forte = 60)

 Duration - Timestamp from NoteOn to NoteOff
 (NoteOn at 3s, NoteOff at 7.5s, Duration = 4.5s)

                                                CITE Research Symposium 2010
The Problem
Pianist have different tempo (speed) with the score.

How can the computer know where the pianist is playing?




                                                CITE Research Symposium 2010
The Algorithm for Piano Pedagogy

 An integrated algorithm including:

   Longest Common Music Subsequence (LCMS) Algorithm
   (for music-to-score alignment)

   Note Correctness

   Tempo Change

   Phrasing

   Dynamic Change
                                           CITE Research Symposium 2010
LCMS Algorithm

Derived from Longest Common Subsequence (LCS) algorithm.
function LCS (X[1..m], Y[1..n])                    func%on	
  LCMS	
  (X[1..m],	
  Y[1..n])
   C = array[0..m,0..n]                               C = array[0..m,0..n]
   for i := 0..m                                      for i := 0..m
       C[i,0] = 0                                        C[i,0] = 0
   for j := 0..n                                      for j := 0..n
       C[0,j] = 0                                        C[0,j] = 0
   for i := 1..m                                      for i := 1..m
       for j := 1..n                                     for j := 1..n
           if X[i] = Y[j]                                       for k := 0..9
               C[i,j] := C[i-1,j-1] + 1                               if X[i].note[0] = Y[j]note[k]
           else                                                           C[i,j] := C[i-1,j-1] + 1
               C[i,j] := max(C[i,j-1], C[i-1,j])                          break
   return C[m,n]                                                C[i,j] := max(C[i,j-1], C[i-1,j])
                                                      return C[m,n]



                                                                                 CITE Research Symposium 2010
LCMS Algorithm
The function of LCS algorithm:
           Seq. 1: ABCFEGFDE
           Seq.2: ABCEAFDE
LCS(Seq.1, Seq2): ABCEFDE

What is more for LCMS algorithm:
 Handle chords
 i.e. more than one elements at the same time
          A     D           G
          FEDBCBGABE
          D     G           C
                                          CITE Research Symposium 2010
Note Correctness


Playing the right note?

Playing at the right time?

Playing for the right duration?




                                  CITE Research Symposium 2010
Tempo Change

Global Tempo Change

  Pianist’s self-assigned tempo
                vs.
     Tempo listed on score

Tempo Consistence

  Is the pianist playing at the same tempo throughout
  the piece?

  Check the timestamp of music against the score
                                           CITE Research Symposium 2010
Phrasing

  Is a note played within the acceptable time range?

  Is a note played harder/softer than the previous note?


             Dynamic Change

Is the piece played at the acceptable dynamic range?

Is a phrase played harder/softer than the previous phrase?
                                                CITE Research Symposium 2010
Trial Implementation




                   CITE Research Symposium 2010
Conclusion

It is possible to learn elementary piano playing through
computer means.

For advanced level of piano learning, more to consider:

  Style, interpretation of score, etc

Implementation in school music lesson?

  Venue change from music room to computer room

  Every computer to have MIDI keyboard equipped
                                               CITE Research Symposium 2010
End



      CITE Research Symposium 2010

More Related Content

More from CITE

Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...
Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...
Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...CITE
 
Changing Technology Changing Practice: Empowering Staff and Building Capabili...
Changing Technology Changing Practice: Empowering Staff and Building Capabili...Changing Technology Changing Practice: Empowering Staff and Building Capabili...
Changing Technology Changing Practice: Empowering Staff and Building Capabili...CITE
 
Traditional Large Scale Educational Assessment and the Incorporation of Digit...
Traditional Large Scale Educational Assessment and the Incorporation of Digit...Traditional Large Scale Educational Assessment and the Incorporation of Digit...
Traditional Large Scale Educational Assessment and the Incorporation of Digit...CITE
 
Scaling up Assessment for Learning
Scaling up Assessment for LearningScaling up Assessment for Learning
Scaling up Assessment for LearningCITE
 
Analogy, Causality, and Discovery in Science: The engines of human thought
Analogy, Causality, and Discovery in Science: The engines of human thoughtAnalogy, Causality, and Discovery in Science: The engines of human thought
Analogy, Causality, and Discovery in Science: The engines of human thoughtCITE
 
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...Educating the Scientific Brain and Mind: Insights from The Science of Learnin...
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...CITE
 
Science of Learning — Why it matters to schools and families?
Science of Learning — Why it matters to schools and families?Science of Learning — Why it matters to schools and families?
Science of Learning — Why it matters to schools and families?CITE
 
Understanding the self through self bias
Understanding the self through self biasUnderstanding the self through self bias
Understanding the self through self biasCITE
 
The implementation of "Reading Battle" in Lam Tin Methodist Primary School
The implementation of "Reading Battle" in Lam Tin Methodist Primary SchoolThe implementation of "Reading Battle" in Lam Tin Methodist Primary School
The implementation of "Reading Battle" in Lam Tin Methodist Primary SchoolCITE
 
Strengthening students' reading comprehension ability (both Chinese and Engli...
Strengthening students' reading comprehension ability (both Chinese and Engli...Strengthening students' reading comprehension ability (both Chinese and Engli...
Strengthening students' reading comprehension ability (both Chinese and Engli...CITE
 
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"CITE
 
Xiao Hu "Learning Analytics Initiatives"
Xiao Hu "Learning Analytics Initiatives"Xiao Hu "Learning Analytics Initiatives"
Xiao Hu "Learning Analytics Initiatives"CITE
 
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...CITE
 
Phil Winne "Learning Analytics for Learning Science When N = me"
Phil Winne "Learning Analytics for Learning Science When N = me"Phil Winne "Learning Analytics for Learning Science When N = me"
Phil Winne "Learning Analytics for Learning Science When N = me"CITE
 
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...CITE
 
Chi-Un Lei "Text Mining and Educational Discourse"
Chi-Un Lei "Text Mining and Educational Discourse"Chi-Un Lei "Text Mining and Educational Discourse"
Chi-Un Lei "Text Mining and Educational Discourse"CITE
 
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...CITE
 
以學生為中心的電子學習
以學生為中心的電子學習以學生為中心的電子學習
以學生為中心的電子學習CITE
 
透過維基平台優化特殊學校中家政科學與教
透過維基平台優化特殊學校中家政科學與教透過維基平台優化特殊學校中家政科學與教
透過維基平台優化特殊學校中家政科學與教CITE
 
The Relative Importance of Paternal and Maternal Involvement as Predictors of...
The Relative Importance of Paternal and Maternal Involvement as Predictors of...The Relative Importance of Paternal and Maternal Involvement as Predictors of...
The Relative Importance of Paternal and Maternal Involvement as Predictors of...CITE
 

More from CITE (20)

Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...
Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...
Keynote 2: Social Epistemic Cognition in Engineering Learning: Theory, Pedago...
 
Changing Technology Changing Practice: Empowering Staff and Building Capabili...
Changing Technology Changing Practice: Empowering Staff and Building Capabili...Changing Technology Changing Practice: Empowering Staff and Building Capabili...
Changing Technology Changing Practice: Empowering Staff and Building Capabili...
 
Traditional Large Scale Educational Assessment and the Incorporation of Digit...
Traditional Large Scale Educational Assessment and the Incorporation of Digit...Traditional Large Scale Educational Assessment and the Incorporation of Digit...
Traditional Large Scale Educational Assessment and the Incorporation of Digit...
 
Scaling up Assessment for Learning
Scaling up Assessment for LearningScaling up Assessment for Learning
Scaling up Assessment for Learning
 
Analogy, Causality, and Discovery in Science: The engines of human thought
Analogy, Causality, and Discovery in Science: The engines of human thoughtAnalogy, Causality, and Discovery in Science: The engines of human thought
Analogy, Causality, and Discovery in Science: The engines of human thought
 
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...Educating the Scientific Brain and Mind: Insights from The Science of Learnin...
Educating the Scientific Brain and Mind: Insights from The Science of Learnin...
 
Science of Learning — Why it matters to schools and families?
Science of Learning — Why it matters to schools and families?Science of Learning — Why it matters to schools and families?
Science of Learning — Why it matters to schools and families?
 
Understanding the self through self bias
Understanding the self through self biasUnderstanding the self through self bias
Understanding the self through self bias
 
The implementation of "Reading Battle" in Lam Tin Methodist Primary School
The implementation of "Reading Battle" in Lam Tin Methodist Primary SchoolThe implementation of "Reading Battle" in Lam Tin Methodist Primary School
The implementation of "Reading Battle" in Lam Tin Methodist Primary School
 
Strengthening students' reading comprehension ability (both Chinese and Engli...
Strengthening students' reading comprehension ability (both Chinese and Engli...Strengthening students' reading comprehension ability (both Chinese and Engli...
Strengthening students' reading comprehension ability (both Chinese and Engli...
 
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"
Gobert, Dede, Martin, Rose "Panel: Learning Analytics and Learning Sciences"
 
Xiao Hu "Learning Analytics Initiatives"
Xiao Hu "Learning Analytics Initiatives"Xiao Hu "Learning Analytics Initiatives"
Xiao Hu "Learning Analytics Initiatives"
 
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...
Tiffany Barnes "Making a meaningful difference: Leveraging data to improve le...
 
Phil Winne "Learning Analytics for Learning Science When N = me"
Phil Winne "Learning Analytics for Learning Science When N = me"Phil Winne "Learning Analytics for Learning Science When N = me"
Phil Winne "Learning Analytics for Learning Science When N = me"
 
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...
Xiao Hu "Overview of the Space of Learning Analytics and Educational Data Min...
 
Chi-Un Lei "Text Mining and Educational Discourse"
Chi-Un Lei "Text Mining and Educational Discourse"Chi-Un Lei "Text Mining and Educational Discourse"
Chi-Un Lei "Text Mining and Educational Discourse"
 
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...
Using Knowledge Forum (KF) for Scientific Inquiry: A Sharing of School Based ...
 
以學生為中心的電子學習
以學生為中心的電子學習以學生為中心的電子學習
以學生為中心的電子學習
 
透過維基平台優化特殊學校中家政科學與教
透過維基平台優化特殊學校中家政科學與教透過維基平台優化特殊學校中家政科學與教
透過維基平台優化特殊學校中家政科學與教
 
The Relative Importance of Paternal and Maternal Involvement as Predictors of...
The Relative Importance of Paternal and Maternal Involvement as Predictors of...The Relative Importance of Paternal and Maternal Involvement as Predictors of...
The Relative Importance of Paternal and Maternal Involvement as Predictors of...
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

An algorithm for piano pedagogy through MIDI protocol and computer software

  • 1. An Algorithm for Piano Pedagogy through MIDI Protocol and Computer Software Lee Cheng The University of Hong Kong leecheng@hku.hk CITE Research Symposium 2010
  • 2. Introduction What IT have we been using in Music Education? CITE Research Symposium 2010
  • 3. Introduction What IT have we been using in other subjects? CITE Research Symposium 2010
  • 4. Introduction How about Piano Pedagogy? It tells you when to play the notes. Students cannot learn rhythms! What about Dynamics? Phrasing? Tempo? CITE Research Symposium 2010
  • 5. How the Computer Interpret Music? Note - Number (C4 = 60, C#4 = 61, etc) Time - Timestamp (1st beat = 0s, 2nd beat = 3s, 3rd beat = 6s, etc) Dynamics - Velocity (f/forte = 90, mf/mezzo forte = 60) Duration - Timestamp from NoteOn to NoteOff (NoteOn at 3s, NoteOff at 7.5s, Duration = 4.5s) CITE Research Symposium 2010
  • 6. The Problem Pianist have different tempo (speed) with the score. How can the computer know where the pianist is playing? CITE Research Symposium 2010
  • 7. The Algorithm for Piano Pedagogy An integrated algorithm including: Longest Common Music Subsequence (LCMS) Algorithm (for music-to-score alignment) Note Correctness Tempo Change Phrasing Dynamic Change CITE Research Symposium 2010
  • 8. LCMS Algorithm Derived from Longest Common Subsequence (LCS) algorithm. function LCS (X[1..m], Y[1..n]) func%on  LCMS  (X[1..m],  Y[1..n]) C = array[0..m,0..n] C = array[0..m,0..n] for i := 0..m for i := 0..m C[i,0] = 0 C[i,0] = 0 for j := 0..n for j := 0..n C[0,j] = 0 C[0,j] = 0 for i := 1..m for i := 1..m for j := 1..n for j := 1..n if X[i] = Y[j] for k := 0..9 C[i,j] := C[i-1,j-1] + 1 if X[i].note[0] = Y[j]note[k] else C[i,j] := C[i-1,j-1] + 1 C[i,j] := max(C[i,j-1], C[i-1,j]) break return C[m,n] C[i,j] := max(C[i,j-1], C[i-1,j]) return C[m,n] CITE Research Symposium 2010
  • 9. LCMS Algorithm The function of LCS algorithm: Seq. 1: ABCFEGFDE Seq.2: ABCEAFDE LCS(Seq.1, Seq2): ABCEFDE What is more for LCMS algorithm: Handle chords i.e. more than one elements at the same time A D G FEDBCBGABE D G C CITE Research Symposium 2010
  • 10. Note Correctness Playing the right note? Playing at the right time? Playing for the right duration? CITE Research Symposium 2010
  • 11. Tempo Change Global Tempo Change Pianist’s self-assigned tempo vs. Tempo listed on score Tempo Consistence Is the pianist playing at the same tempo throughout the piece? Check the timestamp of music against the score CITE Research Symposium 2010
  • 12. Phrasing Is a note played within the acceptable time range? Is a note played harder/softer than the previous note? Dynamic Change Is the piece played at the acceptable dynamic range? Is a phrase played harder/softer than the previous phrase? CITE Research Symposium 2010
  • 13. Trial Implementation CITE Research Symposium 2010
  • 14. Conclusion It is possible to learn elementary piano playing through computer means. For advanced level of piano learning, more to consider: Style, interpretation of score, etc Implementation in school music lesson? Venue change from music room to computer room Every computer to have MIDI keyboard equipped CITE Research Symposium 2010
  • 15. End CITE Research Symposium 2010