CHAPTER 3. Melody Style Mining

Similar documents
AP Music Theory. Sample Student Responses and Scoring Commentary. Inside: Free Response Question 7. Scoring Guideline.

AP Music Theory. Scoring Guidelines

CSC475 Music Information Retrieval

CHAPTER 6. Music Retrieval by Melody Style

Study Guide. Solutions to Selected Exercises. Foundations of Music and Musicianship with CD-ROM. 2nd Edition. David Damschroder

Keys Supplementary Sheet 11. Modes Dorian

CPU Bach: An Automatic Chorale Harmonization System

All rights reserved. Ensemble suggestion: All parts may be performed by soprano recorder if desired.


TOWARD AN INTELLIGENT EDITOR FOR JAZZ MUSIC

Active learning will develop attitudes, knowledge, and performance skills which help students perceive and respond to the power of music as an art.

On time: the influence of tempo, structure and style on the timing of grace notes in skilled musical performance

Comparison of Dictionary-Based Approaches to Automatic Repeating Melody Extraction

The high C that ends the major scale in Example 1 can also act as the beginning of its own major scale. The following example demonstrates:

MUSIC PERFORMANCE: SOLO

Texas State Solo & Ensemble Contest. May 25 & May 27, Theory Test Cover Sheet

Music Department Columbia University Ear Training Curriculum, Fall 2012 Sing and Play at the Piano Face the Music

Automated extraction of motivic patterns and application to the analysis of Debussy s Syrinx

Lesson 9: Scales. 1. How will reading and notating music aid in the learning of a piece? 2. Why is it important to learn how to read music?

Theory D-examination 1

Curriculum Development In the Fairfield Public Schools FAIRFIELD PUBLIC SCHOOLS FAIRFIELD, CONNECTICUT MUSIC THEORY I

Music Theory AP Course Syllabus

GRADUATE/ transfer THEORY PLACEMENT EXAM guide. Texas woman s university


Piano Syllabus. London College of Music Examinations

Comprehensive Course Syllabus-Music Theory

Unit 5b: Bach chorale (technical study)

Student Performance Q&A:

Music Composition with RNN

Celebrate Theory. Level 8 Worksheets

Music, Grade 9, Open (AMU1O)

MTO 22.1 Examples: Carter-Ényì, Contour Recursion and Auto-Segmentation

AP Music Theory Course Planner

Characteristics of Polyphonic Music Style and Markov Model of Pitch-Class Intervals

Student Performance Q&A:

AP Music Theory 2013 Scoring Guidelines

MUSIC THEORY CURRICULUM STANDARDS GRADES Students will sing, alone and with others, a varied repertoire of music.

AP MUSIC THEORY STUDY GUIDE Max Kirkpatrick 5/10/08

MUSIC: CONTEMPORARY MUSIC

AP MUSIC THEORY 2006 SCORING GUIDELINES. Question 7

TREE MODEL OF SYMBOLIC MUSIC FOR TONALITY GUESSING

ST. JOHN S EVANGELICAL LUTHERAN SCHOOL Curriculum in Music. Ephesians 5:19-20

MUSIC GROUP PERFORMANCE

Level 2 Music, Demonstrate knowledge of conventions in a range of music scores pm Wednesday 28 November 2012 Credits: Four

HS/XII/A. Sc. Com.V/Mu/18 MUSIC

A probabilistic framework for audio-based tonal key and chord recognition

NCEA Level 2 Music (91275) 2012 page 1 of 6. Assessment Schedule 2012 Music: Demonstrate aural understanding through written representation (91275)

An Integrated Music Chromaticism Model

2016 HSC Music 1 Aural Skills Marking Guidelines Written Examination


PLANE TESSELATION WITH MUSICAL-SCALE TILES AND BIDIMENSIONAL AUTOMATIC COMPOSITION

CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER 9...

A repetition-based framework for lyric alignment in popular songs

Figured Bass and Tonality Recognition Jerome Barthélemy Ircam 1 Place Igor Stravinsky Paris France

