Week 11 Music as Data

Similar documents
Music Representation and Music Information Retrieval

APPENDIX A: ERRATA TO SCORES OF THE PLAYER PIANO STUDIES

Representing, comparing and evaluating of music files

Music Theory Courses - Piano Program

Music Theory Courses - Piano Program

INTERMEDIATE STUDY GUIDE

LESSON 1 PITCH NOTATION AND INTERVALS

Chapter 2: Beat, Meter and Rhythm: Simple Meters

Keys: identifying 'DO' Letter names can be determined using "Face" or "AceG"

Music Representations

Introduction to capella 8

Alleghany County Schools Curriculum Guide

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

Orchestration notes on Assignment 2 (woodwinds)

Preface. Ken Davies March 20, 2002 Gautier, Mississippi iii

Automated Transcription of a Lyric s Melody. David Branner. Hacker School, New York

CSC475 Music Information Retrieval

Background/Purpose. Goals and Features

ADVANCED STUDY GUIDE

Curriculum Mapping Piano and Electronic Keyboard (L) Semester class (18 weeks)

BAND REPORTING SCALES AND CURRICULUM GUIDE 2/9/2016

From RTM-notation to ENP-score-notation

Contents FOREWORD... 5

The Kikuchi Music Institute Library. Creating Music LEVEL ONE. A comprehensive course in music composition. By Lee W. Kikuchi

Week. Intervals Major, Minor, Augmented, Diminished 4 Articulation, Dynamics, and Accidentals 14 Triads Major & Minor. 17 Triad Inversions

Northeast High School AP Music Theory Summer Work Answer Sheet

WSMTA Music Literacy Program Curriculum Guide modified for STRINGS

Music Theory For Pianists. David Hicken

Lesson Week: August 17-19, 2016 Grade Level: 11 th & 12 th Subject: Advanced Placement Music Theory Prepared by: Aaron Williams Overview & Purpose:

COURSE OUTLINE. Corequisites: None

MUSIC IN TIME. Simple Meters

BLUE VALLEY DISTRICT CURRICULUM & INSTRUCTION Music 9-12/Music Theory

Introduction to reading music

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

Instrumental Performance Band 7. Fine Arts Curriculum Framework

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).

Musical Literacy - Contents!

ATSSB Bb clarinet (revised February 2016) Artistic Studies Book I from the French School David Hite/Southern Music

Popular Music Theory Syllabus Guide

MUSIC PROGRESSIONS. Curriculum Guide

Table of Contents. Lesson Page Material Major Scales (Up to 4 flats/sharps) Key Signatures

Student Performance Q&A:

International School of Kenya

7th Grade Beginning Band Music

Student Guide for SOLO-TUNED HARMONICA (Part II Chromatic)

Primo Theory. Level 5 Revised Edition. by Robert Centeno

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

Key Signatures. Meters. Tempo. Clefs and Transpositions. Position Work for Strings. Divisi. Repeats

Music Standards for Band. Proficient Apply instrumental technique (e.g., fingerings, bowings, stickings, playing position, tone quality, articulation)

INSTRUMENTAL MUSIC SKILLS

5 th Grade General Music Benchmarks

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?

Elementary Strings Grade 5

Line 5 Line 4 Line 3 Line 2 Line 1

Score Printing and Layout

Music and Text: Integrating Scholarly Literature into Music Data

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

Assessment Schedule 2017 Music: Demonstrate knowledge of conventions used in music scores (91094)

Algorithmic Composition: The Music of Mathematics

Fundamentals of Music Theory MUSIC 110 Mondays & Wednesdays 4:30 5:45 p.m. Fine Arts Center, Music Building, room 44

Music Representations

Front of Card. Back of Card. Name the notes on the lines of the treble clef. EGBDF

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

CURRICULUM Georgia Auditions Theory Exams LEVEL A (Grades 4-6) Examples may be given on the treble staff, bass staff, or Grand Staff.

