Mezzo: An Adaptive, Real-Time Composition Program for Game Soundtracks

Similar documents
Lesson 5 Contents Overview of Lesson 5 Rhythm Change 1a Rhythm Watch Time Signature Test Time Dotted Half Notes Flower Waltz Three Step Waltz

Cadences. There are four different types of harmonic cadences: perfect (or authentic) imperfect (or half), plagal and interrupted (or deceptive).

Line 5 Line 4 Line 3 Line 2 Line 1

AP Theory Overview:

Math in Motion SAMPLE FIRST STEPS IN MUSIC THEORY. Caleb Skogen

The lines and spaces of the staff are given certain letter names when the treble clef is used.

2018 White Sabers Brass Warm-up Packet

diptych Paul Schuette Fall 2008 a DUET for harpsichord, electric piano and live electronics

Step 1: With your mobile device, open your app marketplace (App Store, Google Marketplace, etc.).

SOS A resource for directors of beginning sight readers. Written and Composed by Laura Farnell and Mary Jane Phillips

TABLE OF CONTENTS. Foreword 2. Review 3. The C 5-Finger Pattern 4. Dynamics and Tempo 10. Tonic and Dominant in C 14.

June C. Montgomery. Copyright MCMXCVIII by Alfred Publishing Co., Inc. All rights reserved. Printed in USA.

Educational psychologist Lee S. Shulman has identified three

Song chapter packet for: Have You Met Miss Jones

Contents FOREWORD... 5

Getting into The Blues Lesson 2

Proficiency Examinations for:

Macro Analysis of Robert Schumann s Abschied, from Waldscenen, Op. 82

œ œ œ œ œ œ œ œ œ œ Playing on the 3 Black Keys Dr. Kathy Rabago Right Hand Left Hand A quarter note ( q ) = 1 beat

Recorder. Flashcards

THE LANGUAGE OF MUSIC REVEALED

Rests & 4 4 Œ Œ Œ Œ. 5. Write the count below the notes and rests, then clap and count the rhythm out loud.

Easy Music Theory. for Middle School. Index

TABLE OF CONTENTS. Lesson 1: Major and Minor Key Signatures...1. Lesson 2: Scales Lesson 3: Intervals...21

Well temperament revisited: two tunings for two keyboards a quartertone apart in extended JI

VERSIONS OF MINOR SCALES. Below are examples of the three forms of minor scales in the keys of a minor and g # minor. a minor. Sol Mi.

TABLE OF CONTENTS. Foreword 2. Keyboard Basics 3. The Music Alphabet 11. The Staff 18. Steps in Bass Clef 26. Steps in Treble Clef 36

Jazz Piano Left Hand Techniques

Chapter 8 'Triads in First Inversion'

Level 1 Music, Demonstrate knowledge of conventions used in music scores p.m. Friday 10 November 2017 Credits: Four

Contents. Introduction

Shuksan Story: An Original Soundtrack Composition

Elegant Object-oriented Software Design via Interactive, Evolutionary Computation

Palmer - Hughes Book 1

The Transcriber s Art - #48 Alfredo Catalani, In Sogno By Richard Yates

Summary of the Transcription Process

Music Notation and Theory for Intelligent Beginners

& w w w w w w # w w. Example A: notes of a scale are identified with Scale Degree numbers or Solfege Syllables

Middle School Band Rehearsal Lab Douglas Akey, clinician. McCracken Middle School Symphonic Band Chip De Stefano, conductor

Music Technology Advanced Subsidiary Unit 1: Music Technology Portfolio 1

We Are the Future by Paul Rardin

SLEEPWALK RYAN MEEBOER

Grade 2. Improve your theory! Paul Harris. Model answers

Jazz Band Catalog EMERGING JAZZ SERIES

The Comeback Trumpet Player

