You are on page 1of 6

The Digital Computer as a Musical Instrument

Author(s): M. V. Mathews
Source: Science, New Series, Vol. 142, No. 3592 (Nov. 1, 1963), pp. 553-557
Published by: American Association for the Advancement of Science
Stable URL: http://www.jstor.org/stable/1712380
Accessed: 12/02/2009 17:39

Your use of the JSTOR archive indicates your acceptance of JSTOR's Terms and Conditions of Use, available at
http://www.jstor.org/page/info/about/policies/terms.jsp. JSTOR's Terms and Conditions of Use provides, in part, that unless
you have obtained prior permission, you may not download an entire issue of a journal or multiple copies of articles, and you
may use content in the JSTOR archive only for your personal, non-commercial use.

Please contact the publisher regarding any further use of this work. Publisher contact information may be obtained at
http://www.jstor.org/action/showPublisher?publisherCode=aaas.

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed
page of such transmission.

JSTOR is a not-for-profit organization founded in 1995 to build trusted digital archives for scholarship. We work with the
scholarly community to preserve their work and the materials they rely upon, and to build a common research platform that
promotes the discovery and use of these resources. For more information about JSTOR, please contact support@jstor.org.

American Association for the Advancement of Science is collaborating with JSTOR to digitize, preserve and
extend access to Science.