11.1 Identify notes with scale degree numbers

Composer Style Attribution

Music Theory Syllabus Course Information: Name: Music Theory (AP) School Year Time: 1:25 pm-2:55 pm (Block 4) Location: Band Room

Developing Your Musicianship Lesson 1 Study Guide

MUSC 133 Practice Materials Version 1.2

SAMPLE ASSESSMENT TASKS MUSIC CONTEMPORARY ATAR YEAR 12

Building a Better Bach with Markov Chains

Music F193: Introduction to Music Theory

MMTA Written Theory Exam Requirements Level 3 and Below. b. Notes on grand staff from Low F to High G, including inner ledger lines (D,C,B).

AP/MUSIC THEORY Syllabus

Elements of Music - 2

Music Theory. Level 3. Printable Music Theory Books. A Fun Way to Learn Music Theory. Student s Name: Class:

Visual Arts, Music, Dance, and Theater Personal Curriculum

HS Music Theory Music

CHAPTER ONE TWO-PART COUNTERPOINT IN FIRST SPECIES (1:1)

FINE ARTS Institutional (ILO), Program (PLO), and Course (SLO) Alignment

AP Music Theory 2010 Scoring Guidelines

AP Music Theory COURSE OBJECTIVES STUDENT EXPECTATIONS TEXTBOOKS AND OTHER MATERIALS

MUSIC CONTEMPORARY. Western Australian Certificate of Education Examination, Question/Answer Booklet. Stage 3

PART-WRITING CHECKLIST

Calculating Dissonance in Chopin s Étude Op. 10 No. 1

Higher National Unit Specification. General information. Unit title: Music: Songwriting (SCQF level 7) Unit code: J0MN 34. Unit purpose.

Theory of Music Grade 5

Lesson Two...6 Eighth notes, beam, flag, add notes F# an E, questions and answer phrases

Creating a Feature Vector to Identify Similarity between MIDI Files

Student Performance Q&A: 2001 AP Music Theory Free-Response Questions

2013 Assessment Report. Music Level 1

Music Theory. Fine Arts Curriculum Framework. Revised 2008

AP Music Theory. Sample Student Responses and Scoring Commentary. Inside: Free Response Question 5. Scoring Guideline.

Sequential Association Rules in Atonal Music

Course Overview. At the end of the course, students should be able to:

MUSIC PERFORMANCE: SOLO

A wavelet-based approach to the discovery of themes and sections in monophonic melodies Velarde, Gissel; Meredith, David

Perceptual Evaluation of Automatically Extracted Musical Motives

Music Segmentation Using Markov Chain Methods

Syllabus List. Beaming. Cadences. Chords. Report selections. ( Syllabus: AP* Music Theory ) Acoustic Grand Piano. Acoustic Snare. Metronome beat sound

Alleghany County Schools Curriculum Guide

AP MUSIC THEORY 2016 SCORING GUIDELINES

Keyboard Theory and Piano Technique

COURSE OUTLINE. Corequisites: None

AP Music Theory Syllabus

AP MUSIC THEORY 2011 SCORING GUIDELINES

THE importance of music content analysis for musical

SCALES AND KEYS. major scale, 2, 3, 5 minor scale, 2, 3, 7 mode, 20 parallel, 7. Major and minor scales

Music Curriculum Glossary

Past papers. for graded examinations in music theory Grade 6

Transcription:

CHAPTER 3 Melody Style Mining 3.1 Rationale Three issues need to be considered for melody mining and classification. One is the feature extraction of melody. Another is the representation of the extracted features. The third one is the mining and classification technique. Some possible features of melody include the pitch sequences, interval or pitch contour, and the distribution of pitch. However, these features are not adequate for music style mining. Our approach is to utilize the chords based on the harmony to extract features for melody style mining. The harmony is dependent on the melody. It is the chords with which a melody was accompanied. Therefore, we can find the chords according to the melody sequence. Figure 3.1 illustrates the reasons that we choose chord as the feature for melody style mining. Figure 3.1(a) and Figure 3.1(b) show two different music segments. These two segments are similar in terms of either melody sequence or pitch contour. However, their music styles and feelings are quite different. The assigned chord sequences in Figure 3.1(a) and Figure 3.1(b) response to this difference. On the other hand, both music segments shown in Figure 3.1(c) and Figure 3.1(d) are composed by Bach. Their pitch contour sequences are dissimilar while the chords assigned to these two music segments are the same. A chord is a combination of three or more notes that sound simultaneously. Triad and 7 th chord are two commonly used chord forms. A triad is composed of three different notes, 9