Elements of Music David Scoggin OLLI Understanding Jazz Fall 2016

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

about Notation Basics Linus Metzler L i m e n e t L i n u s M e t z l e r W a t t s t r a s s e F r e i d o r f

Plainfield Music Department Middle School Instrumental Band Curriculum

Music theory B-examination 1

Preparatory Orchestra Performance Groups INSTRUMENTAL MUSIC SKILLS

BLUE VALLEY DISTRICT CURRICULUM & INSTRUCTION Music 9-12/Honors Music Theory

Advanced Orchestra Performance Groups

EXPRESSIVE NOTATION PACKAGE - AN OVERVIEW

Information Sheets for Proficiency Levels One through Five NAME: Information Sheets for Written Proficiency Levels One through Five

Intermediate Concert Band

A Review of Fundamentals

Music Ace Deluxe Contents

INSTRUMENTAL MUSIC SKILLS

ASD JHS CHOIR ADVANCED TERMS & SYMBOLS ADVANCED STUDY GUIDE Level 1 Be Able To Hear And Sing:

SPECIAL PUBLICATION. September Notice: NETPDTC is no longer responsible for the content accuracy of the NRTCs.

Content Area Course: Chorus Grade Level: Eighth 8th Grade Chorus

MUSC 133 Practice Materials Version 1.2

Music Theory. Fine Arts Curriculum Framework. Revised 2008

7th Grade Choir Curriculum

Essentials Skills for Music 1 st Quarter

Hal Leonard Student Piano Library Correlation to Music Ace Maestro

Content Area Course: Band Grade Level: Eighth Instrumental Music - Band

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

UMT - COMPLETE MUSIC THEORY COURSE FINAL EXAM - ADVANCED RUDIMENTS

MUSIC: Singing BAND, GR DRAFT

Analysis and Discussion of Schoenberg Op. 25 #1. ( Preludium from the piano suite ) Part 1. How to find a row? by Glen Halls.

Optical Music Recognition System Capable of Interpreting Brass Symbols Lisa Neale BSc Computer Science Major with Music Minor 2005/2006

Basics of Music Notation

Student Performance Q&A:

OLCHS Rhythm Guide. Time and Meter. Time Signature. Measures and barlines

Lab P-6: Synthesis of Sinusoidal Signals A Music Illusion. A k cos.! k t C k / (1)

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

Content Area Course: Chorus Grade Level: 9-12 Music

Reading Music: Common Notation. By: Catherine Schmidt-Jones

Developing Your Musicianship Lesson 1 Study Guide

Transcription:

Week 11 Music as Data Roger B. Dannenberg Professor of Computer Science and Art & Music MIDI Files as Music Representation n MIDI messages are limited to performance information n Standard MIDI Files are somewhere between performance and symbolic notation, providing: n Time Signature n Tempo n Key Signature n If timing is quantized to beats, you can recover a lot of notation: n Bar lines n Time signatures n Tempo and tempo changes n Keys and key changes 2 1

Limitations of Standard MIDI Files n Parameters outside of MIDI: n Think of OSC data types and name space n Per-note parameters (MIDI control change messages affect entire channel) n Accidentals (A or G?) n Staves and Voices n But every track can have name n Beams, Slurs, Clef n Articulation Markings, Dynamics n Essentially all annotations n Graphics n Stem direction n Spacing n MIDI does have: tempo, time signature, key signature 3 Note Lists Are the standard computer music representation n Flat list of notes with time and duration n Each note specified by parameters: 0.0 0.5 i1 60 1.0 0.3 0.5 0.1 6.2 0.0 0.5 i1 65 1.0 0.3 0.6 0.15 6.2 0.5 0.4 i1 67 0.2 0.1 0.3 0.1 4.0 1.0 2.0 i2 78 0.5 0.4 1.0 0.4 6.0 4 2