http://www.jstor.org
example, by running our computer at
a rate of 30,000 numbers per second,
we can generate sound waves with fre-
quencies from 0 to 15,000 cycles per
second. Waves in this frequency range
are about the only ones the human ear
The Digital Computer can perceive.
The signal-to-quantizing-noise ratio
as a Musical Instrument of the sound wave depends on the ac-
curacy with which the amplitudes of
the pulses are represented. Computers
A computer can be programmed to play "instrumental" deal with a finite number of digits and,
hence, have limited accuracy. However,
music, to aid the composer, or to compose unaided. the computer limits are more than suf-
ficient acoustically. For example, am-
M. V. Mathews plitudes represented by four-digit deci-
mal numbers, are accurate to within 1
part in 10,000, an accuracy which rep-
resents a signal-to-noise ratio of 80
decibels; this is less noise than the ear
With the aid of suitable output equip- chine for composing music. It can eith- can hear, and less noise than would be
ment, the numbers which a modern dig- er compose pieces based entirely on introduced by any audio equipment,
ital computer generates can be directly random numbers generated by itself or such as the best tape recorder.
converted to sound waves. The process it can cooperate with a human com- The sampling process just described
is completely general, and any perceiv- poser. It can play its own compositions. is theoretically unrestricted, but the gen-
able sound can be so produced. This Here I first describe the process for eration of sound signals requires very
potentiality of the computer has been converting numbers to sounds, then I high sampling rates. The question
of considerable use at the Bell Tele- describe a program for playing music. should immediately be asked, "Are
phone Laboratories in generating stim- Next I consider a psychoacoustic prob- computers of the type now available
uli for experiments in the field of lem which is typical of those posed in capable of generating numbers at these
hearing, and for generating speech attempts to make more interesting rates?" The answer is "Yes," with
sounds and connected speech in inves- sounds. Finally, I look to the future, some qualifications. A high-speed ma-
tigations of the factors which contribute to the time when the computer is itself chine such as the I.B.M. 7090, using
to the intelligibility and naturalness of the composer. the programs described later in this
speech. article, can compute only about 5000
The quality of sound is of great im- numbers per second When generating a
portance in two fields-that of speech Sound from Numbers reasonably complex sound. However,
and communication and that of music. the numbers can be temporarily stored
Our studies at the Bell Laboratories in How can the numbers with which a on one of the computer's digital mag-
the first of these fields have led us, computer deals be converted into netic tapes, and this tape can subse-
over the past few years, to related sounds the ear can hear? The most quently be replayed at rates up to
studies in the production of musical general conversion is based upon the 30,000 numbers per second (each
sounds and their organization into mu- use of the numbers as samples of the number being a 12-bit binary number).
sical compositions. I believe that this sound pressure wave. A schematic dia- Thus, the computer is capable of gen-
by-product of our work on speech and gram of this process is shown in Fig. 1. erating wideband musical sounds. Be-
hearing may be of considerable value Here a sequence of numbers from the cause of the cost of computer time,
in the world of music, and that further computer is put into an analog-to-dig- we often limit our studies to those for
work in this direction will be of sub- ital converter, which generates a se-' which the computer is run at lower
stantial value in furthering our under- quence of electric pulses whose am- rates, such as 10,000 numbers per sec-
standing of psychoacoustics. plitudes are proportional to the num- ond-a rate which yields a bandwidth
There are no theoretical limitations bers. These pulses are smoothed with a of 5000 cycles per second.
to the performance of the computer as filter and then converted to a sound The direct conversion of numbers to
a source of musical sounds, in contrast wave by means of an ordinary loud- sound is only one of the ways in which
to the performance of ordinary instru- speaker. Intuitively, we feel that if a the computer can generate sounds. An
ments. At present, the range of com- high enough pulse rate is used and the alternate procedure is to use the num-
puter music is limited principally by amplitudes of the pulses are generated bers from the computer to control elec-
cost and by our knowledge of psycho- with sufficient precision, then any sound tronic apparatus such as oscillators and
acoustics. These limits are rapidly re- wave can be closely approximated by filters, which, in turn, generate the
ceding. this process. Mathematically, it has sounds. These processes have been car-
In addition to generating sound, the been established (1) that this conclu- ried out by the Radio Corporation of
computer can also function as a ma- sion is correct. A sound wave with fre- America music synthesizer (2) and by
The author is director of the Beha,vioral Re-
quencies from 0 to B cycles per second a machine constructed at the Univer-
search Laboratory, Bell Telephone Laboratories, can be generated from a sequence of sity of Illinois (3). This procedure has
Murray Hill, N.J. two B pulses per second. Thus, for the advantage that a much lower rate
1 NOVEMBER 1963
553
LOUDSPEAKER in computer language, the character-
COMPUTER
istics of a set of musical instruments.
I MEMORY I The program unit that represents the
i 6, 13, 16,12, 11, 15, 1 instrument (or the "instrument unit")
112, 5 -4, I' J
L----- - -_.1 may be as simple or as complex as he
desires. He then prepares a score con-
sisting of a list of notes to be played
SEQUENCE OF SEQUENC:E OF SOUND PRESSURE on the instrument-units he has created.
NUMBERS FROM PULSES WITH WAVEOBTAINED The samples of sound wave are gen-
COMPUTER AMPLIT UDE BY SMOOTHING
PROPOR1TIONAL PULSES erated by putting the score, in a form
MEMORY
I TO NUMIBERS the machine can read, into the com-
IlJ
0:
puter, together with the instrument-
6 13 16 12 11 15 .-..
units, and turning on the computer.
D
I
The numerical output is recorded on
On1 10
20 a digital magnetic tape for subsequent
Z - conversion to acoustic form.
J? - ZA ,/ . The interconnected blocks of pro-
gram which make up the instrument-
< - -10 unit are called unit generators. There
uZa-
r are a number of different types of unit
a -20
.. 0 1 2 generators, each of which has a spe-
1. TIME (MILLISECONDS) cific function. A typical instrument-
unit is shown in Fig. 2. This instru-
Fig. 1. Schematic diagram depicting the conversion of a sequence of numbers stored ment-unit is composed of five unit
in a computer memory to a sound pressure wave form. The sampling rate is 10,000
numbers per second to yield a bandwidth of 5000 cycles per second for the sound wave.
generators; three of them are oscilla-
tors, one is a random-number gener-
ator, and one is a summing circuit.
of output is required from the com- devised for computing the samples Each oscillator has two inputs and one
puter, and hence the computation costs from a simple set of parameters. The output. The upper input specifies the
are less. The disadvantage is that the central contribution of the Bell Tele- amplitude of the output; the lower in-
only sounds that can be generated are phone Laboratories to computer music put specifies the frequency of the out-
those produced by the particular elec- is a program for computing the many put. The wave shape of the output
tronic apparatus employed, and hence samples in a note from the few param- need not be sinusoidal and can, indeed,
the generality of the sampling process eters characterizing it. The details of be any one of 20 arbitrary functions
is not attainable. the program determine the limits of stored in the computer memory. In
The work described here, which was the sounds now obtainable (from the the example given, the wave shapes are
done at the Bell Telephone Laborator- standpoint of practicality) with a com- sketched on the oscillators, oscillator 1
ies, is based entirely on the sampling puter. The program represents a com- producing a damped sinusoid, oscillator
method. promise between a general procedure, 2, a triangular attack-and-decay func-
through which any sound could be tion, and oscillator 3, a sinusoid.
produced but which would require an This particular instrument-unit pro-
Playing a Computer inordinate amount of work on the part duces notes with controlled attack and
of the composer, and a very simple decay and with a frequency variation
To specify individually 10,000 to procedure, which would too greatly or vibrato. Oscillator 1 produces the
30,000 numbers for each second of limit the range of musical sounds ob- main frequency, which, for example,
music is inconceivable. Hence, the tainable. In order to give the composer for note A of the musical scale would
numbers-to-sound conversion is useless flexibility between these two extremes, be about 440 cycles per second. The
musically unless a suitable program the program is divided into two parts. amplitude of the output of oscillator 1
(set of computer instructions) can be In the first part the composer specifies, is modified by oscillator 2, which im-
poses a desired attack-and-decay func-
tion. The frequency of oscillator 2 is
such that it goes through exactly 1
Table 1. A typical computer score. The corresponding conventional score is shown in Fig. 3.
cycle of oscillation per note. Such low
Loud- Periodic vibrato Random vibrato
Dura- ness Fre- - frequency operation is quite feasible
Opera- Instru- ig
tion ment ng tion (arbi- quency Ampli- Fre- Ampli- Band- for oscillators used in computer pro-
width
code No. tlme (sec) trary (cy/sec) tude quency tude
grams. The amplitude of the note is
(sec) units) (cy/sec) (cy/sec) (cy/sec) (cy/sec)
controlled by the upper input to oscil-
Play 1 0.0 0.25 1 466 0 0 7.0 6 lator 2, and this amplitude is one of
Play 1 .5 .25 3 698 0 0 10.5 7
1 .125 5 698 0 0 10.5 7.5 the input parameters which the com-
Play 1.0
Play 1 1.5 .125 7 698 0 0 10.5 8 poser must specify for each note. The
8.5
Play 1 2.0 .25 9
10
932
784
0 0
0
14.0
11.7 9 frequency of oscillator 1 is the sum of
Play 1 2.25 .125
2 0.5 .50 1 116.5 1.7 6 0 0 three components, one being the center
Play
Play 2 1.5 .25 5 156 2.3 7 0 0 frequency of the note (an input param-
2.0 .125 10 233 3.5 8 0 0
Play 2 eter), the other two being a periodic
SCIENCE, VOL. 142
554
and a random vibrato, respectively. no more complicated than drawing a
The amplitudes and frequencies of the J =60
diagram such as that of Fig. 2. About
periodic and the random vibratos can ten different types of generators are
,/j? ,i, h
be controlled separately, and thus these available, and new ones may easily be
amplitudes and frequencies constitute defined. However, the generators most
four additional input parameters. The frequently used are those shown sche-
random generator is a unit whose aver-
age amplitude is controlled by its upper
matically in Fig. 2. Most composers
wish to use a number of instrument-
iK 'A
'r. I
r~,
=^I'fi
e I_ ! b-
~~~~~l,
input, and whose bandwidth, or aver- units, and these are distinguished sim-
age rate of variation, is controlled by ply by identifying numbers. If two or
its lower input. more instrument-units are to play si- Fig. 3. A conventional score, correspond-
Each of the unit generators consists ing to the computer score of Table 1.
multaneously, the samples they gener-
of a block of a few computer instruc- ate are simply added together. This
tions. By assembling particular groups operation corresponds to the addition
of generators, almost any desired prop- of the sound pressure waves from quired by the instrument-unit. Both the
erties of the output sound wave may several sources in air. number of these parameters and their
be achieved and controlled. The com- arrangement depend entirely upon the
putation time is roughly proportional specifications the composer has sup-
to the number of generators, and the The Score plied.
number of input parameters tends to To play the music, the computer
increase with the number of genera- Once the composer has supplied reads a line from the score, at the ap-
tors. Thus, complexity of the instru- specifications for the orchestra, he propriate time inserting the parameters
ment-unit is paid for both in terms of must prepare a score giving the param- given in the score into an instrument-
computer time and in terms of the eters of the notes he wishes played. An unit and activating the instrument-unit
number of parameters the composer example of a score is given in Table 1. so that it may generate numbers equiv-
must supply for each note. In general, It corresponds to the conventional mu- alent to the duration of the note. The
the complicated instrument-units pro- sical score of Fig. 3. Two instrument- entire sequencing process is automat-
duce the most interesting sounds, and units, of the type shown in Fig. 2, are ically taken care of by the program
the composer must make his own com- assumed to be available; these are des- and need not concern the composer.
promise between interest, cost, and ignated instrument 1 and instrument 2.
work. Column 1 of Table 1 is an operation
In supplying specifications for an code which indicates that a note is to Musical Examples
instrument-unit, the composer does not be played; column 2 designates the
have to be concerned with the com- instrument-unit on which the note is to The best way to form an opinion
puter instructions represented by each be played; column 3 gives the starting about computer music is to listen to
unit generator. A simple language is time of the note; column 4 gives the some. A commercial record is now
available by means of which he can duration of the note; and columns 5 available (4). However, a certain
supply the specifications in a manner to 10 supply the input parameters re- amount of discussion may be useful.
A large number of compositions have
now been produced by computer. They
range from 16th-century music for the
AMPLITUDE- -- - recorder to 12-tone music; from classi-
cal to popular music; from serious
I compositions by professional compos-
DURATION OF NOTE ers to acoustic experiments by psychol-
OUTPUT TO BE
SUMMED WITH OTHER ogists; from pieces formed entirely of
FREQUENCY---- INSTRUMENTS AS conventional tones to pieces formed
SPECIFIED BY THE
SCORE entirely of random noise.
MAXIMUMFREQUENCY An outstanding advantage is the
DEVIATIONOF t
PERIODIC VIBRATO precision of the computer. Effects are
RATE OF exactly reproducible. Very complex ef-
PERIODIC VIBRATO fects, such as simultaneous synchro-
nous tremolo and vibrato of two notes,
MAXIMUM FREQUENCY can be obtained. Exact rhythmic pat-
DEVIATION OF terns, such as the playing of seven
RANDOM VIBRATO notes in one voice against five notes in
RATE OF another voice, are as easy to produce
RANDOM VIBRATO as any other note sequence. Chords
can be shifted in frequency with a glis-
Fig. 2. Schematic diagram of a typical instrument-unit in the computer orchestra. The sando while the frequency ratios of the
diagram represents a section of the computer program. In order for the computer to various voices are maintained.
produce a note, numerical values for the note parameters shown at the left of the The computer is also very flexible.
diagram are stored in the program. The program then generates samples of the sound When sufficient effort has been ex-
pressure wave form.
pended in supplying specifications for
1 NOVEMBER 1963
555
stead, one writes down and gives the surprise is the dominance of the rates
.1.5 MILLISECONDS computer a sequence of numbers. of attack and decay in determining the
\5 tz DIFFERENCE IN The computer has proved to be of character of a sound. These rates are
2.0
tr RBBISETIMES
more use to the composer who wishes a much more significant factor than
-\ to produce new compositions with new the harmonic composition. Thus, a
wi sounds than to the performer who "violin," if artificially given the attack-
-
I
1.51 ---7_7
_---.-e-----
S
wishes to duplicate existing music. It and-decay characteristic of a piano,
,10 /2
I- is difficult and expensive to copy all sounds much more like a piano than
I^ATIO3/2
I- the acoustic details of conventional a "piano" does when it is given the
OXw
1.0o- instruments well enough to produce attack-and-decay characteristic of a
excellent instrumental sounds. Hence, violin.
-JIV)

