Machine Learning Applied To Musical . - HMC Computer Science

3y ago
23 Views
3 Downloads
6.68 MB
54 Pages
Last View : 9d ago
Last Download : 3m ago
Upload by : Joanna Keil
Transcription

Machine LearningApplied to MusicalImprovisationRobert M. KellerHarvey Mudd CollegeConstructive Machine Learning WorkshopNIPS 2013, 10 December 2013Lake Tahoe, Nevada, USA

AbstractDevelopment of music education software inevitablyleads to questions of how to acquire musical knowledgeto be made available to the student user. I will describemachine learning of patterns for accompaniment stylesand grammars for improvisation, based on melodicabstraction, clustering, and chaining. I will also discusssupervised and unsupervised approaches toimprovising over chord progressions using neuralnetwork. Finally, I will mention a challenging unsolvedapplication: learning to classify idiomatic patterns inchord progressions.

Collaborators forMachine Learning AspectsJon GillickKevin TangJim HeroldBrandy McMenamySayuri SoejimaHayden BlauzvernGreg BickermanSam BosleyPeter SwireKevin Choi

Context: Educational Music Softwaren Intelligent Music Software Project atHarvey Mudd Collegen Impro-Visorn n n n Style pattern learningMelodic grammar learningMelody generation using neural network criticRBM-provisor: Using Deep-Belief Networksn Melody generation using unsupervised learning

Two Major Music Universesn Audio (mp3, wav, AIFF, au, )n SymbolicMIDI “Musical Instrument Digital Interface”

Example: SmartMusicMakeMusic, Inc.n Provides feedback for student practice sessions(“used by over 75,000 students worldwide”)n http://www.youtube.com/watch?v xhYXO6TPKw4n Developed by Prof. Roger Dannenberg at CMU.n Proprietary

Learningn n Intelligent software can also “learn”,so as to improve its ability to makedecisions beneficial to the user.Also ideally, humans can learn from thesoftware, whether or not the softwarelearns.

Music Plus One (formerly Music )Prof. Chris Raphael, Indiana Universityn n n Uses Hidden Markov ModelsVirtual orchestra anticipates playerʼstempo, follows retakes, etc.http://www.music.informatics.indiana.edu/ craphael/music plus one/index.html

CreativityIdeally, intelligent music software can also“create”, i.e. use its ability to makedecisions to produce new results that willinform or intrigue the user.

GenJam (Genetic Jammer)n Prof. Al Biles, Rochester Inst. of TechnologyImprovises jazz solosn Trades interactively with human soloist.n n n http://www.youtube.com/watch?v xWHU8uE043gLearning based onGenetic AlgorithmProprietary code

HMC Intelligent Music Software Projectn n Oriented toward helping musicians learnto improviseFocus is on jazz education,but not limited to jazz

Impro-Visorn n Short for “Improvisation Advisor”.A software “workbook” that canlearning to improvise by:n n n Helping users write out solosCreating solos while trading with userPlaying backing accompaniments

Impro-Visor Parametersn Much musical information is in the formof user-editable text files:n Vocabulary definesScales, Chords, Cells, Idioms, Licks, Quotesn Styles governHow accompaniment is played and soundn Grammar creates melodiesSomewhat in the style of specific playersn Leadsheet specifiesn n Chord progressionMelody, solos

Leadsheet vs. Sheet Music1 bar of a leadsheetIn a leadsheet, theaccompaniment aspectis left to the performer.1 bar of sheet music

Impro-Visor Leadsheet View

User Constructing a SoloEntry Options: Point-and-click Cut-and-paste Textual Midi-keyboard

Note Coloration: Chord-RelatedPart of the “Advisor” aspect of Impro-VisorBlue: Half-step away from chord or color(called “approach” tone).Red: None of the others (“outside”).Green: tone not in the chord, but sonorous with it(called “color” tone).Black: tone in the chord

A Helpful Insightn Note coloration categories, originallyintended to educate users, can beuseful for machine learning aspects.n Use in Grammar Learningn Use in Critic Development

Generating Licks for Examplesn Lick a short melodic phrasen n n sometimes idiomaticsometimes originalPrior to introducinglick generation,Impro-Visor used adatabase to storelick suggestions.

Probabilistic Grammar Illustrationn We could fill a beat with a variety of rhythms:.n n Let B denote one beat of musicA grammar represents all of thesepossibilities:B X4B X8 X8B X8 X16 X164 means quarter note8 means eighth noteetc.Here X4, X8, X16 are understood “terminal” symbols,while B is a non-terminal to be expanded.

