Professional Documents
Culture Documents
Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at .
http://www.jstor.org/page/info/about/policies/terms.jsp
.
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.
The MIT Press and Leonardo are collaborating with JSTOR to digitize, preserve and extend access to
Leonardo.
http://www.jstor.org
? 1989 SAST
Pergamon Press pic. Printedin Great Britain.
0024-094X/89 $3.00+0.00 LEONARDO, Vol. 22, No. 2, pp. 175-187, 1989 175
source destination
10% 17% 29% 50%
10% 0.91 0.02 0.02 0.05
L
E3-Ep4
I A3-A64 FP4-F5 B,4-A5
I G5-FP6
I
CP4-C5 D5-CO6
178 Ames, The Markov Process as a Compositional Model: A Survey and Tutorial
A
expectation and that it does not reflect a
r we
the shorter average durations for rests. - t-a- t- #- ^aa#-
t-t ? '^>a a- a# mi' s-'a , t-
#-
The actual periods of time will deviate 6/46 5/46 4/46 2/46 6/46 6/46 2/46 4/46 5/46 6/46
durations both result from random 5/26 2/26 1/26 2/26 2/26 1/26 3/26 4/26 6/26
processes. Since every state has equal
a
access to every other, the relative em- sa --
t, , 'a
phasis placed on each given state is 4/23 1/23 2/23 2/23 1/23 4/23 4/23 5/23
entirely due to the state's waiting proba-
bility (see Fig. 1). 2/ .a
2/19 2/19 4/19 3/19 4/19
Articulation 2/19 2/19
Register Isa
-- -a . . . , a -
isters: E3-E 64, A3-Ab4, C#4-C5, F#4- k - . - - - - -
646 5/46
F5, Bb4-A5, D5-C#6 and G5-F#6. 6/46 4/46 2/46 6/46 6/46 2/46 4/46 5/46 6/46
Chromatic Degrees
The sequence of chromatic degrees is a
first-order Markov chain of displace-
ments through the chromatic scale, me -
n~~F7r7r
I .-?--
M2 .
._
ma
I .n
M3a
I
r
I I ---
TT
r
--
r r
iF
mb M
-
Mb
7H
I
mIr
--
Ames, The Markov Process as a C ompositional Model: A Survey and Tutorial 179
AVERAGE
DURATION ^
a NNNE EW
U.DU -
0.29
ARTICULATION
0.17 . m . J I _I
!ir
07,~~~~~~~~~~~~~~~~~~~~~~~~~~~~ r
0.10 I l p-
G6
REGISTER
AVERAGE IF~ I 1l I i I-
DURATION
_ r L-UTi I__ I
0.50
0.29
ARTICULATION
0. 17
0.10 -
G6
REGISTER I
AVERAGE
DURATION
3
2 I
I I
-I1 I --I
I
0.50
0.29
ARTICULATION
0.17
0.10
G6
REGISTER
E3~
measure I I I I 145 I I 50 1 1 55 | I| I | 60
Fig. 6. Graph of average durations, articulations and registers in Demonstration4, as guided by Matrices 3-5. Rates of activity in each
graph are determined by waiting probabilities; the relatively fluid motions in the register graph are due to the fact that Matrix 5 favors
transitions between 'nearby' states, while Matrices 3 and 4 encourage abrupt contrasts.
180 Ames, The Markov Process as a Compositional Model: A Survey and Tutorial
nJ -7lL
F7
II ^ bIl II /r-r it~~~~~~~~~~~~~~
1t?w:
I'
i^nj^n,- -
behavior by using different states to
represent alternative inflections of one- te2S -%ft
a. j."^^. I -
Ames, The Markov Process as a Compositional Model: A Survey and Tutorial 181
-
F'
~t- r i _ AF \ r
7
mp mf,;mpJ PP fn f p ff pp f p f p f mppp p nffff '
tt |ziI J
ff if-:t7 / rn
Fig. 9. Opening flute passages from Strophes I-III of Hiller and Baker's ComputerCantata,showing the differences in musical material
obtained through zeroth-, first- and second-order analysis of music by Ives. Copyright ? 1963 New Music Edition. Used by permission of
the publisher, Theodore Presser Company, Bryn Mawr, PA 19010, U.S.A.
Myhill. Each 2-minute 'section' is pieced together from many Active choirs: 1 2 4 2 1
short 'segments'; segment lengths are graphed logarithmically
from a minimum of 2 seconds to a maximum of 10. Separations Segment length Not applicable
tion at [higher orders] will be clearly musical sources, the following compli- second matrix in the second section,
recognized" [33]. cation results: and so on. It might mean using tran-
Roads's PROCESS/ING program sition matrices to select certain 'un-
[When] models are being extracted
implements Markov chains of ex- froman existingsequencea newprob- shaped' attributes but leaving the re-
tremely high order, although Roads's lem arisesfor high-ordermodels.Most maining attributes to other selection
program was not intentionally based on of the long [sequences]willneverhave methods. In a real-time compositional
Markov'smodel [34]. Roads used PRO- been seen, and so there is no basison
which to make a prediction. ... A processor like MorJam Facto?y,it might
CESS/ING to create several composi- mean keeping the same transition ma-
compromisewhichworksverywellfor
tions for tape alone; these included two text is to use a range of models, for trices but subjecting the results to trans-
1975 pieces, prototype[35] and Plex (re- example, all models from order 0 to formations (e.g. mapping chromatic
vised 1982). The program was inspired order 5 (Clearyand Witten, 1984). notes to diatonic notes), which are
Whenmaking[predictions]the order
by the theory of 'finite automata', a 5 model is firstchecked,if it has [pre-
more easily amenable to real-time ma-
descendent of Information Theory. dictionstheyare]used,if not the order nipulation. There are also ways in
Each one of 26 automata is given con- 4 model is checkedand so on [37]. which Markov'smodel can be extended
trol over one of 26 attributes charac- directly to accommodate long-term
Each of Conklin's viewpoints gener-
terizing a cloud of sonic 'grains' (e.g. ates its own list of weighted predictions, shapes. One method is to allow the
starting time, duration, mean fre- so the program must include an arbiter
transition probabilities to evolve over
quency, temporal density, registral to mediate between lists and to estab- time; another is to implement the pro-
proximity of grains). The automata are lish a final order of preferences. If the
cess of selecting transition matrices as a
connected by a 26 x 26 'interconnec- Markov chain in its own right.
arbiter determines that there is no com-
tion matrix'; thus, in general, the attri-
mon ground between viewpoints, then
bute specified by an automaton during
the program must backtrack and revise Evolving
Transition Matrices
the j+ 1st cloud depends both upon the An unfinished and untitled work by
an earlier note. Backtracking is an arti-
past history of the automaton itself and ficial intelligence technique that was John Myhill,
which I partially pro-
upon the attributes specified by the re- not envisioned in Markov'swholly left- grammed, is the first composition, to
maining automata during the jth my knowledge, to employ transition
cloud. The process as a whole therefore to-right scenario, so in this respect the that evolve gradually un-
action of the arbiter takes Conklin's probabilities
may be regarded as a Markov chain in der strict parametric control. Myhill's
which the number of possible states is program beyond the scope of this
article. piece was to be constructed from five
given by the number of ways in which 2-minute sections, for a total length of
the attributes may be combined, while 10 minutes. The music was to be played
the order depends upon how many pre- OF by four antiphonal choirs situated
vious clouds are taken into account by TECHNIQUES around an auditorium in four loca-
the automata. CONTROL tions: on the stage, to the left side, to
Darrell Conklin has devised an ap- The most straightforward approach to the right side, and in the balcony. Fig-
proach to Markov modeling that medi- ure 10 shows how the antiphony was to
shaping Markov-generated music is to
ates between multiple transition ma- select excerpts manually from different evolve over the length of the piece.
trices, each 'viewing' the music from a chains and to cut and paste these ex- Only one of the four choirs plays at a
different perspective, e.g. durations, time in the outermost sections, sections
cerpts, again manually, into a satisfac-
absolute pitches, chromatic degrees, in- Markov chains, like all 1 and 5; the music trades off between
tory composite.
tervals between consecutive pitches in random processes, are inherently con- pairs of choirs in sections 2 and 4, and
the same voice, intervals between simul- all choirs are active continuously in sec-
traryand obstinate: over the short term
taneous pitches in different voices [36]. there is absolutely no guarantee that tion 3.
Conklin's approach embraces transi- their behavior will conform to the prob- This much of the compositional
tions of arbitraryorder; he takes advan- abilities set forth in the transition ma-
tage of the fact that a sequence of states trix. Given this fact, it is reasonable to
can be treated as a state in its own right include a degree of human interven- Matrix8. Thisone-choirtransition
to express his transition matrices as lists tion in the process; the cut-and-paste matrixis derivedfromFig.1la
of productions of the form: has been characteristic of Ko- whenthe separationis 0.75.
approach
[note j- n,..., note j- 2, note j- 1] tik's work, for this reason.
-> [predictions for note j]. However, Kotik represents the ex-
ception more than the rule; developers source destination
To select a production, Conklin's pro- of composing programs, for the most S L R B
gram simply steps through the list until part, seek automated methodologies S 0.25 0.25 0.50
it finds a production whose left side that can accommodate both content
matches the tail end of the music L 0.05 0.05
and form. This might mean simply in-
generated so far. Because the produc- R 0.05 0.05
structing the program to use one ma-
tions are derived through analysis of trix in the first section of the piece, a B 0.50 0.25 0.25
Separation
Fig. 1la. (left) Transition probabilities for one active choir. Choirs are abbreviated as follows: S-stage, L-left, R-right and
B-balcony. Values are derived for a given source state, destination state and separation parameter as follows: (1) Of the four vertically
stacked rectangles that together make up the graph as a whole, locate the rectangle with the given source state indicated on the left.
(2) Use the key given along the bottom to determine the shading for the given destination state; locate the appropriate destination region
within the source rectangle. (3) Locate the given separation parameter along the scale at the top of the graph and sketch a vertical line in
this position from the bottom of the source rectangle (zero) to the top of the rectangle (unity). (4) The length of the line segment cutting
across the destinationregionwill then indicate the transition probability for the given source, destination and separation.
Fig. 1Ilb. (right) Transition probabilities for two active choirs. Choirs are abbreviated as follows: LR-left and right, SB-stage and
balcony, LS-left and stage, RS-right and stage, LB-left and balcony, RB-right and balcony.
process actually was implemented as a continuum of transition matrices for mation-Theoretic view and when they
program. Control over the antiphonal the two-choir sections. Matrix 8 shows are provided with terminal states to kick
process is exerted through two high- what transition probabilities result for the process back up into its higher-level
level parameters, both graphed in Fig- a one-choir section when the separa- modes. Two of the examples presented
ure 10: segment length and separation. tion in 0.75. To understand how the by Baffioni et al. illustrate thematic vari-
The segment length determines the pe- upper row of probabilities was derived ation using low-level matrices with very
riod of time separating transitions be- (stage as source state), first locate the nonuniform probabilities to represent
tween choirs in sections 1 and 5 or 'S' rectangle across the top of Figure particular themes. Two other examples
between pairs of choirs in sections 2 1la and then sketch in a vertical line for incorporate "some features of classical
and 4; the program rounded each seg- 0.75 separation. Notice that the upper tonal music", with matrices to simulate
ment length to the nearest second and one-fourth cuts across the dark region "chord prolongation, cadences, and
accumulated the residue into the next representing transitions from S to B modulation" [38].
segment. The separation is a single region. A similar procedure may be Capabilities to implement chains of
number that controls the antiphonal used to derive transition probabilities chains have been included among the
intensity. When this number is small from Figure 1 b. many features of HMSL which Burk,
(near zero), transitions occur between Polansky and Rosenboom have been
adjacent choirs; when the number is Chains of Chains developing since 1985 [39]. Like the
large (near unity), transitions occur In their 1981 paper, Baffioni, Guerra M U S I C O MP computer-composition
across the room or into the balcony, and Lalli proposed a hierarchical organi- 'language' of the 1960s [40], HMSL is
which Myhill defined to be 'separated' zation of Markov chains in which the a library of compositional procedures,
from all other choirs. 'low-level' transition matrices used to which a composer links together in a
Myhill treated the one-choir and two- select the musical details are selected main program of his or her own devis-
choir sections separately. For the one- using 'median-level' transition matri- ing. In addition, HMSL provides a set
choir sections, he devised a continuum ces; these 'median-level' matrices in of standardized procedural 'objects',
of transition matrices arranged along a turn are selected by 'higher-level' which facilitate implementation of
line from minimum to maximum sepa- matrices, and so on, to arbitrary levels hierarchic processes. Of specific rele-
ration, and he represented this con- of complexity. The approach makes vance to this article is the TSTRUC-
tinuum with the graph shown in Fig. most sense when the lower-level chains TURE object, which consists of the fol-
1la; the graph in Fig. 1lb represents his are 'highly redundant' from an Infor- lowing: (1) a list of n subsidiary objects,
grams for traditional music have pro- order matrices will not suffice, one transition-the progress in a Markov chain from
duced results that are extremely similar one state to its successor during two consecutive
might consider Nth-order matrices, events.
to the real thing. evolving matrices or chains of chains. transition probability-the probability of making a
Since transition matrices are rarely transition to a specified destination state, given a
used in isolation, perhaps a blend of specified source state.
CONCLUSIONS approaches will be needed. If not, then transitionmatrix-a rectangular array detailing the
there are plenty of other techniques to transition probabilities obtained by enumerating
By no means can Markovchains be said every pair of source states and destination states
to occupy the cutting edge of progress choose from. from the range of a Markov chain and by determin-
in automated composition or analysis. ing the transition probability in each instance. The
Acknowledgments kth row of a transition matrix gives the probability
They have been around since the turn distribution for the state of the jth event in the
I am greatly indebted to the Kurzweil Foundation
of the century. They have been dis- for its continuing financial support and for the
chain under the assumption that thej-1 st position
resides in state k.
missed (sometimes unjustly) by mathe- Macintosh computer upon which this article was
written. uniform distribution-the distribution of a ran-
matical linguists and by AI researchers. dom process in which each outcome or state is
They have long been out of fashion in equally likely.
the music-theory establishment. De- Glossary
vector-a set of numbers used to describe two or
antiphony-musical contrast realized through
spite all this, Markovchains continue to physical separation of instruments in a perform-
more attributes of an object, e.g. a musical note
be exploited by composers who work might be described by a vector consisting of the
ance environment. note's starting time, duration, pitch and dynamic.
with computer programs. This persist- continuous-a set is continuous, in a practical This is a mathematician's definition of 'vector';
ent interest undoubtedly has to do with sense, if every pair of distinct elements is connected physicists use the word more strictly. (See also
by intermediate elements. scalar.)
the fact that Markov's model can be
conditional waiting count-the expected number of times that
adapted to accommodate just about probability-random incidents
said to be conditional when their outcomes
are
are a state will directly succeed itself in a Markov chain.
any discrete system of conditional prob- influenced by external factors. (See also waitingprobability.)
ability one might think of using in a discrete-a set is discrete if its elements can be waiting probability-the probability that the jth
composing program. In addition, Mar- represented by integers (e.g. item 1, item 2 .. .).
event of a Markov chain will reside in some state k,
given that the j-1 event also resides in state k.
st
kov's representation is straightforward, event-relation diagram-a diagram showing
since a chain's behavioral character- graphically how the various states of a Markov chain
References and Notes
istics are described entirely by the tran- progress between one another. Such diagrams are
most revealing when transition matrices are 1. Charles Ames, "Automated Composition in Ret-
sition matrix. This means that standard 'sparse', that is, when the great majority of transi- rospect: 1956-1986", Leonardo20, No. 2, 169-185
Markov chains are almost trivial to im- tion probabilities are zero.
(1987).
plement-to a large extent, the matrix expectation-an average value predicted
basis of a probability distribution.
on the 2. The official jargon for such processes is 'time-
is the program. variant Markovchains'. Before his creative momen-
Markovprocess or Markovchain-a chain of states, tum succumbed during the struggle with cancer
From the earliest of Markov-based that finally took his life in 1987, Myhill had worked
each determined by the outcome of a random inci-
composing programs, there have been dent. In addition, the following restrictions apply: out only the general form of a composition, the
two equally legitimate waysof obtaining (1) the range of states (i.e. the range of outcomes antiphonal process of which is discussed later in
available to the random incidents) is fixed, and (2) this article. Previously I had also had two direct
transition probabilities. Either one can each random incident is conditioned personal encounters with musical Markov chains:
by the out-
'compose' probabilities to suit general- come of its predecessor (or, equivalently, by the once in 1982 when Petr Kotik asked me to program
his interactive Markov-matrixeditor, and once in
ized compositional objectives, or one preceding state).
1983 when I wrote my own short program to illus-
can derive probabilities through analy- order of a Markov chain-the number of preced- trate basic Markov procedures for a class I was
sis of musical source material. In both ing states that directly influence a transition. Each teaching on automated composition.
increment in order adds an additional dimension
cases, it is critical to define the states of to the transition matrix. 3. Two favorite mathematical texts covering Mar-
kov chains are William Feller, An Introductionto
the chain in an appropriate manner. If probability-a number indicating the likelihood
ProbabilityTheoryand ItsApplications,3rd Ed., 2 vols.
one chooses to compose one's own that a random incident will produce a specified
(New York:John Wiley & Sons, 1967) and Joseph
outcome. Probabilities range from zero (impossi-
probabilities, then one should take into bility) to unity (certainty), with a continuum of
L. Doob, Stochastic Processes (New York: John Wiley
& Sons, 1953). My primary source was Samuel
account not only short-term transitions gradations in between. Karlin and Howard Taylor, A First Course in Stochas-
but also the long-term trends described probabilitydistribution-a function that associates tic Processes (New York: Academic Press, 1975); Kar-
lin and Taylor assume intensive mathematical
by the stationary probabilities. (Al- a probability with every conceivable outcome of a
random incident. Distributions can be either dis- background.
though stationary probabilities are te- crete or continuous, depending on the range of out- 4. Claude Shannon, "The Mathematical Theory of
dious to calculate by hand, it is easy to comes. Probability distributions are mathemati- Communication", Bell Systems Technical Journal 27,
incorporate a feature for extracting sta- cally identical to statistical distributions, except
that the former describes the ideal distribution of
379-423 and 623-656 (1948). See also Colin
tionary probabilities into a transition- Cherry, On Human Communication, 3rd Ed. (Cam-
a future population, while the latter describes the
bridge, MA: MIT Press, 1978).
matrix editor.) If one chooses to derive actual distribution of a population that already
exists. 5. Harry F. Olson, Music, Physics, and Engineering,
probabilities analytically, then one 2nd Ed. (New York: Dover, 1967). A description of
should take care that the source mate- production-an elementary operation within a Olson's work can be found in Charles Dodge and
generative process. Productions typically transform Thomas Jerse, "Composition with Computers",
rial is stylistically uniform; otherwise,
186 Ames, The Markov Process as a Compositional Model: A Survey and Tutorial