and there are four triad chord types major, minor, diminished and augmented triad. The 7 th chords consist of four notes and there are five types of 7 th chords commonly used in harmony dominant, major, minor, half diminished and fully diminished 7 th chords. Figure 3.2 shows these types of triad and seventh chords, from the left to the right, they are C major, C minor, C diminished, C augmented triad, C major 7 th, C dominant 7 th, C minor 7 th, C half diminished 7 th and C fully diminished 7 th chords. The representation of the chords described above related to the absolute pitch of the root note rather than the key of the music. For example, the triad composed of Do, Mi and Sol is called C whether in the music of the key of C major or F minor. However, the feelings of triad C in the key of C and F are dissimilar. Moreover, while a song modulates, the collocation chords would be different because all notes would shift. Figure 3.3 shows the influence of the modulation on the representation of chords. To solve this problem, in musicology, Roman numerals Ⅰ, Ⅱ, Ⅲ, Ⅳ, Ⅶ are used to represent note name of the chords with respect to the key. For example, Figure 3.4 shows the Roman numeral representations for triads in the key of C major, they are I, Ⅱm, Ⅲm, Ⅳ Ⅶdim. In Figure 3.3, the chord names in brackets are in the Roman numeral representation. 10

Figure 3.1: Examples of segments and the assigned chords. Figure 3.2: Commonly used types of triad and seventh chords (In C major). φ Figure 3.3: Example of the song modulation. 11

Figure 3.4: Examples of Roman numeral representations for the key of C major chords. 3.2 Melody Extraction MIDI consistfs of more than one channel, and a number of notes may sound at the same time. We have to extract the monophonic melody accurately from MIDI first. Four melody extraction methods have been proposed in [37]: 1. All-mono: Merge all channels and remove all notes which sound simultaneously except for the highest note. 2. Entropy-channel: Keep the highest note of each channel, and select the channel with largest entropy. 3. Entropy-part: Use heuristic to segment each channel into parts and select the highest entropy parts. 4. Top-channel: Keep channel with highest average pitch and remove all other notes that sound simultaneously except for the highest note. Experimental result has shown that all-mono algorithm is more accurate among these four methods [37]. However, all-mono algorithm does not consider some useful information contained in the MIDI files, such as the instrument or volume. We improved the all-mono to get more precise melody sequence; the modified method contains three steps: 12

1. Remove channels of instruments, which are unlikely for melody performing. For example, drum and cymbal only perform fixed pitch and we can remove these channels. 2. For each measure, select the channel of the largest volume. The reason is that volume of melody is usually the largest, and it does not change channel constantly, so melodies of first-half and second-half measures are in the same channel. 3. For the selected channel of each measure, keep the highest note while several notes sound simultaneously. In Figure 3.5, the first staff shows an example of a music segment [37]. The second staff shows the extracted melody using all-mono. Our method extracts the melody accurately, which is shown in the third staff of Figure 3.5. Figure 3.5: Examples for melody extraction. 13