Probabilistic Grammar Illustrationn n n Assign a probability to the various choicesProbabilities will then dictate a prevalent styleA grammar represents a distribution of thesepossibilities:B X4B X8 X8B X8 X16 X16p 0.3p 0.6p 0.1commonfrequentrare

Grammars Can ExhibitHierarchy and Recurrencen Instead ofB X4B X8 X8B X8 X16 X16n commonfrequentrarep 0.3p 0.7p 0.8p 0.2commonfrequentvery frequentrareUseB X4B CCC X8C X16 X16n p 0.3p 0.6p 0.1Generatesp 0.3 p 0.448p 0.112p 0.112p 0.028

Recurrence Allows a Grammar toFill an Arbitrary Number of Beatsn R BROne beat, then moren R emptyNo moren So R can produce B, BB, BBB, BBBB,etc.

Abstract vs. Real MelodiesA real melodyon the staffand as textc 8 ab8 bb8 e8 db4 d8 f8Abstract melody as text:C8 C8 C8 C8 L4 C8 C8Two other melodies withthe same abstract melodyd 8 bb8 f8 ab8 g4 b8 f 8C Chord toneL coLor tone8 8th note4 quarter noterg8 bb8 f8 ab8 db 4 f 8 g# 8

Markov Chains in Grammarsn n Recurrent productions allow us to embed anarbitrary Markov chain in the grammar.The reason for wanting this will be explainedshortly.Markov chainGrammar

A Complete Grammar(Terminals in Bold)(startsymbol P)(base (P 0) () 1.0)(rule (M4) (A4) 0.01)(rule (M4) (C4) 0.2)(rule (M4) (C4) 0.1)(rule (M8) (A8) 0.01)(rule (M8) (C8) 0.4)(rule (M8) (C8) 0.2)(rule (M8) (C8) 0.1)(rule (N2) (C2) 1.0)(rule (N4) (M4) 0.75)(rule (N4) (R4) 0.25)(rule (N8) (M8) 0.9)(rule (N8) (R8) 0.1)(rule (P Y) (Seg1 (P (- Y 120))) 0.0010)(rule (P Y) (Seg2 (P (- Y 240))) 0.25)(rule (P Y) (Seg4 (P (- Y 480))) 0.75)(rule (Seg1) (C4) 1.0)(rule (Seg2) (N2) 0.06)(rule (Seg2) (N8 C4.) 0.3)(rule (Seg2) (V2) 0.3)(rule (Seg2) (V4 V4) 0.6)(rule (Seg2) (V8 N4 V8) 0.12)(rule (Seg2) (V8 V8 V8 V8) 0.6)(rule (Seg4) (C4. N8 Seg2) 0.1)(rule (Seg4) (C4/3 C4/3 C4/3 Seg2) 0.02)(rule (Seg4) (Seg2 C4/3 C4/3 C4/3) 0.02)(rule (Seg4) (Seg2 V4 V4) 0.52)(rule (Seg4) (V8 N4 N4 N4 V8) 0.01)(rule (V2) (C16 C16 C16 C16 M4) 0.05)(rule (V2) (C16/5 C16/5 C16/5 C16/5 C16/5 M4) 0.0050)(rule (V2) (C8 C8 C8 C8) 0.3)(rule (V2) (C8/5 C8/5 C8/5 C8/5 C8/5) 5.0E-4)(rule (V4) (C8/3 C8/3 A8/3) 0.01)(rule (V4) (C8/3 C8/3 C8/3) 0.05)(rule (V4) (C8/3 C8/3 C8/3) 0.02)(rule (V4) (N4) 0.22)(rule (V4) (V8 V8) 0.72)(rule (V8) (C16 A16) 0.01)(rule (V8) (N8) 0.99)

Grammar Learning Featuren n n Impro-Visor can learn a grammar byexamining one or more transcribed solos.For greater coherence special constructcalled a slope is introduced, from whichmelodic contours can be constructed.Slopes can appear in the rules in the place ofterminals.

Slopes Encode Contours

Grammar Learning Algorithmenables grammar to be learned from anscriptionofDaveLiebmanʼsSoloonPicadillyLilly:

Grammar Learning Interface

From Transcription to GrammarTranscriptionGrammarA A0B(p 0.8)A A0C(p 0.2)B B0(p 1)C C0(p 1)2- sMarkov- chosen

