Exploring the Features to Classify the Musical Period of Western Classical Music

Total Page:16

File Type:pdf, Size:1020Kb

Exploring the Features to Classify the Musical Period of Western Classical Music Technological University Dublin ARROW@TU Dublin Dissertations School of Computer Sciences 2018 Exploring the Features to Classify the Musical Period of Western Classical Music Arturo Martínez Gallardo Technological University Dublin Follow this and additional works at: https://arrow.tudublin.ie/scschcomdis Part of the Computer Sciences Commons Recommended Citation Gallardo, Arturo Martínez (2018). Exploring the features to classify the musical period of western classical music. Masters dissertation, DIT, 2018. This Dissertation is brought to you for free and open access by the School of Computer Sciences at ARROW@TU Dublin. It has been accepted for inclusion in Dissertations by an authorized administrator of ARROW@TU Dublin. For more information, please contact [email protected], [email protected]. This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 4.0 License Exploring the features to classify the musical period of Western classical music Arturo Martínez Gallardo A dissertation submitted in partial fulfilment of the requirements of Dublin Institute of Technology for the degree of M.Sc. in Computing (Data Analytics) January 2018 DECLARATION I certify that this dissertation which I now submit for examination for the award of MSc in Computing (Data Analytics), is entirely my own work and has not been taken from the work of others save and to the extent that such work has been cited and acknowledged within the test of my work. This dissertation was prepared according to the regulations for postgraduate study of the Dublin Institute of Technology and has not been submitted in whole or part for an award in any other Institute or University. The work reported on in this dissertation conforms to the principles and requirements of the Institute’s guidelines for ethics in research. Signed: Arturo Martínez Gallardo Date: 29 January 2018 i ABSTRACT Music Information Retrieval (MIR) focuses on extracting meaningful information from music content. MIR is a growing field of research with many applications such as music recommendation systems, fingerprinting, query-by-humming or music genre classification. This study aims to classify the styles of Western classical music, as this has not been explored to a great extent by MIR. In particular, this research will evaluate the impact of different music characteristics on identifying the musical period of Baroque, Classical, Romantic and Modern. In order to easily extract features related to music theory, symbolic representation or music scores were used, instead of audio format. A collection of 870 Western classical music piano scores was downloaded from different sources such as KernScore library (humdrum format) or the Musescore community (MusicXML format). Several global features were constructed by parsing the files and accessing the symbolic information, including notes and duration. These features include melodic intervals, chord types, pitch and rhythm histograms and were based on previous studies and music theory research. Using a radial kernel support vector machine algorithm, different classification models were created to analyse the contribution of the main musical properties: rhythm, pitch, harmony and melody. The study findings revealed that the harmony features were significant predictors of the music styles. The research also confirmed that the musical styles evolved gradually and that the changes in the tonal system through the years, appeared to be the most significant change to identify the styles. This is consistent with the findings of other researchers. The overall accuracy of the model using all the available features achieved an accuracy of 84.3%. It was found that of the four periods studied, it was most difficult to classify music from the Modern period. Key words: MIR, Supervised machine learning, music genre classification, symbolic representation, Western classical music, Support Vector Machine ii ACKNOWLEDGEMENTS I would like to express my sincere thanks to my supervisor Andrea Curley, for her support, direction and guidance during the development of this dissertation. Her musical knowledge was particularly helpful. Thank you to all my lecturers at DIT. I learnt a lot from each of them and the knowledge they passed on to me was vital to complete this work. Finally and especially, I would like to express my deep gratitude to my lovely wife, Áine. I would like to thank her for her patience, help and support when I most needed it. This dissertation is dedicated to the memory of my father, who passed away just weeks before I started this course. His continuous listening to classical music, developed my enthusiasm for music. I only wish I could have shared and discussed the process and findings of this thesis with him. iii TABLE OF CONTENTS Declaration .................................................................................................................... i Abstract ........................................................................................................................ ii Acknowledgements ..................................................................................................... iii Table of contents ......................................................................................................... iv Table of figures .......................................................................................................... vii Table of tables ........................................................................................................... viii 1. Introduction ........................................................................................................... 1 1.1 Background ...................................................................................................... 1 1.2 Research problem ............................................................................................. 1 1.3 Research objectives .......................................................................................... 2 1.4 Research methodology ..................................................................................... 3 1.5 Scope and limitations ....................................................................................... 3 1.6 Document Outline ............................................................................................ 4 2. Literature review .................................................................................................. 6 2.1 Introduction ...................................................................................................... 6 2.2 What is MIR ..................................................................................................... 6 2.3 Music data representations ............................................................................... 7 2.3.1 Audio formats ............................................................................................ 7 2.3.2 Symbolic notation formats ......................................................................... 8 2.4 Music score notation system fundamentals ...................................................... 9 2.5 Music genre classification .............................................................................. 12 2.5.1 Feature extraction ................................................................................... 12 2.5.2 Machine learning algorithms .................................................................. 15 2.5.3 Variable ranking ...................................................................................... 16 2.6 Classical Music time period classification ..................................................... 16 2.7 Conclusion ...................................................................................................... 17 iv 3. Design of the experiment .................................................................................... 19 3.1 Introduction .................................................................................................... 19 3.2 Design overview ............................................................................................. 19 3.3 Data collection ................................................................................................ 20 3.3.1 Music formats used .................................................................................. 20 3.3.2 Score collection process .......................................................................... 21 3.3.3 Labelling the dataset................................................................................ 22 3.3.4 Dataset overview ..................................................................................... 23 3.4 Data preparation ............................................................................................. 24 3.4.1 Feature extraction ................................................................................... 24 3.4.2 Data cleaning........................................................................................... 32 3.4.3 Data transformation ................................................................................ 34 3.5 Modelling ....................................................................................................... 36 3.5.1 Group features in categories ................................................................... 36 3.5.2 Variable ranking .....................................................................................
Recommended publications
  • Musical Genres - Styles and Eras
    Musical Genres - Styles and Eras. Classifying music into various genres does not have a right or wrong system. There are many genres & subgenres, and different ways of classifying music. At the broadest level, we can talk about music as being part of the Classical, Folk, Jazz, or World Music traditions. This resource touches [very briefly] on the Classical Music tradition. Typically when people talk about “classical music” they are referring to music written in the European tradition, though of course, this music could now be written anywhere in the world. Classical music can be written in a number of different styles, and the date when it was written can give a strong hint about which style it is in. In broad terms the Medieval era runs up until 1400BC, the Renaissance from 1400-1600, the Baroque era from 1600-1750, the Classical from 1750-1820 (ish), and the Romantic era from 1810-1910. The current Modern classical period run from around the start of the twentieth century and is further complicated by being subcategorized into a shed-load of different styles. Sorry. Does it matter? Yes! (and No). The thing is, some folk (ok, Teachers [and examiners!]) can get very sniffy if music from one period is played in the wrong manner. Think of an opera singer trying to do rap music. IT JUST DOESN’T SOUND RIGHT. It’s not Authentic. The reason why the answer might be “No”, is that music is about having fun, and being playful & creative, and sometimes it just works even when it shouldn’t.
    [Show full text]
  • Dynamic Generation of Musical Notation from Musicxml Input on an Android Tablet
    Dynamic Generation of Musical Notation from MusicXML Input on an Android Tablet THESIS Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University By Laura Lynn Housley Graduate Program in Computer Science and Engineering The Ohio State University 2012 Master's Examination Committee: Rajiv Ramnath, Advisor Jayashree Ramanathan Copyright by Laura Lynn Housley 2012 Abstract For the purpose of increasing accessibility and customizability of sheet music, an application on an Android tablet was designed that generates and displays sheet music from a MusicXML input file. Generating sheet music on a tablet device from a MusicXML file poses many interesting challenges. When a user is allowed to set the size and colors of an image, the image must be redrawn with every change. Instead of zooming in and out on an already existing image, the positions of the various musical symbols must be recalculated to fit the new dimensions. These changes must preserve the relationships between the various musical symbols. Other topics include the laying out and measuring of notes, accidentals, beams, slurs, and staffs. In addition to drawing a large bitmap, an application that effectively presents sheet music must provide a way to scroll this music across a small tablet screen at a specified tempo. A method for using animation on Android is discussed that accomplishes this scrolling requirement. Also a generalized method for writing text-based documents to describe notations similar to musical notation is discussed. This method is based off of the knowledge gained from using MusicXML.
    [Show full text]
  • Schenkerian Analysis in the Modern Context of the Musical Analysis
    Mathematics and Computers in Biology, Business and Acoustics THE SCHENKERIAN ANALYSIS IN THE MODERN CONTEXT OF THE MUSICAL ANALYSIS ANCA PREDA, PETRUTA-MARIA COROIU Faculty of Music Transilvania University of Brasov 9 Eroilor Blvd ROMANIA [email protected], [email protected] Abstract: - Music analysis represents the most useful way of exploration and innovation of musical interpretations. Performers who use music analysis efficiently will find it a valuable method for finding the kind of musical richness they desire in their interpretations. The use of Schenkerian analysis in performance offers a rational basis and an unique way of interpreting music in performance. Key-Words: - Schenkerian analysis, structural hearing, prolongation, progression,modernity. 1 Introduction Even in a simple piece of piano music, the ear Musical analysis is a musicological approach in hears a vast number of notes, many of them played order to determine the structural components of a simultaneously. The situation is similar to that found musical text, the technical development of the in language. Although music is quite different to discourse, the morphological descriptions and the spoken language, most listeners will still group the understanding of the meaning of the work. Analysis different sounds they hear into motifs, phrases and has complete autonomy in the context of the even longer sections. musicological disciplines as the music philosophy, Schenker was not afraid to criticize what he saw the musical aesthetics, the compositional technique, as a general lack of theoretical and practical the music history and the musical criticism. understanding amongst musicians. As a dedicated performer, composer, teacher and editor of music himself, he believed that the professional practice of 2 Problem Formulation all these activities suffered from serious misunderstandings of how tonal music works.
    [Show full text]
  • Point Counter Point"
    University of Montana ScholarWorks at University of Montana Graduate Student Theses, Dissertations, & Professional Papers Graduate School 1940 Aldous Huxley's use of music in "Point Counter Point" Bennett Brudevold The University of Montana Follow this and additional works at: https://scholarworks.umt.edu/etd Let us know how access to this document benefits ou.y Recommended Citation Brudevold, Bennett, "Aldous Huxley's use of music in "Point Counter Point"" (1940). Graduate Student Theses, Dissertations, & Professional Papers. 1499. https://scholarworks.umt.edu/etd/1499 This Thesis is brought to you for free and open access by the Graduate School at ScholarWorks at University of Montana. It has been accepted for inclusion in Graduate Student Theses, Dissertations, & Professional Papers by an authorized administrator of ScholarWorks at University of Montana. For more information, please contact [email protected]. A1D005 HUXLEY'S USE OF MUSIC IB F o m r c o i m m by Bennett BruAevold Presented in P&rtlel Fulfillment of the Requirement for the Degree of Master of Arte State University of Montana 1940 Approveds û&^'rman of Ëxaminl]^^ ttee W- Sfiairraan’ of Graduate Ccmmlttee UMI Number; EP35823 All rights reserved INFORMATION TO ALL USERS The quality of this reproduction is dependent upon the quality of the copy submitted. In the unlikely event that the author did not send a complete manuscript and there are missing pages, these will be noted. Also, if material had to be removed, a note will indicate the deletion. Dissertation RMishing UMI EP35823 Published by ProQuest LLC (2012). Copyright in the Dissertation held by the Author.
    [Show full text]
  • Harmonic, Melodic, and Functional Automatic Analysis
    HARMONIC, MELODIC, AND FUNCTIONAL AUTOMATIC ANALYSIS Placido´ R. Illescas, David Rizo, Jose´ M. Inesta˜ Dept. Lenguajes y Sistemas Informaticos´ Universidad de Alicante, E-03071 Alicante, Spain [email protected] fdrizo,[email protected] ABSTRACT Besides the interpretation, there are many applications of this automatic analysis to diverse areas of music: edu- This work is an effort towards the development of a cation, score reduction, pitch spelling, harmonic compar- system for the automation of traditional harmonic analy- ison of works [10], etc. sis of polyphonic scores in symbolic format. A number of stages have been designed in this procedure: melodic The automatic tonal analysis has been tackled under analysis of harmonic and non-harmonic tones, vertical har- different approaches and objectives. Some works use gram- monic analysis, tonality, and tonal functions. All these in- mars to solve the problem [3, 14], or an expert system [6]. formations are represented as a weighted directed acyclic There are probabilistic models like that in [11] and others graph. The best possible analysis is the path that maxi- based on preference rules or scoring techniques [9, 13]. mizes the sum of weights in the graph, obtained through The work in [4] tries to solve the problem using neural a dynamic programming algorithm. The feasibility of the networks. Maybe the best effort so far, from our point proposed approach has been tested on six J. S. Bach’s har- of view is that of Taube [12], who solves the problem by monized chorales. means of model matching. A more comprehensive review of these works can be found in [1].
    [Show full text]
  • Birdsong in the Music of Olivier Messiaen a Thesis Submitted To
    P Birdsongin the Music of Olivier Messiaen A thesissubmitted to MiddlesexUniversity in partial fulfilment of the requirementsfor the degreeof Doctor of Philosophy David Kraft School of Art, Design and Performing Arts Nfiddlesex University December2000 Abstract 7be intentionof this investigationis to formulatea chronologicalsurvey of Messiaen'streatment of birdsong,taking into accountthe speciesinvolved and the composer'sevolving methods of motivic manipulation,instrumentation, incorporation of intrinsic characteristicsand structure.The approachtaken in this studyis to surveyselected works in turn, developingappropriate tabular formswith regardto Messiaen'suse of 'style oiseau',identified bird vocalisationsand eventhe frequentappearances of musicthat includesfamiliar characteristicsof bird style, althoughnot so labelledin the score.Due to the repetitivenature of so manymotivic fragmentsin birdsong,it has becomenecessary to developnew terminology and incorporatederivations from other research findings.7be 'motivic classification'tables, for instance,present the essentialmotivic featuresin somevery complexbirdsong. The studybegins by establishingthe importanceof the uniquemusical procedures developed by Messiaen:these involve, for example,questions of form, melodyand rhythm.7he problemof is 'authenticity' - that is, the degreeof accuracywith which Messiaenchooses to treat birdsong- then examined.A chronologicalsurvey of Messiaen'suse of birdsongin selectedmajor works follows, demonstratingan evolutionfrom the ge-eralterm 'oiseau' to the preciseattribution
    [Show full text]
  • Multimodal Deep Learning for Music Genre Classification
    Oramas, S., Barbieri, F., Nieto, O., and Serra, X (2018). Multimodal Transactions of the International Society for Deep Learning for Music Genre Classification, Transactions of the Inter- Music Information Retrieval national Society for Music Information Retrieval, V(N), pp. xx–xx, DOI: https://doi.org/xx.xxxx/xxxx.xx ARTICLE TYPE Multimodal Deep Learning for Music Genre Classification Sergio Oramas,∗ Francesco Barbieri,y Oriol Nieto,z and Xavier Serra∗ Abstract Music genre labels are useful to organize songs, albums, and artists into broader groups that share similar musical characteristics. In this work, an approach to learn and combine multimodal data representations for music genre classification is proposed. Intermediate rep- resentations of deep neural networks are learned from audio tracks, text reviews, and cover art images, and further combined for classification. Experiments on single and multi-label genre classification are then carried out, evaluating the effect of the different learned repre- sentations and their combinations. Results on both experiments show how the aggregation of learned representations from different modalities improves the accuracy of the classifica- tion, suggesting that different modalities embed complementary information. In addition, the learning of a multimodal feature space increase the performance of pure audio representa- tions, which may be specially relevant when the other modalities are available for training, but not at prediction time. Moreover, a proposed approach for dimensionality reduction of target labels yields major improvements in multi-label classification not only in terms of accuracy, but also in terms of the diversity of the predicted genres, which implies a more fine-grained categorization. Finally, a qualitative analysis of the results sheds some light on the behavior of the different modalities in the classification task.
    [Show full text]
  • Introduction to Music Theory
    Introduction to Music Theory This pdf is a good starting point for those who are unfamiliar with some of the key ​ concepts of music theory. Reading musical notation Musical notation (also called a score) is a visual representation of the pitched notes ​ ​ heard in a piece of music represented by dots over a set of horizontal staves. In the top ​ ​ example the symbol to the left of the notes is called a treble clef and in the bottom ​ ​ example is called a bass clef. ​ ​ People often like to use a mnemonic to help remember the order of notes on each clef, ​ ​ here is an example. ​ Intervals An interval is the difference in pitch between two notes as defined by the distance ​ ​ ​ between the two notes. The easiest way to visualise this distance is by thinking of the notes on a piano keyboard. For example, on a C major scale, the interval from C to E is ​ ​ a 3rd and the interval from C to G is a 5th. Click here for some more interval examples. ​ ​ It is also common for an increase by one interval to be called a half­step, or ​ ​ ​ ​ semi­tone, and an increase by two intervals to be called a whole step, or tone. ​ ​ ​ ​ ​ ​ ​ Joe Rees­Jones, University of York, Department of Electronics 19/08/2016 Major and minor scales A scale is a set of notes from which melodies and harmonies are constructed. There are two main subgroups of scales: Major and minor. The type of scale is dependant on the ​ ​ ​ ​ intervals between the notes: Major scale ­ Tone, Tone, Semi­tone, Tone, Tone, Tone, Semi­tone ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ Minor scale ­ Tone, Semi­tone, Tone, Tone, Semi­tone, Tone, Tone ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ For example (by visualising a keyboard) the notes in C Major are: CDEFGAB, and C Minor are: CDE♭FGA♭B♭.
    [Show full text]
  • The Development of Musical Notation Carolyn S
    Cedarville University DigitalCommons@Cedarville The Research and Scholarship Symposium The 2015 yS mposium Apr 1st, 2:20 PM - 2:40 PM Slashes, Dashes, Points, and Squares: The Development of Musical Notation Carolyn S. Gorog Cedarville University, [email protected] Follow this and additional works at: http://digitalcommons.cedarville.edu/ research_scholarship_symposium Part of the Composition Commons, and the Music Theory Commons Gorog, Carolyn S., "Slashes, Dashes, Points, and Squares: The eD velopment of Musical Notation" (2015). The Research and Scholarship Symposium. 5. http://digitalcommons.cedarville.edu/research_scholarship_symposium/2015/podium_presentations/5 This Podium Presentation is brought to you for free and open access by DigitalCommons@Cedarville, a service of the Centennial Library. It has been accepted for inclusion in The Research and Scholarship Symposium by an authorized administrator of DigitalCommons@Cedarville. For more information, please contact [email protected]. Slashes, Dashes, Points, and Squares: The development of Musical Notation Slashes, Dashes, Points, and Squares: The Development of Musical Notation Music has been around for a long time; in almost every culture around the world we find evidence of music. Music throughout history started as mostly vocal music, it was transmitted orally with no written notation. During the early ninth and tenth century the written tradition started to be seen and developed. This marked the beginnings of music notation. Music notation has gone through many stages of development from neumes, square notes, and four-line staff, to modern notation. Although modern notation works very well, it is not necessarily superior to methods used in the Renaissance and Medieval periods. In Western music neumes are the name given to the first type of notation used.
    [Show full text]
  • 7'Tie;T;E ~;&H ~ T,#T1tmftllsieotog
    7'tie;T;e ~;&H ~ t,#t1tMftllSieotOg, UCLA VOLUME 3 1986 EDITORIAL BOARD Mark E. Forry Anne Rasmussen Daniel Atesh Sonneborn Jane Sugarman Elizabeth Tolbert The Pacific Review of Ethnomusicology is an annual publication of the UCLA Ethnomusicology Students Association and is funded in part by the UCLA Graduate Student Association. Single issues are available for $6.00 (individuals) or $8.00 (institutions). Please address correspondence to: Pacific Review of Ethnomusicology Department of Music Schoenberg Hall University of California Los Angeles, CA 90024 USA Standing orders and agencies receive a 20% discount. Subscribers residing outside the U.S.A., Canada, and Mexico, please add $2.00 per order. Orders are payable in US dollars. Copyright © 1986 by the Regents of the University of California VOLUME 3 1986 CONTENTS Articles Ethnomusicologists Vis-a-Vis the Fallacies of Contemporary Musical Life ........................................ Stephen Blum 1 Responses to Blum................. ....................................... 20 The Construction, Technique, and Image of the Central Javanese Rebab in Relation to its Role in the Gamelan ... ................... Colin Quigley 42 Research Models in Ethnomusicology Applied to the RadifPhenomenon in Iranian Classical Music........................ Hafez Modir 63 New Theory for Traditional Music in Banyumas, West Central Java ......... R. Anderson Sutton 79 An Ethnomusicological Index to The New Grove Dictionary of Music and Musicians, Part Two ............ Kenneth Culley 102 Review Irene V. Jackson. More Than Drumming: Essays on African and Afro-Latin American Music and Musicians ....................... Norman Weinstein 126 Briefly Noted Echology ..................................................................... 129 Contributors to this Issue From the Editors The third issue of the Pacific Review of Ethnomusicology continues the tradition of representing the diversity inherent in our field.
    [Show full text]
  • Figured Bass and Tonality Recognition
    Figured Bass and Tonality Recognition Jerome Barthélemy Alain Bonardi Ircam Ircam 1 Place Igor Stravinsky 1 Place Igor Stravinsky 75004 Paris France 75004 Paris France 33 01 44 78 48 43 33 01 44 78 48 43 [email protected] [email protected] ABSTRACT The aim of the figured bass was, in principle, oriented towards interpretation. Rameau turned it into a genuine theory of tonality In the course of the WedelMusic project [15], we are currently with the introduction of the fundamental concept of root. Successive refinements of the theory have been introduced in the implementing retrieval engines based on musical content th automatically extracted from a musical score. By musical content, 18 , 19th (e.g., by Reicha and Fetis) and 20th (e.g., Schoenberg we mean not only main melodic motives, but also harmony, or [10, 11]) centuries. For a general history of the theory of tonality. harmony, one can refer to Ian Bent [1] or Jacques Chailley [2] In this paper, we first review previous research in the domain of harmonic analysis of tonal music. Several processes can be build on the top of a harmonic reduction We then present a method for automated harmonic analysis of a • detection of tonality, music score based on the extraction of a figured bass. The figured • recognition of cadence, bass is determined by means of a template-matching algorithm, where templates for chords can be entirely and easily redefined by • detection of similar structures the end-user. We also address the problem of tonality recognition Following a brief review of systems addressing the problem of with a simple algorithm based on the figured bass.
    [Show full text]
  • Music Genre Classification
    Music Genre Classification Michael Haggblade Yang Hong Kenny Kao 1 Introduction Music classification is an interesting problem with many applications, from Drinkify (a program that generates cocktails to match the music) to Pandora to dynamically generating images that comple- ment the music. However, music genre classification has been a challenging task in the field of music information retrieval (MIR). Music genres are hard to systematically and consistently describe due to their inherent subjective nature. In this paper, we investigate various machine learning algorithms, including k-nearest neighbor (k- NN), k-means, multi-class SVM, and neural networks to classify the following four genres: clas- sical, jazz, metal, and pop. We relied purely on Mel Frequency Cepstral Coefficients (MFCC) to characterize our data as recommended by previous work in this field [5]. We then applied the ma- chine learning algorithms using the MFCCs as our features. Lastly, we explored an interesting extension by mapping images to music genres. We matched the song genres with clusters of images by using the Fourier-Mellin 2D transform to extract features and clustered the images with k-means. 2 Our Approach 2.1 Data Retrieval Process Marsyas (Music Analysis, Retrieval, and Synthesis for Audio Signals) is an open source software framework for audio processing with specific emphasis on Music Information Retrieval Applica- tions. Its website also provides access to a database, GTZAN Genre Collection, of 1000 audio tracks each 30 seconds long. There are 10 genres represented, each containing 100 tracks. All the tracks are 22050Hz Mono 16-bit audio files in .au format [2].
    [Show full text]