Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Algorithms as Scores: Coding Live Music

Author(s): Thor Magnusson


Source: Leonardo Music Journal , 2011, Vol. 21, Beyond Notation: Communicating Music
(2011), pp. 19-23
Published by: The MIT Press

Stable URL: https://www.jstor.org/stable/41416818

REFERENCES
Linked references are available on JSTOR for this article:
https://www.jstor.org/stable/41416818?seq=1&cid=pdf-
reference#references_tab_contents
You may need to log in to JSTOR to access the linked references.

JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide
range of content in a trusted digital archive. We use information technology and tools to increase productivity and
facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org.

Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at
https://about.jstor.org/terms

The MIT Press is collaborating with JSTOR to digitize, preserve and extend access to Leonardo
Music Journal

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms
Algorithms as Scores:
Coding Live Music
ABSTRACT

Thar Magnusson The author discusses live


coding as a new path in the
evolution of the musical sc
Live-coding practice accent
ates the score, and whilst it
is the perfect vehicle for th
performance of algorithmic
music it also transforms th
compositional process itself
a live event. As a continuati
of 20th-century artistic dev

TJL.JL.
raditionally the score is thought of as a mes- scholar ments of the musical score
we fi
live-coding systems often
sage from a composer to an instrumentalist who interprets important id
embrace graphical element
the given information. Although the emphasis varies, the mu- In the centuries after d'Arezzo, language syntaxes foreign
sical score can be conceived as both a description of music in Western culture has exhibited a standard programming lan-

the form of written marks and a prescription of gestures for an strong desire to capture music: to guages. The author present
coding as a highly technolo
instrumentalist. It has served as what we now call a "file for- represent it in the silence of the
artistic practice, shedding l
mat," where the paper (or parchment) stores the music for written marks and invoke it again on how non-linearity, play a
later realization or consumption. However, the score is more through the interpretation of signs. generality will become pro
than encoded music. It is also a compositional tool through It is a tradition interlocked in a nent in future creative med

which composers are able to externalize their thoughts onto strongly formalistic attitude towardproductions.
a medium that visually represents the sonic data. The score encoding and decoding musical
in its various forms is a mnemonic device that enables more data, resulting in the establishment
complex compositional thinking patterns than those we find of an industry of composing and
in purely oral traditions. performing music and, importantly, the technology and in-
A careful investigation into its history will illustrate that the frastructure that supports recording, distributing and selling
score is not a simple object whose nature can be easily defined. music aimed for machine playback. Since its origins in the
It has had multiple functions in various traditions at differ- 11th century, the traditional score has evolved into a highly
ent time periods. This article considers live coding as a new sophisticated language for encoding musical expression with
evolutionary branch of the musical score. It will investigate various idiosyncrasies or personal styles. Currently, the bound-
the background of diverse scoring practices as applied in live aries of what can be defined as a musical score are fuzzy, as
coding, where the score is written in the form of an algorithm, the diverse musical compositions, performances and digital
either graphically or textually, yet always encoded in the func- systems require different representations of the musical data.
tionality of a programming language. I present my live-coding Nevertheless, the great success of the traditional score as a
language ixi lang as a case study. musical technology has established it as the fundament on
which our musical education is built.

A Note on the Score


Unless sounds are remembered by man , they perish , for they
cannot be written down.
Fig. 1. Guidonian
- Isidore of Seville, 7th century hand with somization
syllables. An early
techniquethe
Although musical marks have been written for millennia, for music
instruction, as well
invention of the musical score as we know it today is normally
as a mnemotechnic
attributed to Guido d'Arezzo (b. 991 ) . A magnificent scholar
device of
for musical
music, known for the creation of the solfège, he also invented
thinking. (Photo ©
Jean Gray
systems for algorithmic composition, for example, where Hargrove
pitch
Music in
values would be systematically derived from syllables Library,
the Uni-
versity of California,
text. Furthermore, d'Arezzo is known for the Guidonian hand
Berkeley)
[1] (Fig. 1), a system of prescriptive instructions for conduct-
ing music, where each part of the hand's digits represents a
musical note for the performers. In the work of this medieval