3.3 Chord Assignment To match up the chords and melody, we develop the chord assignment method based on the music theory and guitar chords progression rules. The chord assignment algorithm we proposed is a heuristic method based on the music theory and Harmony [30] to match up the chords and melody. We choose 60 common chords as the candidates and count score for each chord. Before the process of chord assignment, we should decide the frequency that the chords are assigned to the melody. In other words, the sampling unit which is the basic unit to assign chords should be decided. In general, a measure would be assigned one chord or two chords when the density of notes in a measure is dense. We first find the prevailing note, whose total duration is longest. If the prevailing note is half note, quarter note, and eighth note, the sampling unit is four measures, two measures and one measure respectively. Figure 3.6 shows the algorithm of determining sampling unit. Figure 3.7 shows the Chord Assignment algorithm. In this algorithm, we do the following two stages for each sampling unit. Stage 1: We first consider the relationship between melody and chords. In this stage, we give scores to the chord candidates according to the following reasons: First, in most cases, music starts and ends with Tonic chord (chord I). Therefore, we give high score (ten points) to chord I while processing the first or the last sampling unit. Second, it would be more harmonious if melody sounds simultaneously with chords of the same pitch as melody. Moreover, the longer the pitch s duration in the sampling unit, the stronger influences to the chord assignment. 14

Stage 2: If the chord with the highest score in stage one is not unique and current sampling unit is not the first of the music, we count chord scores based on chord progression and root motion further. Both chord progression and root motion consider the relationship between preceding and current chords. Especially, in many forms of music, standardized chord progressions are often used. The chord progression describes that dissonant chord is not stable and tends to progress to some stable chords to make the music feels completely. Root motion states that some intervals of adjacent chords roots sound better than others. In the Chord Assignment algorithm in Figure 3.7, lines 14 to 24 deal with the chords which are not stable and add scores according to the root motion mentioned above. In the last step of the algorithm, if there is more than one chord with the highest score, we assign a set of highest-score chords, named as the chord-set. The chords shown in Figure 3.1 are assigned according to the Chord Assignment algorithm. Algorithm Determine-Sampling-Unit Input: music object m Output: sampling unit SU 1. Count the occurrence times C n for all types of notes in m 2. if maxcn = Csixteenth note and Csixteenth note 2 Ceighth note then n 3. SU = duration of half measure 4. else SU = duration of one measure 5. return SU Figure 3.6 : Determine-Sampling-Unit Algorithm. 15