Example: Dave Liebman Grammar Excerpt(The full grammar is over 1000 lines)(startsymbol P)(base (P 0) () 1.0)(rule (P Y) (Seg1 (P (- Y 120))) 1.0)(rule (Seg1) (C4) 1.0)(rule (P Y) ((START 1) (P (- Y 480))) 1.0)(rule (P Y) ((START 2) (P (- Y 960))) 10.0)(rule (P Y) ((START 4) (P (- Y 1920))) 100.0)(rule (P Y) ((START 8) (P (- Y 3840))) 1000.0)(rule (START Z) ((Cluster0 Z)) 0.03)(rule (START Z) ((Cluster1 Z)) 0.02)(rule (START Z) ((Cluster2 Z)) 0.07)(rule (START Z) ((Cluster3 Z)) 0.08).(rule (START Z) ((Cluster28 Z)) 0.08)(base (Cluster0 0) () 1)(base (Cluster1 0) () 1).(base (Cluster28 0) () 1)(base (Cluster0to3 0) () 1)(base (Cluster0to4 0) () 1)(base (Cluster0to11 0) () 1).(base (Cluster28to28 0) () 1)(rule (Cluster0 Z) (Q0 (Cluster0to3 (- Z 1))) 0.33)(rule (Cluster0 Z) (Q0 (Cluster0to4 (- Z 1))) 0.11).(rule (Cluster28to28 Z) (Q28 (Cluster28to13 (- Z 1))) 0.33)(rule (Q0)((slope 0 0 C2)(slope -4 -4 R4 8 L8)) 0.20)(rule (Q0)((slope 0 0 C4)(slope -2 -2 R4 8 L8)(slope 1 5 X8 A8)) 0.20)(rule (Q0)((slope -2 -1 L2)(slope -4 -4 R4 8 L8)) 0.20).(rule (Q28)((slope 2 4 L4 8)(slope -2 -1 A8 C8 L8 C8)(slope 2 2 L8)) 0.20)

Style Learning in Impro-Visorn n n n Style Patterns are used (along with chordsequence) in creating accompaniment.Patterns are like a non-recursive grammar.Impro-Visor can learn a style specification(in its own language), given a MIDI file of aperformance in that style.As with grammar learning, clustering is used.

Style Patterns Represented GraphicallyStyle Spreadsheet“Piano roll” for one column of spreadsheet

A Different Approach to LearningRBM-provisorn n n n Applies Restricted Boltzmann Machines (RBMs)stacked as Deep Belief Networks (Geoffrey Hinton).RBMs are neural networks based on probabilities ofswitching, determined by unsupervised learning ofsynaptic weights.An RBM tries to learn a set of concepts based on aset of input samples: melodies over chords.RBM’s stabilize to probability distributionsreflecting those concepts, and can generate musicprobabilistically, as can grammars.

Deep Belief Network Rationalen n Try to learn with as little wired-inmusical knowledge as possible.Use probabilistic behavior of network togenerate novelty.

Deep Belief NetworksGeoffrey Hinton, U. of Toronton n Hinton demonstrated how a stack of RBMʼs canlearn higher order concepts sufficient to performtasks such as digit recognition.We applied a similar idea tolearning concepts thatproduce melodies overchord progressions.

Pattern learning and generationinspired by G. Hinton

Restricted Boltzmann Machines vs.Deep Belief NetworksDBN (3-layer)RBMDeeperConcepts

Data Representationstrike/restpitchesoctave

Improvising Jazz with aDeep Belief NetworkMelody OutChord Progression In

Moving Window Training Approach

RBM-provisor ExamplesRandom output from Untrained NetworkExample from Training SetOutput from Trained Network

Issues with Deep Belief Approachn n n Learning is very slowSo far, not enough variety compared towhat grammars can do.Thus too soon to integrate withImpro-Visor

Neural Network Critic forImproved ImprovisationRecent work by Hayden Blauzvern andthe speakerIntegrated into the development version ofImpro-Visor (v 6.0, not yet released)

Using a CriticTryArbitraryLickGeneratorRetryCritic assignsGradePassingGradeUseFailingGradeReject