Thor Magnusson (educator), School of Arts and Media, University of Brighton, Brighton,
BN2 OJY, U.K. E-mail: <t.magnusson@brighton.ac.uk>.

See <mitpressjournals.org/ toc/lmj/-/21> for supplemental files (such as audio and video)
related to this issue of LMJ and accompanying CD. See also <www.ixi-audio.net> for materi-
als related to this article.

©2011 ISAST LEONARDO MUSIC JOURNAL, Vol. 21, pp. 19-23, 2011 19

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms
Player Pianos and
Punch Cards
The musical parameters that have been
important in the traditional score are
primarily the rough denotations of pitch,
velocity and duration. These are features
that could easily be encoded onto rolls
or cylinders for musical automata, and
there are records of early such machines
dating back to the 9th century. In the
19th century, punch cards were a com-
mon engineering solution, for example,
in textile looms, and they were used to
automate the popular player pianos of
the early 20th century [2]. As instanti-
ated through these technologies, musical
notation became notably static and lin-
ear. An ideal had been fulfilled: perfect
performances to be written for perfect
instruments.
Fig. 2. A snapshot of Claudia Molitor's 3D Score Series . (© Claudia Molitor)
Not surprisingly, computers were ini-
tially given the same notation system as
player pianos, namely punch cards, and
the piano roll has become the key visual
metaphor in musical software designed
for composition and arrangement. It
is interesting to observe in this context
that this capacity of machines - such as
pianolas or early computers - to per-
fectly render musical scores coincided
with a development in which composers
increasingly began experimenting with
the scores themselves, incorporating
elements that emphasized performer
engagement and interpretation. This is
analogous to developments in painting
when, with the advent of the photograph,
the machine liberated painters from re-
alism, resulting in impressionism and
various other isms such as Cubism and
Surrealism [3].
If algorithmic music can be traced
to the same 11th-century origins as the
modern score in d'Arezzo, we may ques-
tion its apparent absence through the
ages. On closer scrutiny it is clear Fig.
that3. David Griffiths, Scheme Bricks, 2008. Here the functional programming language
there has never been any lack of algorith-
Scheme is represented graphically as bricks that can be plugged into each other, ¿us build-
ing complex functional graphs out of simple ingredients. (© Dave Griffiths)
mic music: It merely presents an interest-
ing problem of encoding. As an example,
every group of people improvising or
playing together succumbs to implicit Currently the main obstacles for suchThe mid-20th century saw many interme-
rule sets that could easily be reduced to
musical productions are conceptual, dia
not experiments involving visual media
technical, but new media technologies
explicit algorithmic steps. However, since and sound. Artists such as Kandinsky
algorithms can be generative, resulting are transforming this situation very rap-
and Klee experimented with how a syn-
in diverse outcomes, it has proved idly, dif- with composers and software devel-
chronic medium such as painting could
ficult to find the ideal format to write opers increasingly grasping the potential
be represented as a diachronic process
them as musical scores. Although various
for generative music. (such as music). These experiments
mechanical automata, such as Winkel's continued with the Fluxus movement of
Componium of 1821, were capable of al-Algorithms as the 1960s introducing a novel approach,
gorithmic music [4] , and people such as Graphic Scores namely the celebration of the algorithm
Ada Lovelace in 1842 speculated about as an art form. Good examples are
the computational creation of music [5] , What is an algorithm if not the con-
LaMonte Young with works such as "Draw
ceptual embodiment of instrumental
it is the advent of the digital computer a straight line and follow it" ( Composition
that establishes the ideal medium for rationality within real machines ?
1960 No. 10) or Yoko Ono with her in-
writing music in the form of algorithms. - Andrew Goffey struction pieces, e.g. "Drill a hole in the