Algorithm Chord-Assignment Input: previous chord-set pre_c, sampling unit SU Output: chord-set CS /* Chord-Assignment-Stage1 */ 1. set scores of each chord c S c to zero. 2. if SU I ( FirstMeasure U LastMeasure) φ then S chord I +=10 3. for each distinct pitch p accumulate the duration D(p) 4. P = { all longest pitches p} 5. if max D ( p) 0. 5 SU then score = 2 6. else if P = 1then score = 1 else score = 0 7. for each chord c do 8. for each distinct pitch p in SU do 9. if c contains p then S c ++ 10. if c I P φ then S c += score 11. if cardinality of { c S c = max Si} = 1 then return c i 12. else if SU I FirstMeasure = φ do /* Chord-Assignment-Stage2 */ 13. for each chord c do 14. if root(pre_c)!= leading note and root(c) is descending 5 th, descending 3 rd or descending 4 th of root(pre_c) then S c += 2 15. if root(pre_c) is subdominant, dominant or leading note and root(c) is ascending 2 nd then S c += 2 16. if pre_c = Ⅰ7 and c =Ⅳ or 17. pre_c = Ⅱ7 and c =Ⅴ or 18. pre_c = Ⅲ7 and c =Ⅵ or 19. pre_c = Ⅳ7 and c =Ⅴ or 20. pre_c = Ⅵ7 and c = II or 21. pre_c = Ⅶ7 and c =Ⅲ then S c += 2 22. if pre_c = Ⅴ7 then 23. if c =Ⅰor c = Ⅵ then S c += 2 24. if c = V then S c += 1 25. if cardinality of { c S c = max Si} = 1 then return c i 26. else for each chord c do 27. if root(c) = lowest pitch in SU then S c += 2 28. return CS = c S c = max S } { i i Figure 3.7: Chord Assignment Algorithm. 16

3.4 Melody Feature Representation After determining the chord-set respective to each sampling unit, melody can be treated in the following different ways: 1. Set of chord-sets: melody is represented as a set of items, where each item is a chord-set. 2. Set of bigrams: melody is represented as a set of bi-grams of chord-sets. A bi-gram is an adjacent pair of chord-sets extracted from a sequence of chord-sets. Therefore, a melody with n units consists of (n-1) bi-grams. 3. Sequence of chord-sets: melody is represented as a sequence of chord-sets. In this way, a melody with n units is actually an n-gram. Table 3.1 shows an example of three types of melody feature representation. Table 3.1: Example of chord-sets representation. Original chord { Ⅰ}{ Ⅵm }{ Ⅴ7,II}{ Ⅵ m } Set of chord-sets {{ Ⅰ}, { Ⅴ7, II}, { Ⅵ m}} Set of bigrams {( ⅠⅥm), ( Ⅵm { Ⅴ7,II}), ({ Ⅴ7,II} Ⅵ m) } Sequence of chord-sets ({ Ⅰ} { Ⅵm } { Ⅴ7, II} { Ⅵ m}) Moreover, in terms of music form, melody may include the introduction, verse, chorus, interlude, bridge and ending. The chorus usually repeats several times and is the most memorable part. We also extract the chorus which is the repeating pattern in a melody sequence. The extracted chorus is therefore associated with the chord-sets and represented in the above ways the same as the whole melody. We implemented the repeating pattern finding 17

algorithm proposed in [13]. This algorithm constructs the correlative matrix from melody sequence and uses this matrix to find out the repeating patterns. 3.5 Melody Mining In order to obtain the interesting hidden relationships between the extracted features and music styles, two frequent pattern mining methods, developed in the data mining field, are utilized with respect to three representations of the melody feature. If the melody feature is represented as the set of chord-sets or the set of bi-grams, the concept of frequent itemset in the association rule mining is utilized [1]. A typical application example of association rule mining is market basket analysis, which discovers customers purchasing behaviors by finding association relationships among items purchased by the customers. In market basket analysis, the transaction database records the transactions of the customers. Each transaction is an itemset consisting of the items purchased by the customer in this transaction. Frequent itemset denotes the items which are frequently purchased together by most customers. For example, most customers purchase milk, bread and butter together. In the terminology of association rule mining, support of an itemset is defined as the percentage of transactions which contain this itemset. Given the minimum support specified by the user, an itemset is frequent if its support is larger than the minimum support. In our approach, each transaction corresponds to the set of chord-sets of a specific music. In other words, in the terminology of association rule mining, a chord-set is corresponding to an item. The frequent itemset denotes the set of chord-sets which are accompanied together with the melodies of most music of a style. For example, assume that there is the frequent item-set {{I}, {V, Ⅵm7}, {V}} for the lyric-style music, this represents 18

that the extracted chords of a great part of lyric-style music consist of chord-set {I}, {V, VIm7} and {V} together. The same concept is applied for representation of set of bigrams. That is, a bigram of chord-sets corresponds to an item in the terminology of association rule mining. We implemented the Apriori algorithm [1] to find the frequent itemsets. If the melody feature is represented as the sequence of chord-sets, to find the common characteristics of music of the same style, we propose a new type of pattern frequent consecutive sequential pattern. The concept of frequent consecutive sequential pattern is modified from that of sequential pattern [2] in sequence data mining techniques. The consecutive sequential pattern is consecutive, which differs from the original sequential pattern. A consecutive sequential pattern is said to be contained in a transaction if the consecutive sequential pattern is a consecutive subsequence of this transaction. For example, the consecutive sequential pattern ({V, Ⅵm7}, {V}, {I, III, Vim7}) is contained in the transaction ({I}, {V, Ⅵm7}, {V}, {I, III, Vim7}) while ({V, Ⅵm7}, {I, III, Vim7}) is not. The support of a consecutive sequential pattern is defined as the percentage of transactions which contain this pattern. Given the minimum support specified by the user, a consecutive sequential pattern is frequent if its support is larger than the minimum support. We modified the join step of the Apriori-based sequential pattern mining algorithm to find frequent consecutive sequential pattern. 19