Adagio Is a Simple Text-Based Music Representation n Machine-readable, but sensible to humans n Performance/Synthesis data only n (Somewhat) Extensible n Examples: Comment Character!tempo 100!CLOCK * turn on MIDI clock t0 c4 q nq!ramp X10 X100 Q W2 * linear ramp cs4 q. Lff V3!CALL trill(a5,w,2,s,lmf) T278 V1 th ef w!seti myvar 75 ~23(10) *control!setv myarray 5-4 T100 5 Adagio Example Started with PDF need to change key 6 3

Adagio Example Hand-entered Adagio from Score 7 d h; g i.; a s; bf i; g f i.; e s; d i; d; e i.; e s; fs i; g fs q; g i; bf; a ; g; a q b q; r i; bf; a i.; g s; a i; f g q; a; d4 i; g; f; bf g q.; a i; fs i; g q; fs i g q; d; g i.; a s; bf i; g f i.; e s; d i; d; e i.; e s; fs i; g fs q; g i; bf; a; g; a q *m10 b q; r i; bf i; a i.; g s; a i; f g q; a; d4 i; g; f; bf g q.; a i; fs i; g q; fs i *letter A g h; r q; g q bf q.; bf i; a; fs; g h *m15 fs q; g q; g q; d5 q.; d i; bf q; c d5; b; c h Adagio Example Adagio to SMF using Nyquist ;; Nyquist Program to Translate to Std. MIDI File set seq = seq-create() ;; open input file and read Adagio file into seq set inf = open("clorinda-false-adieu.gio", "r") exec seq-read(seq, inf) exec close(inf) ;; open output file and write SMF set outf = open-binary( "clorinda-false-adieu.mid", direction: :output) exec seq-write-smf(seq, outf) exec close(outf) 8 4

Adagio Example SMF to PDF using Finale 9 Allegro (Included in Audacity) n More recent than Adagio n Libraries in Serpent and C++ n Same general idea: text representation for score n Attribute/Value syntax: t0 chani:2 keyi:60 gater:100 pitchr:60 durr:0.7 But thanks to some syntactic sugar, you can also write. T0 V2 C4 LMF Q 10 5

Music Notation n Editing requires semantics n Placement determined by beats, which are determined by symbolic durations n Operations such as transposition require interpretation of pitch, key signatures, etc. n But semantics are not formal n Music is not a graph on a strict coordinate system n Music is full of implied meanings and vague instructions 11 What you should know n The general structure of music notation n Some examples of difficult problems n Some systems for encoding music notation n Limitations of MIDI for notation n General capabilities (and lack thereof) in current music notation software systems 12 6

General Structure of Music Notation CLEF CLEF CLEF SYSTEM STAFF STAFF STAFF STAFF STAFF SYSTEM STAFF MEASURE MEASURE STAFF STAFF 13 Rules for Pitch Clef gives pitch reference, this clef means G4 is here Note heads centered lines and spaces, 7 steps/octave, (white notes) 12 chromatic tones per octave Sharp = up 1 chromatic tone Flat = down 1 chromatic tone Natural = as written Key Signature: default sharps or flats Accidental becomes Accidental: default for rest of measure overrides default from key signature 14 7

Rules for Rhythm (Time) Time Signature: top (6) = beats per measure, bottom (4) means quarter note is one beat Whole note = 4 beats Half note = 2 beats Quarter note = 1 beat Eighth note = ½ beat Sixteenth note = ¼ beat Thirty-second note = 1/8 beat Triplet: note duration is scaled by 2/3 Dotted note: duration is scaled by 1.5 Ties: durations are summed, result is just one note Tempo marking: beats per minute Rests: measured silence 15 Difficult Representation (and Editor Interface) Problems n Scope of symbols n Accent marks, loudness indications, etc. can apply to n individual notes n the staff n the system n Multiple tempi (in contemporary music) n Voices n A line of music n Merging and splitting multiple voices per staff n Sometimes rests are missing or shared n Voices can cross staves n Beats may not add up to full measure 16 8

