Professional Documents
Culture Documents
ERATION
iMPUTING
9 Ltd. 2005
w Introduction
It is well known that human feelings are influenced by music. There have
been many studies in various fields about the relationship between music and
human feelings, 4) e.g., studies about music therapy and mood generation in living
environments using background music. There also has been much research on
automatic music composition using computers. 2'~ Music composition is usually
a complex and hard task for novices who don't have musical knowledge or skill,
since the composer's expertise plays an important role in music composition.
Some automatic music composition systems for beginning composers have been
182 M. U n e h a r a a n d T. O n i s a w a
having musical knowledge and experience. Even inexpert users can compose
their own favorite works using the present system.
Tone Color of Each Part ] [ Pitch / Length of Each ! '~.......... 1 Pitch / Length of Each
]/C~:me ~Melody Part i "/9 [ Note i n % B ~ r t s
Go~ta~~ ::::::::::::::::::::::::::::::::::::::::::::::::::::::
i l ~ ~ ~ ~ ~ ~ ~]Fourbar
w System Structure
evaluations to them. If users find favorite 4-bar works, they copy t h e m as "Users
Favorites". Four favorite works are connected and composed as a 16-bar musical
work. 4) The system applies GA operators to the chromosomes based on users'
subjective evaluations in order to generate new works reflecting users' feeling of
music. Then twelve chromosomes are presented to users again. Procedures 3)
and 4) are repeated until users compose a satisfactory 16-bar musical work.
........ [~ c:~ r - _ . - - - - ) o ~ c~ c : : ~ c = ~ ~ r~ I
STEP t :
.fS=-.'~ I C?J
I! ~ U (,In f i l l ~ o d o r
:IiI~t
;T~k'~2th~ mlody I t ~ , yOU ! ~ L3 ~2:=2 [j L'~ O !
ran ~ l D ~ t t h ~ matt o n t i m
C\~ 0 0
r4~d'lr
~ ~ 1 . ~ , . _. l ~ User's Favorite I
[ ST~g~ 3: ~,~ i........ ~ m 16-bars musical work I
(1) Evaluation of Work: Users evaluate impressions of the works by choosing one
from "Good", "Very Good", "Neutral" or "Bad".
(2) Partial Evaluation of Work: If users find good parts in the melody line, users
point them out with "Good Part" button that is displayed above the melody
line.
(3) Copying and Composing a 16-Bar Work: Users compose a favorite 16-bar
musical work in the "Users Favorite" area, connecting four 4-bar works. If users
find a favorite work, they copy it into the area. If users newly find better works,
preserved works are replaced by them.
(4) Evaluation of 16-Bar Work: If four favorite 4-bar musical works are preserved,
the composed 16-bar work is evaluated every three generations. Users evaluate
the work whether the work is good or not as a whole with a 5-point scale, +2
(very good connection), ~ -2 (very bad connection).
[ l I I I I t I i[ . . . . O...... ~ Newlv~G
....... /
I ~ses ~ -~fge m
NewChmmosome I~M I ~ I I ! 4~ I
~
),
R...... tructlonof. . . . partsofch. . . . . . . . <+0++)+I..,/l
, (. . . . ~
......... /I\
,,~ /I\ /][\
+IX+ /]~ //~
G ..... rio. and replacement of memdy 0"4 bloc~: i, l+
Copyir~ Virus, ,o Ch ..... +++ +I
i I I I I I [ I [ [ I I I I I ] I I: i .... I I I I
I I I I ~'~v!":~a I i I I I [ II I t I
=
Fig. 4 GA Operators: Crossover, Mutation, Virus Genera-
tion, and Virus Infection
(3) Virus Generation and Virus Infection The partial evaluation of the works
is reflected in the GA operators named virus generation and virus infection,
based on the virus evolution theory, as shown in Fig. 4. The virus generation is
defined as the preservation of parts of the melody line evaluated partially "good"
in the viruses database. The virus infection is defined as a copy operation of
viruses to the chromosomes in the pool. The usefulness of virus generation and
virus infection is confirmed by the previous paper. 1~> The questionnaire results
answered by the subjects who compose musical works show that the partial
evaluation of a melody line is reflected well in the melody line of the musical
work generated in the next generation.
w Evaluation Experiments
To confirm the validity of the present system, 10 subjects, who are from 20
years old to 30 and have no music composition experience, carry out evaluation
experiments.
Experiment A: Experiment A is carried out to confirm whether the system gener-
ates music reflecting users' evaluation, and whether the system generates music
with various kinds of melody lines reflecting users' subjectivity toward music.
Subjects try to compose their favorite "cheerful musical works" using the present
system. The first generation chromosomes have the same data among all sub-
188 M. Unehara and T. Onisawa
i:i :/ i 84 84184184184
~,
::. :: :::: : ::
I
Evaluation of the works
. . . .
3 6 9 12 15 Generation
jects. The subjects compose music with the system until the 15th generation.
After the composition, the works composed at the 3rd, 6th, 9th, 12th, and 15th
generations by the subjects themselves are presented to the subjects in random
order. Each subject listens to and evaluates those works composed by the sub-
ject himself/herself with a 5-point scale, where 5 point is the best and 1 point
is the worst.
Experiment B: Experiment B is carried out in order to evaluate composed mu-
sical works from the objective point of view. Other twelve subjects, who don't
compose music in experiment A, listen to the works composed in the 3rd, 6th,
9th, 12th, and 15th generations by some subject in experiment A in random or-
der. The twelve subjects rate the works with a 5-point scale, where the 5 point
means that they feel the most cheerful and the 1 point means that they feel the
least cheerful. Then, the subjects listen to and evaluate other works composed
by another subject. The twelve subjects repeat these evaluations of the works
composed in the 3rd, 6th, 9th, 12th and 15th generations in experiment A.
Results and Remarks: Figure 5 shows the average of subjects' evaluations of
composed works at every three generations. The solid line expresses the results
of experiment A, and broken line expresses the results of experiment B. It is
found that both of the values increase with the progress of generations. In the
result of experiment B, a t test is conducted to confirm whether there was a
significant difference between the average value at the 3rd generation and that
at the 15th generation. The t value was 3.93, larger than t(218,0.05) = 1.97.
Therefore, it is confirmed that composed works also become more cheerful even
for subjects who don't compose them. However, the solid line becomes better
than the broken line. From this point of view, it is found that the composers are
more satisfied with their works than other subjects who don't compose them.
Figure 6 shows examples of the melody part scores composed by two subjects.
Although the subjects try to compose cheerful music and start with the same
Music Composition by Interaction between Human and Computer 189
. r, t. . j :# . . ~. P I
.~4.........................q ......:.................~.-.-4........f...........t..............] ............ ~'-'~-- ~ " ~ "- - u ~ ' ~
chromosomes, it is found that various works with different melody lines are
generated, reflecting their subjective evaluations toward music. These results
show that the system can compose music reflecting each user's feeling of music.
w Summary
This paper describes a music composition system, by which 16-bar mu-
sical works reflecting users' feeling of music are composed. An Interactive GA
is introduced to the system so that users' subjectivity toward music is reflected
in composed music. One chromosome corresponds to a 4-bar musical work,
and the GA operators are applied to chromosomes according to users' subjec-
tive evaluations. These chromosomes are gradually evolved over the progress
of generations, aiming to generate users' favorite musical works. From the ex-
perimental results, it is found that various works are composed and that the
evaluation to the works increased over the progress of generations. T h a t is, the
system can compose music reflecting users' feeling of music.
Future research aims to construct a system that composes not only the
melody part but also the backing parts completely.
References
1) Biles, J. A., "GenJam: Interacting with a musical IGA," Proceedings o f the In-
ternational Conference on Systems, Man, and Cybernetics 1999, Tokyo, Japan, 3, pp.
652-656, 1999.
2) Igarashi, S., Scientific Analysis o f Music Performance, YAMAHA Music Media Co.,
Tokyo, Japan, 2000 (In Japanese).
3) Johanson, B. and Poll, R., "GP-Music: An Interactive Genetic Programming
System for Music Generation with Automated Fitness Raters," Proceedings o f
the Third Annual Conference on Genetic Programming, MIT Press, 1998.
4) Katayose, H. and Inokuchi, S., "Computer and Music," Journal o f the Institute
o f Electronics, Information and Communication Engineers, Tokyo, Japan, 77, pp.
767-770; 1994 (In Japanese).
5) Kitagawa, Y., Handbook o f Chord Progression, RittorMusic, Tokyo, Japan, 1999
(In Japanese).
6) Kitagawa, Y., Handbook of Music Theory, RittorMusic, Tokyo, Japan, 1999 (In
Japanese).
190 M. U n e h a r a a n d T . O n i s a w a