328
V.
D.
Sotiropoulos and
A.
D.
Sotiropoulos
Particular attention is focused in the present paper
in
the phenomena
of
bifurcation and chaos in music compositions. Many musical works, when
dealing with chaotic music, have been using the classical mathematical
recurrence models
of
the logistic equation or the Henon equation. A
comprehensive description
of
the use
of
logistic equation in composing music is
posted in the world wide web by Elaine Walker [7].
Our work departs from this
approach in that it proposes a new mathematical model to algorithmically
compose music. This model is based on geometry and, specifically, on a triangle
which is formed by its two sides and the angle between them; the two sides
representing the sound amplitude and frequency separated by an arbitrary angle
between them. The frequency
of
the next sound
is
represented by the square root
of
the third side
of
the triangle. Applied repeatedly, this model defines a
recurrence equation whose solutions result in a complete music composition.
2. The model
We propose a frequency-amplitude triangle whose cosine law is used
as
a
recurrence equation to algorithmically compose music. The triangle is defined by
two sides and the angle between them; one
of
the sides is the sound frequency,
x,
at a step (note), the other side is the sound amplitude,
y,
at the same step, while
the angle between them
is
a free parameter
to
be chosen by the composer. The
resulting third side
of
the triangle is defined as the square root
of
the sound
frequency,
x,
of
the next step (note). This frequency, using the cosine law,
is
given in terms
of
the frequency and amplitude
of
the preceding step (note) as:
xn+
1 =
Xn
2
+ Y n
2
-
2x
n
y
ncos
8
(I)
The sound amplitude,
y,
at each step depends, in general, on the amplitude and
frequency
of
the same or previous step(s) in any way the composer chooses, that
is,
in
any functional manner:
Yn
= f
(x
n
,
Xn-l
, ... ,
xn-m)
(2)
where
m=0,1,2,3,
... ,
n=m+l,m+2,
...
Once the composer chooses the initial frequency or frequencies, the recun-ence
equation
(I)
yields all the sound frequencies
Xn
and, thus, the complete music
composition since the sound amplitudes
Yn
are given by equation (2).
It
is
convenient from the computational point
of
view to use small
numbers for x that are used
in
the mathematical literature for recurrence
equations and do not correspond to actual sound frequencies. The mathematical
frequencies
Xn
are then converted to standard MIDI (Musical Instrument Digital
Interface) note numbers ranging from 0 to 127 by using the following equation
midikey
= floor (127(1 +x)/2 +0.5)
(3)
where midi key is the MIDI note number and floor(z) is the largest integer not
greater than
z.
We note that equation (3) is valid for x between
-1
to +1.
If
the
largest value
of
x that comes out
of
the recurrence equation (1)
is
greater than 1
then, in equation (3), x
is
adjusted accordingly to yield note numbers between 0