New Critic Data Representation(compared to RBM-provisor)n n n Learn abstract note categories over chordsrather than absolute pitches.Learn pitch intervals between successivenotes rather than absolute pitches.Use non-uniform sub-divisionrepresentation for note durations rather thanuniform spacing and tie bits.(Partly motivated by accenting concerns.

Critic Melody Note Representation

Style Recognition, One NN per Style Grammar generated soloso 32 measures, 16-bar blues50 generations for 22 musiciansGrade Confidence score

Other Recent Workn n n Automate analysis of idiomatic harmonicsequences (“chord bricks”) and key centers.Helps musicians understand tuneconstruction.Helps players recognize the importance ofkey centers in improvisation.

Analyzing a Tune using BricksInput Chord ProgressionCm69 / Fm7 / Impro-VisorDm7b5 G7alt Cm69 / Ebm7 Ab7 DbM7 / Dm7b5 G7alt Cm69 Dm7b5 G7alt Open ML Problem:How to learn theBrick Dictionary?Output RoadmapInputChordsInferredKeyBrickNameJoin Names(yellow tags)

Other Future Work:Bricks as a Basis for Grammar LearningSee: http://www.cs.hmc.edu/ keller/jazz/improvisor/licks/

Concludingn Unsupervised learning:n n n Clustering to produce GrammarsDeep-Belief Networks (stacked RBMs)Supervised learning:n Training an MLP Melody Critic

Some Referencesn n n n Gillick, Tang, and Keller, Machine Learning of Jazz Grammars,Computer Music Journal, 34:3, pp. 56-66, Fall 2010, MIT Press."Bickerman, Bosley, Swire, and Keller, Learning to Create JazzMelodies Using Deep Belief Nets, Proc. First InternationalConference on Computational Creativity, 228-237, January, 2010.Keller, Schofield, Toman-Yih, Merritt,A Creative Improvisation Companion Base on Idiomatic HarmonicBricks, Proc. Third ICCC, June, 2012.Keller, Schofield, Toman-Yih, Merritt, and Elliott, Automating theExplanation of Jazz Chord Progressions Using Idiomatic Analysis,Computer Music Journal, 37:4, pp. 54-69, Winter 2013, MIT Press.

Style Learning in Impro-Visor ! Style Patterns are used (along with chord sequence) in creating accompaniment. ! Patterns are like a non-recursive grammar. ! Impro-Visor can learn a style specification (in its own language), given a MIDI file of a performance in that style. ! As with grammar learning, clustering is used.

Related Documents:

Chapter 7 : The Musical Measuring Unit 7.1 The Egyptian Musical Complement 55 7.2 The Egyptian Musical Measuring Units 56 7.3 The Comma, Buk-nunu, and the Siamese Twins 59 7.4 The Comma and the Musical Instruments 60 55 PART IV : THE EGYPTIAN MUSICAL BUILDING CODE Chapter 8 : The Musical Framework Varieties 8.1 The Overall Tone System 65

decoration machine mortar machine paster machine plater machine wall machinery putzmeister plastering machine mortar spraying machine india ez renda automatic rendering machine price wall painting machine price machine manufacturers in china mail concrete mixer machines cement mixture machine wall finishing machine .

Machine learning has many different faces. We are interested in these aspects of machine learning which are related to representation theory. However, machine learning has been combined with other areas of mathematics. Statistical machine learning. Topological machine learning. Computer science. Wojciech Czaja Mathematical Methods in Machine .

Bye Bye Birdie MUSICAL Stewart Tams Large Bingham West Jordan Copper Hills Calamity Jane MUSICAL Tams Large Camelot MUSICAL Lerner & Loewe Tams Large . Sound of Music, The MUSICAL Rodgers R & H Large Female heavy 9 men including children . HIGH SCHOOL THEATRE APPROVED MUSICAL LIST Revised

Musical Theatre has steadily become the world's most popular live theatre form and the dominant lyric theatre form since the mid-19th century. Encompassing a range of styles and genres, Musical Theatre has also been called Operetta, Opera Comique, Musical Comedy, Musical Drama, Music Theatre, and simply 'a Musical' since its inception.

Machine Learning Real life problems Lecture 1: Machine Learning Problem Qinfeng (Javen) Shi 28 July 2014 Intro. to Stats. Machine Learning . Learning from the Databy Yaser Abu-Mostafa in Caltech. Machine Learningby Andrew Ng in Stanford. Machine Learning(or related courses) by Nando de Freitas in UBC (now Oxford).

Machine Learning Machine Learning B. Supervised Learning: Nonlinear Models B.5. A First Look at Bayesian and Markov Networks Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Computer Science University of Hildesheim, Germany Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL .

Machine Learning and Econometrics This introductory lecture is based on –Kevin P. Murphy, Machine Learning A Probabilistic Perspective, The MIT Press, 2017. –Darren Cook, Practical Machine Learning with H2O, O'Reilly Media, Inc., 2017. –Scott Burger, Introduction to Machine Learning