20 Magnusson, Algorithms as Scores

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms
sky. Cut out a paper the same size as the techniques such as the casting of dice orscore. Indeed, graphic scores are often
hole. Burn the paper. The sky should be formalizing rule sets that the performersnot written for human performers but
pure blue" [6]. have to follow. Since the divide between rather as instructions for the computer.
Graphic scores can represent a special The UPIC software system designed by
composition and performance becomes
form of algorithm. They are instructions Xenakis is a good example of an early
vague, it naturally follows that composers
with which the composer has found a using these techniques participate regu-such system [9]. Furthermore, graphic
reason to go beyond traditional nota- larly in the performance of their work. scores can be descriptive, i.e. used as visu-
tion. Many composers exploring the The above examples manifest how con- alizations of musical works, enabling lis-
open work, such as Christian Wolff, temporary music has established a strong teners to engage with the piece through
Karlheinz Stockhausen, John Cage, basis for live-coding practice. another modality. Rainer Wehinger's
Cornelius Cardew and Iannis Xenakis, These 20th-century experiments with 1970 visual rendition of Ligeti's Artikula-
tion is a fine specimen of such visualiza-
have resolved to use the graphic score tothe score transformed it into an object of
extend the musical language [7]. This tion [10].
art in itself. In musical performance, the
is often done with the aim of enablingfunction of graphic scores is not limited
non-linearity, increasing performer in-to that of instructions for performers.
Composing Algorithms
terpretation and presenting elements Often the audience is given a chance to
of surprise [8] . The graphic score opensview and engage with the score as well. Live coding is the offspring of the two
new dimensions in the ontology of mu-Claudia Moli tor's 3D Score Series (Fig. strong
2) traditions described above: the
sic by rejecting linearity in musical no-is a good example of this approach. The formalization and encoding of music,
tation, thus paving the way for encoded score as an object of art was a path of often for machine realization, on the
generative or algorithmic music. The investigation pursued by John Cage in one hand, and the open work resisting
emphasis is put on improvisation or the editing the book Notations , where, traditional forms of encoding on the
in-
performers' role in the realization of theterestingly, Xenakis 's Fortran code forother. Live coding is a form of musical
piece, often using aleatorie or rule-based performance that involves the real-time
Stochastic Music is presented as a graphic
composition of music by means of writ-
ing code. This is done in front of an
audience, which follows the proceed-
ings on a projected screen. Typically
Fig. 4. David Griffiths, Al-Jazari, performers start with a clean sheet, a
2007. A live-coding environment thattabula rasa, and build their composi-
engages with the world of gaming. tions from scratch. The compositions
The robots are programmable, and evolve through the writing of new code,
the interface used to program them
changing code, pausing code or copying
is the typical gamepad used in video
games. (© Dave Griffiths) a large block in order to transform it into
something entirely different. The code
is in constant change, often modifying
itself. For this reason McLean et al. [11]
talk about "codeomorphology," since the
code and the music evolve together in
an interweaved process observed by the
audience.
In addition to tracing the compo-
sitional process, the code is also itself
Fig. 5. A Screenshot of Alex McLean's Text programming language (201 1), where spatial
locations of the elements have syntactic relevance, as opposed to many graphical languages
a representation of what occurs in the
such as Pure Data. (© Alex McLean) sonic domain. Without it, diverse musi-
cal patterns could appear to be one, or
a single process could be perceived as
many. By inspecting the code one can
learn about the instruments, the voices
and the form of the musical piece. This
representational aspect of code enables
performers to externalize their thoughts,
thereby freeing some cognitive load and
enabling other explorations. A shift has
taken place in that the composer is not
thinking with a pencil and staff-lined
paper but writing instructions in a text
document by manipulating graphical
forms. Such externalization is an impor-
tant feature of composition [12] , and the
different coding environments enable
the composer to think differently about
music and musical problems.
Even if computer science is the foun-
dation of all live-coding environments,

Magnusson, Algorithms as Scores 2 1

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms
and for the audience to follow the musi-
cal events) , updated in real time, not only
Fig. 6. ixi lang exists at the
border of the graphical and by the performer but also recursively and
the textual, as spaces are algorithmically by the very score itself.
important functions in Judging from user feedback and personal
the scores and iconicity is
experience, the language serves as a con-
applied in the way methods
look. It also introduces the
strained musical tool that affords certain
use of a code document that compositional practices but prevents
is updated when the code others. It is within the limits of the lan-
modifies itself (2010).
guage that the musical exploration takes
(© Thor Magnussen)
place, and users report that these limita-
tions encourage creativity [13]. As such
it is not clear whether the language is a
musical work in itself or a musical tool.
This is an example of how many of the
old distinctions, such as work and tool or
composer and performer, blur in current
media practices.