Encoding Systems: GUIDO n Plain text, human readable, platform independent n by Holger H. Hoos, Keith A. Hamel, Kai Renz, Jurgen Kilian n Based on musical concepts as opposed to strictly graphical features n Alternative strategies: n Binary formats (NIFF, SMF) n General but complex notation (DARMS, SMDL) n Graphics only (cmn) 17 Example of GUIDO [ \title<"frere Jacques"> \tempo<"moderato"> \clef<"treble"> \meter<"4/4"> \slur(c1/4 d e c) \slur(c d e c) \slur(e f g/2) \slur(e/4 f g/2) \slur(g/8 a g f e/4 c) \slur( g/8 a g f e/4 c) \slur(c g0 c1/2) \slur(c/4 g0 c1/2) ] 18 9

Some Details n c#1*1/4. = dotted quarter note middle C# n * is a separator n _*1/4 = rest n Sequences: [ ] à sequential in time n Segments: { } à simultaneous n Tags: \tagname<parm=value,parm=value>( ) 19 Example of Advanced GUIDO \tempo<"allegro asai",dx=0,dy=9.6> \space<7.36> \i<"p",dy=-5.76> \beam(\slur<y=1.92>( \crescbegin<dx=1.28,dy=-5.76> d2/8 \space<6.4> \merge( b1/16 \crescend<dy=-5.76> \dimbegin<dx=1.28,dy=-5.76> b ) \space<6.4> d2/16 \dimend<dx=0,dy=-5.76>)) _/16 20 10

Encoding Systems: MusicXML n Michael Good, Recordare LLC, now part of Make Music, Inc. n XML-based representation for music notation n Supports notation, analysis, information retrieval, and performance applications n Used by Finale & SharpEye Music Reader, Sibelius, MuseScore, >100 more 21 Example <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML //EN" "http://www.musicxml.org/ "> <score-partwise> <part-list> <score-part id="p1"> <part-name>music</part-name> </score-part> </part-list> <part id="p1"> <measure number="1"> <attributes> <divisions>1</divisions> <key> <fifths>0</fifths> </key> <attributes> <time> <beats>4</beats> <beat-type>4</beat-type> </time> <clef> <sign>g</sign> <line>2</line> </clef> </attributes> <note> <pitch> <step>c</step> <octave>4</octave> </pitch> <duration>4</duration> <type>whole</type> </note> </measure> </part> </score-partwise> 22 11

MusicXML for Interoperability 23 Lillypond n Designed for high-quality music typesetting n 100K lines of C++ and Scheme n Active following n [ ] for beams, ( ) for slurs n Helmholz notation: C, C c c c n Numerals for duration (1 2 4 ) n Tuples: a2 \times 2/3 { b4 b b } n Latex-like keywords: \key Example from Wikipedia 24 12

