150 likes | 354 Views
R. Michael Winters Music Information Retrieval Ichiro Fujinaga 3 April 2012. Music21: A Toolkit for Computer-Aided Musicology And Symbolic Music Data. Music21. Toolkit for symbolic music Written in Python Allows analyzing, searching, and transforming symbolic music . Benefits of Music21.
E N D
R. Michael Winters Music Information Retrieval Ichiro Fujinaga 3 April 2012 Music21: A Toolkit for Computer-Aided Musicology And Symbolic Music Data
Music21 • Toolkit for symbolic music • Written in Python • Allows analyzing, searching,and transformingsymbolic music
Benefits of Music21 • Imports all major symbolic music formats: • MusicXML, Kern, MuseData, ABC, MIDI • Outputs to Lilypond or XMLreader • E.g. Finale or Sibelius • Simple methods for common tasks: (http://mit.edu/music21/)
More benefits • Comes with large corpora already packaged w/ easy access • Bach’s Chorales • Beethoven’s String Quartets • Monteverdi’s Madrigals • Handle’s Messiah
Integration with Python • Music21 written in Python • Widely used, available, free • Python can power querry and analysis • Extracted data can be manipulated in python
Visualization with matplotlib • matplotlib is a free python plotting library • Because extracted music21 data is python data… (Cuthbert 2010)
Creating and Editing Music: • Empty Music21 streams can be filled with notes, parts, and lyrics: (http://mit.edu/music21/)
How it works • Import data parsed into a music21 stream • Not specific to any representation type • Hierarchical but not strictly so • Events are part of many hierarchies (Ariza 2011)
The Structure • Object Oriented Language • Music21 Object is most general object • Music21 Stream is most general container (Ariza 2011)
Hierarchical and Event Based Representation • .flat method switches between both (Ariza 2011)
How to get started: • Download from http://mit.edu/music21/ • Cd into the directory • Open python • Write “from music21 import *” • Parse your score
Online Support and Help: • Documentation and Tutorials: • http://mit.edu/music21/ • Music21 Google group: • http://groups.google.com/group/music21list • Music21 Blog: • http://music21-mit.blogspot.ca/
Thank you! Questions? • Ariza, C., and M. S. Cuthbert. 2010. Modeling beats, accents, beams, and time signatures hierarchically with music21 meter objects. In Proceedings of the International Computer Music Conference, 216–223. San Francisco: International Computer Music Association. • Ariza, C., and M. S. Cuthbert. 2011a. Analytical and compositional appli- cations of a network-based scale model in music21. In Proceedings of the International Computer Music Conference, 701–708. San Francisco: In- ternational Computer Music Association. • Ariza, C., and M. S. Cuthbert. 2011b. The music21 stream: A new object model for representing, filtering, and transforming symbolic musical struc- tures. In Proceedings of the International Computer Music Conference, 61–68. San Francisco: International Computer Music Association. • Buxton, W., W. Reeves, R. Baecker, and L. Mezei. 1978. The use of hierarchy and instance in a data structure for computer music. Computer Music Journal 2 (4): 10–20. • Cuthbert, M. S., and C. Ariza. 2010. music21: A toolkit for computer-aided musicology and symbolic music data. In Proceedings of the International Society for Music Information Retrieval, 637–642. Miami, FL. • Good, M. 2001. An internet-friendly format for sheet music. In Proceedings of XML. • Hewlett, W. B. 1997. Musedata: Multipurpose representation. In E. Selfridge- Field (Ed.), Beyond MIDI: the Handbook of Musical Codes, 402–407. Cam- bridge: MIT Press. • 4Hiller, L. 1981. Composing with computers: A progress report. Computer Music Journal 5 (4): 7–21. • Huron, D. 1997. Humdrum and kern: Selective feature encoding. In E. Selfridge-Field (Ed.), Beyond MIDI: the Handbook of Musical Codes, 371–401. Cambridge: MIT Press. • Oppenheim, I., C. Walshow, and J. Atchley. 2010. The abc standard 2.0. • Pope, S. T. 1996. Object-oriented music representation. Organized Sound 1 (1): 56–68. • Selfridge-Field, E. 1997. Introduction: Describing musical information. In E. Selfridge-Field (Ed.), Beyond MIDI: the Handbook of Musical Codes, 3–38. Cambridge: MIT Press.