œ œ œ œ œ œ œ œ { œ œ œ œ Level III Advanced Jaques-Dalcroze Certification Improvisation

Tuba Clinic. by Sergeant First Class Scott Cameron Field Band Drive Fort Meade, Maryland

THE TRILL, APPOGGIATURA, MORDENT & GRACE NOTE

Edexcel A Level Syllabus Analysis

Composed for Deborah Andrus DE PROFUNDIS FOR Bb CLARINET, RECORDED SOUNDS AND PROJECTED TEXT (DVD) PATRICK LONG (2006)

As a choral director, improvisation is probably not the first word that comes

Please note that copying music from this PDF file is illegal.

Christopher D. Azzara Eastman School of Music of the University of Rochester. Richard F. Grunow Eastman School of Music of the University of Rochester

published by ARDROSS HOUSE 48 Fairview Way, Stafford ST17 0AX and Percussion! - percussion join recorders and violins in the school assembly

Note Reading Worksheet Bass Clef Exercise #1

Trumpet I. Technique Packet

Introduction. Tonality is a natural force, like gravity.-paul Hindemith

Grade Level 5-12 Subject Area: Vocal and Instrumental Music

Music of the Masters 2

Folksongs from Around the World

Sample. January - Week 1: Song #44 Clock Round CD2:30

APPALACHIA RE-IMAGINED: JAZZ SEXTET ARRANGEMENTS OF TRADITIONAL APPALACHIAN FOLK SONGS. Caleb Henry McMahon. Honors Project

requiem for B b clarinet and computer kerry hagan

MISSION: SECRET RYAN MEEBOER

CHRISTMAS 3 CONTENTS. Edited by Morton Manus

TWO GUYS IN A LUNATIC ASYLUM: A SUITE

Beethoven's Thematic Processes in the Piano Sonata in G Major, Op. 14: "An Illusion of Simplicity"

Starter Packet for Flute

Grade 1. Improve your theory! Paul Harris. Model answers

ROUGH COPY RYAN MEEBOER

FREE music lessons from Berklee College of Music

HS Music Theory Music

Dynamic Lane Assignment Using Fiber-Optic Signs

Advanced Placement Music Theory

Dante s Prayer From the Quinlan Road CD The Book Of Secrets

œ œ œ œ œ œ œ œ œ œ œ œ œ œ œ œ w œ œ

In Memory of Bill Evans...9 Foreword...10 Introduction...11 Preface to the Second Edition...12

DETECTION OF PITCHED/UNPITCHED SOUND USING PITCH STRENGTH CLUSTERING

the lawyers know the parameters, the limits of questions that can and can't be asked. All right? But

The Staff Date. Name. The musical staff is made up of five lines and four spaces. Lines and spaces are both numbered from low to high.

On the Chair of the Universe, a Beetle-shaped Glass Buckles. Jacob Adler

Lesson Title Author(s) Grade Concepts Page Levels. Little Johnny Brown...Phyllis Thomas... K 2... Call and Response...3

LESSON #2. Music Theory Fundamentals

Preparatory Rudiments. The Royal Conservatory Edition. accelerando. martellato. tacet. polyphonic. langsam. grazioso. rubato. vivace.

PEOPLE NORMAL MUSICIANS MUSIC THEORY. and. by Toby W. Rush. hello! this file is a collection of individual sheets for

Christopher D. Azzara Eastman School of Music of the University of Rochester. Richard F. Grunow Eastman School of Music of the University of Rochester

The significance of the fugue for Bach... 4 Bach and the lute... 6 The significance of the lute and its tone quality... 8

Rejoice in the Lord always

AutoChorale An Automatic Music Generator. Jack Mi, Zhengtao Jin

THE SPACING INDEX MARK BRANDON FEEZELL. Bachelor of Music, 1997 Texas Christian University Fort Worth, Texas

SOMETHING MODAL RYAN MEEBOER

FRONT OF THE TRAIN RYAN MEEBOER

March, America First (1916)

Trombone Clinic. by Sergeant Major Charles Garrett Field Band Drive Fort Meade, Maryland

Brian Riordan Laniakea 2015

Basic Trumpet Playing by Master Sergeant Charles Garrett Master Sergeant Scott Holbert Sergeant First Class Michael Johnston

Anonymous (Joannes Amigonus?), Sinfonia seconda, Sinfonie per Violino solo, ed. F. Piperno, Sinfonia seconda per violino solo

Henson User Instruction Manual

Kjos String Orchestra Grade 3 Full Conductor Score SO385F $7.00. Deborah Baker Monday. Jubilation! SAMPLE. Neil A. Kjos Music Company Publisher

Euphonium Topics. by Master Sergeant Carlyle Weber Master Sergeant Donald Burleson Field Band Drive Fort Meade, Maryland

Transcription:

Musical Metacreation: Papers from the 2012 AIIDE Workshop AAAI Technical Report WS-12-16 Mezzo: An Adaptive, Real-Time Composition Program for Game Soundtracks Daniel Bron University of California at Santa Cruz titteringmachine2000@yahoo.com Abstract Mezzo is a computer program designed that procedurally rites Romantic-Era style music in real-time to accompany computer games. Leitmotivs are associated ith game characters and elements, and mapped into various musical forms. These forms are distinguished by different amounts of harmonic tension and formal regularity, hich lets them musically convey various states of markedness hich correspond to states in the game story. Because the program is not currently attached to any game or game engine, virtual gameplays ere been used to explore the capabilities of the program; that is, videos of various game traces ere used as proxy examples. For each game trace, Leitmotivs ere input to be associated ith characters and game elements, and a set of cues as ritten, consisting of a set of time points at hich a ne set of game data ould be passed to Mezzo to reflect the action of the game trace. Examples of music composed for one such game trace, a scene from Red Dead Redemption, are given to illustrate the various ays the program maps Leitmotivs into different levels of musical markedness that correspond ith the game state. Introduction Mezzo is a computer program designed by the author that procedurally rites Romantic-Era-style music in real time to accompany computer games. It as motivated by the desire for game music to be as rich and expressive as that ritten for traditional media such as opera, ballet, or film, hile still being procedurally generated, and thus able to adapt to a variety of dramatic situations. To do this, it models deep theories of musical form and semiotics in Classical and Romantic music. Characters and other important game elements like props and environmental features are given Leitmotivs, hich are constantly rearranged and developed throughout gameplay in ays Copyright 2012, Association for the Advancement of Artificial Intelligence (.aaai.org). All rights reserved. that evoke the conditions and relationships of these elements. Story states that occur in a game are musically conveyed by employing or ithholding normative musical features. This creates various states of markedness, a concept hich is defined in semiotic terms as a valuation given to difference (Hatten 1994). An unmarked state or event is one that conveys normativity, hile an unmarked one conveys deviation from or lack of normativity. A succession of musical sections that passes through varying states of markedness and unmarkedness, producing various traectories of expectation and fulfillment, tension and release, correlates ith the sequence of episodes that makes up a game story s structure. Mezzo uses harmonic tension and formal regularity as its primary vehicles for musically conveying markedness; it is constantly adusting the values of these features in order to express states of the game narrative. Motives are associated ith characters, and markedness ith game conditions. These to independent associations allo each coupling of a motive ith a level of markedness to be interpreted as a pair of coordinates in a state space (a semiotic square ), here various regions of the space correspond to different expressive musical qualities (Grabócz 2009). Certain patterns of melodic repetition combined ith harmonic function became conventionalized in the Classical Era as normative forms, labeled the sentence, period, and sequence (Caplin 1998, Schoenberg 1969). These forms exist in the middleground of a musical ork, each comprising one or several phrase repetitions and one or a small number of harmonic cadences. Each musical form has a normative structure, and various ays in hich it can be deformed by introducing irregular amounts of phrase repetition to make the form asymmetrical. Mezzo s expressive capability comes from the idea that there are different perceptible levels of formal irregularity that can be quantitatively measured, and that these different levels convey different levels of markedness. 68

Overvie of the Compositional Process The actual amount of musical information that must be input by a user is very small. First, the Leitmotivs that ill be associated ith characters and game elements must be specified; these can be as long as the user desires, but produce the most interesting outcomes hen they are only to to four measures long. Second, the harmonic vocabulary is given by inputting a small number of chord progressions (10 or so), although these progressions are not the ones that are actually used in Mezzo s compositions. The program extracts information regarding voice-leading and levels of acoustic tension from the input progression, and then constructs its on progressions during gameplay (using a genetic algorithm) that are stylistically similar to those that ere input. This allos the user to establish a general harmonic language by taking progressions from a particular composer s ork, say, such as Wagner or Chopin ithout having to author any specific expressive details herself. The program takes care of that. Composition in Mezzo is a to-step process: first build forms, then deform them according to stochastic constraints. Both of these processes generate expressive features in the music being composed. The form-building stage composes chord progressions ith the appropriate length, formal organization, cadence type, and amount of harmonic tension, and builds forms by mapping appropriate Leitmotivs and accompanying textures to them. In the second stage, each form that has been composed is mapped to a data structure that sets the stochastic constraints on its formal regularity, determining hich, if any, formal sections ill be repeated or omitted, and to hat extent. This stochastic model is a generalization of the methods of deformation used by Classical and Romantic composers, and attempts to maintain continuity ith their procedures hile proecting them into a modern, interactive context. Furthermore, it extends this concept to function in the open-ended setting of a game. Each time a form is stated, it ill, ith some probability, be organized differently from previous times, and there ill be no pattern to the ay the organization changes from statement to statement. Hoever, this randomness is controlled by the stochastic variables, so that a certain quality of irregular formal organization ill alays be met. Composition Examples for Virtual Gameplay Mezzo is currently not attached to any game or game engine, although development in this area is underay. 1 To explore the capabilities of the program, virtual gameplays have been used; that is, videos of various game 1 Mezzo is ritten in Python, and uses Max as an interface for sending game signals to the Python code and handling playback. Communication beteen Python and Max is implemented using Open Sound Control. traces ere used as proxy examples, each ranging from about six to 1 minutes long. Videos of scenes from three games have so far been used: a level of Red Dead Redemption, in hich a coboy must herd cattle and stop a train robbery; a short episode from Star Wars: The Old Republic, in hich a edi Knight must decide hether or not to give in to his romantic attraction to an alien; and a alkthrough of the entire last level of Super Mario D, here the protagonist Mario must rescue a princess held captive by a monster atop a castle turret. 2 For each game trace, a set of Leitmotivs as ritten for each character and game element I considered significant, hich ere then loaded into the program as MIDI files. Each game trace as also given a set of harmonic progressions taken from a ork by a Romantic-Era composer hich seemed appropriate for the game: Liszt for Red Dead Redemption (because of its pastoral character), Chopin for Star Wars scene (because it s a love scene), and Wagner for Super Mario (because of its overblon, mythological nature). Then a short set of cues as ritten, consisting of a set of time points at hich a ne set of game data ould be passed to Mezzo. To compose music for a certain state of a game, Mezzo uses a number of different settings. Any characters and elements associated ith Leitmotivs hich are involved in the current scene are passed to the program, as ell as the characters states. Mezzo is designed to ork ith games in hich some normative state can be defined for a character, be it measured by health or goal achievement or some other interpretation, and the distance from this normativity can be measured. Another small set of states associated ith the player s character is also passed to the system. These states are related to the measure of normativity, but must also be interpreted according to the character s relation to other characters and the game story. These states are defined as stability (hen the player is not currently facing a problem to overcome), battling (hen the player is in direct conflict ith another character ho is present), questing (hen the player is trying to achieve some goal, but is not directly faced ith an opposing character), failing (hen the character has made some irreversible mistake, like getting killed), succeeding (hen the character has completely overcome some problem, like destroying an opponent), and introduction (hen a character first appears and is not in any of the other states). Finally, features relating to the level of activity are used by Mezzo to determine aspects of the musical texture, like ho energetic it ill be, ho much space ill occur 2 At the time this paper as ritten, these videos ere available at the folloing URLs: http://.youtube.com/atchv=lsidhm_eoec http://.youtube.com/atchv=x1zwdbdscm http://.youtube.com/atchv=-9-wfllhxe 69

4 4.............. 4. 4..... b.......... simile.... #.. #.... Example 1a: Cattle motive organization at cue 1.................... Example 1b: Coboy motive organization at cue 1 70

... b b b b........ Ó. Ó Ó Ó Ó Ó. n... n.. n R... n.. Rr. r n n b b n n b b n flfl fl fl fl fl fl fl fl fl fl fl n b b b b flfl fl fl fl fl fl fl fl fl fl fl Example 2a: Coboy motive organization at cue 5. n n...... n n..... n. A.. n.. n. n A.... n Ó Ó n Ó Ó flfl fl fl fl fl fl fl fl fl fl fl flfl fl fl fl fl fl fl fl fl fl fl flfl fl fl fl fl fl fl fl fl fl fl flfl fl fl fl fl fl fl fl fl fl fl. n... n.. n... n. n n n n n. n R... n.. n R... n. n n n n n. Rr. Rr. r. r n n nn n n n b " b b b n n n n n n n n N Example 2b: Cattle motive organization at cue 7 71

beteen statements of Leitmotivs, hat registers they ill occur in, etc. Each time point in a script as associated ith a set of values for each of the states listed above. This process, of course, assumes an amount of interpretive ability on the part of an actual game, hich here is being done by a human author. While this is currently a draback of the design of the demonstration, the interpretive assumptions being made are reasonable; this is because the states a game must pass Mezzo, as described above, are ell defined in terms of explicit game elements. A Max patch as used to trigger each set of values to Mezzo at each associated time point, and this process and a video ere begun at the same time. The music as composed for four MIDI channels, all set to a piano sound. Each time the program is run alongside a video, the music is similar, although it is never the same. For the Red Dead Redemption scene, ten cues ere determined for hich the scene changes: 1: cattle introduced; coboy rides into herd 2: explosion on horizon; coboy rides toard it : coboy encounters train robbery in progress 4: gunfight beteen coboy and train robbers 5: coboy s horse shot; coboy looks for another horse; train robbers flee 6: coboy mounts ne horse and bids fareell to train passengers he rescued from robbers 7: coboy attempts to marshal cattle that have scattered during commotion of train robbery 8: coboy tries to corral one errant co back to herd; gives up, rides off ith remaining cattle 9: the herd, minus one co, reaches the pasture 10: coboy rides home, mostly successful To types of Leitmotivs ere input, corresponding to the player s character (a coboy), and the herd of cattle. The player s character had four similar Leitmotivs, hich I composed, and the herd only one, hich as taken from a Liszt scherzo. The musical examples given belo sho some of the resulting music that as ritten for these cues. The coboy s motives and the cattle s can be distinguished in the folloing ay: the coboy s are made up of block chords in dotted-eighth- and dotted-sixteenth-note rhythms; the cattle s motive is made up of scherzo-like arpeggiated triplets. Example 1 shos their organization at cue 1; here, the formal organization is very regular both the coboy s and the cattle s motives are organized as normative sentences, and the harmonic tension is very lo. This evokes the relatively normative state that both the player and the cattle are in: the player is faced ith a problem (herding the cattle to pasture), but the game has ust begun, and the problem does not seem dire. Example 2 shos music ritten in later stages of the game, in hich the same Leitmotivs are used, but are no mapped to non-normative that is, highly marked musical settings. First shon is a section using the coboy s motives during cue 5, hen his horse has been shot and he is under great duress. Second shon is the cattle s motive at cue 7, in hich the herd is highly disorganized, presenting the coboy ith the problem of coercing them back together. In both of these sections, the motives are organized in a highly non-normative ay, and the harmonic tension is high, in order to express the highly marked states the characters are experiencing. Further Avenues for Research While many important expressive elements are not handled by Mezzo, it still offers a frameork for procedurally composing cohesive music that adapts to dramatic elements in a game in real time. Elements such as orchestration, motivic development, and expressive playback (rubato, dynamics, etc.) are certainly necessary to make this an effective music engine for game development. Furthermore, a standardized communication protocol for mapping game states to musical settings needs to be developed and implemented. Hoever, the program as it no stands is a proof of concept of a method of procedurally composing music that is expressive and interesting. It also offers a foundation to hich more implementations of musical expressiveness can, and hopefully ill be, added in the future. References BioWare Austin and BioWare Edmonton. Star Wars: The Old Republic. BioWare, 2008. Bron, Daniel. 2012. Expressing Narrative Function in Adaptive, Computer-Composed Music. D.M.A. diss, Department of Music, University of California at Santa Cruz, Santa Cruz, CA. Caplin, William. 1998. Classical Form: A Theory of Formal Functions for the Instrumental Music of Haydn, Mozart, and Beethoven. Ne York: Oxford U Press. Hatten, Robert S. 1994. Musical Meaning in Beethoven: Markedness, Correlation, and Interpretation. Bloomington: Indiana U Press. Grabócz, Márta. 2009. Musique, narrativité, signification. Paris: L Harmattan. Nintendo EAD Tokyo. Super Mario D Land. Kyoto: Nintendo, 2011. Rockstar San Diego. Red Dead Redemption. Ne York: Rockstar Games, 2010. Schoenberg, Arnold. 1969. Structural Functions of Harmony. Ne York: W.W. Norton Co. A full analysis of the music composed for this game trace is in Chapter 7 of (Bron 2012). 72