Lillypond example \version "2.14.1" \include "english.ly" \score { \new Staff { \key d \major \numerictimesignature \time 2/4 <cs' d'' b''>16 <cs' d'' b''>8. %% Here: the tie on the D's looks funny } %% Too tall? Left-hand endpoint is not aligned with the B tie? ~ <cs' d'' b''>8 [ <b d'' a''> ] } 25 ENP - Expressive Notation Package 26 13

Current Music Notation Systems n Nearly all published music is now done with computers n At least two powerful commercial systems: Finale, Sibelius n Some open source editors: MuseScore, LillyPond n A web-based (in Flash) editor: NoteFlight n Combine semantic-based layout with open-ended manual layout n Lacking: n Constraint systems to maintain manual placement when automatic spacing changes n Tracking change from score to parts and vice-versa (at least this seems overlooked or limited) n Robust interchange formats but MusicXML offers a path n APIs giving programmable access to notation (but this exists in at least limited forms for more than one notation system) 27 Operations On Scores n Reference: Laurie Spiegel, Manipulations of Musical Patterns. In Symposium on Small Computers in the Arts. Los Angeles: IEEE Computer Society. 1981. pp. 19-22. n Transposition: add constant offset to pitch (expressed in log frequency units) n can apply to other parameters, especially amplitude (in db) n Reversal n Pitch reversal: p i = C p i (a.k.a. inversion) n Order reversal: n i = n N+1-i (i=1 N) (retrograde) n Reversal of structure: abc_qrs_xyz à xyz_qrs_abc 28 14

Operations on Scores (2) n Rotation: n Sequences: n i = n ((i+c) mod N)+1 (i=1 N) n Chord inversion is a form of rotation n Phase Offset and Phasing n Rotation relative to a (same or different) cyclic pattern n Cyclic patterns of unequal length n Parametric phasing as in isorhythmic motet, e.g.: Pitch sequence of length 9, 4 times Rhythmic sequence of length 12, 3 times 29 Operations on Scores (3) n Rescaling n Augmentation/diminution (scaling the number of beats in each note) n Tempo change (scaling duration of a beat) n Reversal is related to a special case (-1) n Interpolation n Linear (or other) interpolation between points n Melodic interpolation over chords n Variations of a theme n Embellishments with trills and ornaments 30 15

Operations on Scores (4) n Extrapolation (no operational definition) n Fragmentation: Isolation and reuse of a sub-pattern n Generally along time axis n Can be through separation and application of different parameters n Substitution: of elements or sub-patterns n Without rule n By some orderly process n Individually or as part of a coordinated exchange n Perception of substitution requires perception of pattern 31 Operations on Scores (5) n Combination: mixing, overdubbing, counterpart, harmony, n Sequencing: append, splice, delete, n Temporal dimension of Combination (above) n Disjunct/conjunct/overlapped n Continuous/discrete n Repetition n Fundamental to music n Repetition in time n Duplication of voices or sound sources 32 16

Hierarchical Representations n You ve seen hierarchy already in MusicXML and GUIDO n Combining flat note-list representation with combination/transformation primitives gives a hierarchical representation n This is the basis for many functional-style programming languages, including Nyquist 33 Nyquist can be viewed as a Hierarchical Score Representation n Combination: n SIM simultaneous n SEQ sequential n Transformation: n TRANSPOSE pitch offset n LOUD loudness/dynamics offset n SUSTAIN articulation /duration scaling n STRETCH time stretch/tempo change n AT shift n Structure: n DEFUN introduce named phrase n SEQREP, SIMREP iteration 34 17

Nyquist Example (defun mel1 () (seq (note c4 q) (note d4 q) (note e4 h))) (defun mel2 () (seq (note c5 i) (note b4 i) (note a4 i) (note b4 i) (note g4 q))) ; sequencing (seq (mel1) (mel2)) ; dynamics (seq (mel1) (loud -90 (mel2))) ; loop and tempo (seqrep (i 4) (stretch 0.25 (seq (mel1) (mel2)))) ; transpose (defun mel () (seq (mel1) (mel2))) (seq (mel) (transpose 2 (mel)) (mel)) ; articulation/legato (seq (mel) (sustain 0.5 (mel)) (sustain 1.5 (mel))) ; sim and at (sim (mel) (at 0.1 (mel))) 35 Hierarchy in Scores Appear In Many Places/Perspectives n Score n Page n System Staff Voice n Beams n Phrases n Slurs n Score n Sections n Measures Beats 36 18

Multiple Hierarchies (aka Heterarchies) are important in music and complicate representations n Hierarchies can be independent n Measures cut across voices n Slurs can cross bar lines n Even hierarchies of a given type can overlap: n Notes can participate in the end of one phrase and the beginning of the next n Sections can begin/end in the middle of measures n Voices can cross staves n Note that this does not lead to a clean, humanreadable, linear text encoding 37 Conclusions n Music defies a single representation n Compare to Mathematics and Math notation n Notation ( ) is easy for musicians to read, but difficult to manage in general n Many composers work with simpler representations: n Note lists (abstract parameter data) n Midi files (performance data, not notation) n Simple music notation software for visualization n Full-blown notation systems to prepare scores for performance by humans 38 19