Real-Time Composition
and Performance
The live coder is primarily a composer,
writing a score for the computer to per-
form. It is therefore appropriate that the
computer science term for the system
in which the live coder evaluates code

these environments are typically inno- where the agent is called jimi, playing a is normally "interpreter." The novelty of
vative systems that can be defined as string
art instrument with a score containing
live coding is not simply that composi-
indexes to the notes in a chosen scale.
themselves. The goal is to explore musical tion has become a real-time activity [14]
representation, interaction and thinkingSpaces between the notes represent but si- also that the compositional tool is
through systems that have other criterialence, spatial organization therefore be- brought forth to the degree that it is seen
than those of traditional programming as a musical composition in and of itself.
coming a primary syntax of the language.
languages. The works of Dave Griffiths, When other agents are written below 7'гшг One could argue that this entails taking
such as Scheme Bricks (Fig. 3) and Al-Jazari
on the document, this spatiality becomes live performance of computer music to
(Fig. 4), are good examples of graphi- helpful in arranging events in time. We
its logical conclusion, or in the words
cal representation of algorithmic music also see (Fig. 6) that there are threea Wired journalist, "what music made
of
scores. As another example, the veteran with computers could - and should - be"
different modes available for scoring:
[15].
live coder Alex McLean has recently melodic, percussive and concrète. The
performed with his new Text live-coding melodic mode takes numbers from a Current content production in new
language (Fig. 5), in which, even if it is
chosen scale, the percussive works with in particular for mobile media
media,
text-based language, spatial relations samples
de- that are mapped to the letters devices, indicates that the mp3 is being
fine the meaning of the code. It is of yet the alphabet and the concrète modesuperseded
is by the app. Here musical
to be seen if this language can be useful
intended for the looping of longer sound scores, compositional systems or instru-
for more production-based tasks, but files.
it Each of the modes can take suffixesments for performance are often inher-
works well as an artistic tool. in the form of note duration, noteent ac-with so much music that they should
cent, silence between loops, speed and be considered musical pieces themselves.
IXI LANG transposition. These can be seen in In thethis context, live coding can play an
case of agent noel , where л represents important role in the investigation of
ixi lang is a live-coding system designed algorithmic composition and real-time
with the criteria that it be fast (maxi-accents, ( is note lengths, + is transposi-
music performance for these devices.
mum 5-second wait before some sound tion and ! is silence before the melody is
played again. This is especially important as music
is heard) , be understandable by the au- technologies become increasingly com-
dience and allow the user to be relaxed ixi lang includes actions (methods)
that can be applied to the agents: The and dominant, strongly influencing
plex
whilst performing. The engagement our musical creativity. As an art form that
performer can instruct jimi to reverse,
should be primarily at the level of mu- plays with the core of the tools used for
shake up, shift or swap his or her score.
sical composition rather than computer
science. The language is high-level and
When an action is performed onartistic an creation, live-coding systems pro-
agent from another location in the vide a level of self-reflexivity that can be
simple, focusing on the arrangement inspiring and educative for designers and
and manipulation of musical events in document, the agent's code is updated. composers of other new media art.
Furthermore, these actions can be auto-
time. Three main metaphors are utilized:
mated and scheduled repeatedly in the
agent, instrument and score. The agent is
future, resulting in a code document in Conclusion
given an instrument and a score through
a simple instruction such as this: constant change. The coding environ- Live coding has become a widely prac-
ment thus serves as a score with a double ticed and prominent art form, as man-
jimi -> string [8 7 5 43 1 ] function (for the computer to interpretifested by this year's International Com-

22 Magnussen, Algorithms as Scores

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms
puter Music Conference call for papers interconnected and computational me-
ference Proceedings (London, 2010), <www.bcs.org/
dia. From static scores and deterministic server.php?show=nav. 1 4043>.
and musical performances, both includ-
ing a live-coding submission category storage formats, we move to scores that12. And indeed in any cognitive activity - see A. Noè,
[16]. Thus, the conference organizers are written or executed in real time, re-
Out of Our Heads: Why You Are Not Your Brain, and Other
Lessons from the Biology of Consciousness (New York: Far-
acknowledge the status and function live sulting in a new type of live music: gen-
rar, Straus and Giroux, 2010); A. Clark, Supersizing
coding has achieved as one solution to erative music. the Mind: Embodiment, Action, and Cognitive Extension
(Oxford: Oxford Univ. Press, 2008).
the problem of live performance of com-
puter music and audience engagement. References and Notes 13. T. Magnusson, "ixi lang: a Constraint System for
Live coding emphasizes the algorithmic Live Coding," Proceedings of ICMC 2011 (Hudders-
1. K. Berger, "The Guidonian Hand," in M. Car-
field, U.K., 2011).
nature of music and explores the differ- ruthers and J.M. Ziolkowski, The Medieval Craft of
Memory: An Anthology of Texts and Pictures (Philadel-
ent conceptual and technical possibili- 14. Research and experimental practice is already
phia, PA: Univ. of Pennsylvania Press, 2004)strong
p. 70.
in the field of real-time composition; see, for
ties of representing such work. Although example, Contemporary Music Review 29, No. 1 , and a
2. C.B. Fowler, "The Museum of Music: A History of
proven successful in finding novel ways panel at ISEA 2011 in Istanbul, where the practice
Mechanical Instruments," Music Educators fournalbA,
of scoring and performing algorithmic of real-time notation was discussed by practitioners.
No. 2, 45-49 (October 1967).
<isea201 1 .sabanciuniv.edu/panel/chasing-ghosts>.
music, live coding is still highly experi- 3. N. Mirzoeff, An Introduction to Visual Culture (Lon-
mental, and a vast space of investigation don: Routledge, 1999). 15. T. Armitage, "Making Music with Live Computer
Code," Wired (September 2009), <www.wired.co.uk/
and exploration will take place before it 4. Fowler [2] . news/archive/2009-09/25/making-music-with-live-
matures through the development of its computer-code-.aspx>, accessed December 2010.
5. C. Roads, The Computer Music Tutorial (Cambridge,
tools and techniques. MA: MIT Press, 1996) p. 822. 16. See ICMC 2011 web site: <www.icmc2011.org.
In this paper I have explored how live uk/>.
6. Y. Ono, Grapefruit: A Book of Instructions and Draw-
coding continues the 20th-century tradi- ings (London: Simon & Schuster, 2000, originally 17. N. Collins, "Live Coding of Consequence," Leo-
tion of experimentation with the musi- published in Japan in 1964). nardo 44, No. 3, 207-211 (2011).
cal score. Live coding presents the ideal 7. Examples of such open work include Cage's Fon-
set of tools and performance context for tana Mix (1958), Stockhausen's Plus-Minus (1963),
Pouissieur's Scambi (1957) and Cardew's Treatise Manuscript received 1 January 2011.
algorithms to be written in the form of (1963-1967).
instructions for machines or people [17].
It shows how these instructions need 8. J. Cage, Notations (New York: Something Else Press, Thor Magnusson is a senior lecturer at the
1969).
School of Arts and Media , University of
not necessarily be limited to the textual
but can also include the visual and the 9. 1. Xenakis, Formalized Music: Thought and Mathemat- Brighton, U.K. His research is primarily con-
ics in Composition (Hillsdale, NY: Pendragon Press, cerned with computer music interfaces and
gestural. Hence, the musical score isp.in
1992) 329.
performance and he is the co-founder of the
yet another phase of transformation
10. Seeas<www.youtube.com/watch?v=71hNl_ ixi-audio collective. Further information to
it proliferates and morphs into diverse
skTZQx be found at: <artsresearch.brighton.ac.uk/
functions in accordance with the11.prac-
A. McLean, D. Griffiths, N. Collins and G. Wig- research/ academic/ magnusson >; < www. ixi
tices afforded by new mobile, locative,
gins, "Visualisation of Live Code," EVA London Con- -audio. net/thor/>.

Magnusson, Algorithms as Scores 23

This content downloaded from


213.55.244.33 on Fri, 22 Apr 2022 15:44:34 UTC
All use subject to https://about.jstor.org/terms

You might also like