the playing of pieces already written Another unexpected result is the im-
0.5 for existing instruments seems better portance of suitable random variations
left to the instrumental performer. in almost all parameters of a note for
The most apparent limitation in the introducing richness and interest. A
0 10 20 30 40 field of computer music results from sound which is otherwise quite plain
RISE-TIME (MILLISECONDS) lack of adequate knowledge of the can be greatly improved by introducing
sound of a given pressure wave. The a random variation of up to 50 percent
Fig. 4. Ratios of two rise times that are
just discriminable (discriminable 75 per- computer sounds are described in in its amplitude, at an average rate of
cent of the time) as a function of the terms of the waveshapes produced by something between 8 and 20 cycles per
shorter of the two rise times. For times the unit generators in the instrument- second, and by introducing a random
greater than 5 milliseconds, the ratio of units. This method for describing variation of perhaps 1 percent in its
discriminability is about 3/2. For times sound is quite different from the meth- frequency, at a similar rate.
shorter than about 5 milliseconds, the
ratio corresponds to a difference of 1.5 od of ordinary music, in which the
milliseconds in rise times. sound is specified by the instrument
which produces it, when certain in- Psychoacoustic Questions
structions have been received by the
the instrument-unit, almost any sound performer. Musicians have had a great Our musical studies with the com-
effect can be produced, provided the deal of experience in listening to the puter indicate that, in this area, the
wave form of the sound can be de- sounds produced by violins, oboes, major problem to be overcome by a
scribed. horns, and other instruments and are composer concerns the relation of the
It is very easy to use the computer well able to predict the contribution physical description of the sound
in this way. The electronic equipment of these instruments to the total sound. waves to the psychoacoustic effects
(computer and output equipment) has By comparison, computer musicians which he desires. Contrary to the sit-
been constructed once and for all. have had very little experience in try- uation with conventional instruments,
There are no soldering irons, tape- ing to predict the effect of a given har- with the computer the composer him-
splicings, or even knob-twistings in- monic-composition factor or a given self is solely responsible for the sound.
volved, as there are with other elec- attack-and-decay function on the tim- He has no conductor to interpret his
tronic equipment for producing music. bre of a note. composition. He himself must give
No manual dexterity is required. In- An example of a psychoacoustic careful consideration to even such a
simple matter as the relative loudness
of the instruments in a group.
Our experience has shown how little
z
we now know about the relation of
DO
<0C the quality of sound to various features
ty z
:0
of waveform. A new body of psycho-
w acoustic data is necessary. These data
W CO
should relate the properties of the
0
z acoustic waves of music to perceived
qualities of sound. Part of the task of
CO assembling these data can, of course,
be given to the composer, and part of
the data can be supplied by interested
Lii psychologists. An increase in knowl-
z
0 edge in this field is bound to be of
0 value and interest in other fields, in-
-J
cluding those of speech and hearing.
Typical of the sort of new knowl-
edge that is needed is knowledge con-
180 240 cerning the rate of attack of a note.
TIME (SECONDS) As already noted, this parameter has
a strong influence on the timbre, and
Fig. .. Section of a score prepared for a study by J. C. Tenney. The average values if the composer is to make use of it
for note-duration and loudness are shown by the solid lines as functions of playing
he must know how small a change in
time. The allowable range of variation of these parameters is shown by the dashed
lines sulrrounding the solid lines. rate is perceptible. Not being able to
SCIENCE, VOL.. 142
Furthermore, the theme can be modi- avoid having to write out all the indi-
find these data in the literature, J. C.
fied in simple ways: it can be trans- vidual notes in a piece of music in order
Tenney made a small study. The re- to express his ideas-that he will be
sults are shown in Fig. 4. Here the posed to another pitch range or played
upon a different instrument; its tempo able, rather, to write directly in param-
just-detectable difference in the rise eters that are much more closely re-
times of two tones is shown as a func- can be changed or its loudness modi-
fied. Harmonization of the theme ac- lated to his musical objectives, letting
tion of the shorter of the two rise
cording to simple rules is possible. the machine generate the individual
times. These data indicate that, for
Other means of modifying or develop- notes. Whether this objective can be
rise times longer than about 5 milli-
ing a theme in interesting ways may attained remains to be seen.
seconds, a ratio of 3 to 2 is just detect-
able. For times shorter than 5 millisec- be forthcoming. The composer could,
onds, a difference of 1.5 milliseconds perhaps, form a composition from a
set of thematic material, which he sup- The Future of Computer Music
is necessary. Using these data, the com-
poser can select a "scale" of attack plied, and a set of fixed transforma-
tions. I have indicated how almost any
functions which are separated by inter-
At present, the music-playing pro- sound can be produced by treating the
vals that are equal in terms of the
listener's ability to differentiate be- gram has been modified so as to make numbers generated by a computer as
tween the attack functions. Such data transformational development of a samples of the sound pressure wave.
are typical of those required by a theme possible. Certain of the sim- A very high sampling rate is required,
plest transformations have been pro- and, if this process is to be useful
composer.
grammed. These include all those men- musically, programs for generating
tioned above, with the exception of samples from the parameters of notes
with the Computer harmonization. As yet not enough must be written. A broad set of these
Composing
music has been generated to assess the programs is now available and has
So far I have described use of the significance of this approach. been used for playing, on an experi-
A slightly different method has been mental basis, a wide range of music.
computer solely as a musical instru-
ment. The composer writes one line of tried by Tenney. His approach is a Additionally, studies are being made
compromise between a purely random on possible uses of the computer as an
parameters for each note he wishes
and a completely specified composi- aid in composing. In such studies the
played and hence has complete control
of the note. He is omnipotent, except tion. The parameters of the individual computer usually plays its own compo-
for lack of control over the noise pro- notes of the composition are generated sitions and constitutes a composer-
duced by the random-number unit gen- as a sequence of independent random player team.
erators. Here a minor liberty is allowed numbers by a random-number routine. Computer music appears to be very
the computer. However, the average value and the promising technically. However, the
However, composing-programs are variance of these parameters are speci- method will become significant only if
a reasonable area of computation, and fied by the composer as functions it is used by serious composers. At
work in this direction has already been which change slowly throughout the present, our goal is to interest and
done by Hiller (5), Olson (6), Brooks composition. The "score" of a section educate such musicians in its use. We
of one of Tenney's works is shown in believe that competent work in the
(7), and others. A number of different
graphic form in Fig. 5. The means and field can benefit not only music but the
approaches can be taken toward com-
variances of the note-durations, loud- whole field of psychoacoustics.
position by computer. At one extreme,
the computer can be given a set of ness, and other parameters of the vari-
ous voices are controlled. Indeed, the References and Notes
rules, plus a random-number genera-
tor, and can simply be turned on to number of voices playing at a given 1. C. E. Shannon, Bell System Tech. J. 27, 379
time is controlled. By this relatively (1948).
generate any amount of music. Hiller's 2. H. Olson, H. Belar, J. Timmens, J. Acoust.
work is perhaps closest to this extreme. simple algorithm, a long-range struc- Soc. Am. 32, 311 (1960).
3. A musical output for the csx-1 computer in
In the opposite direction, the human ture which can be clearly recognized the Coordinated Science Laboratory at the
composer can maintain close control of by the ear is imposed on the composi- University of Illinois was constructed by J.
Divilbis. No written description is as yet
the music, using the computer merely tion. Thus, one of the characteristic available.
4. "Music from Mathematics." Decca record
to avoid some of the repetitious and shortcomings of random compositions DL 9103 Monaurl or DL 79103 Binaurl.
tedious work involved in representing -a lack of long-range structure-can 5. L. Hiller, Jr., and L. Isaacson, Experimental
Music (McGraw-Hill, New York, 1959).
his musical ideas. Once a theme with be overcome. 6. H. Olson and H. Belar, J. Acoust. Soc. Am.
many notes has been written, a pro- The use of computers as an aid in 33, 1163 (1961).
7. F. Brooks, Jr., A. Hopkins, Jr., P. Newmann,
gram can be devised for repeating the composition is still very new. We hope W. Wright, IRE (Inst. Radio Engrs.) Trans.
theme by means of a single instruction. that by this means the composer can Electron. Conmputers EC-6, 175 (1957).

1 NOVEMBER 1963 557

You might also like