A method of automatically processing a melody is disclosed. A computing
resource is provided for generating or processing a series of MIDI events
as part of an automatic music algorithm. A memory area contains a
plurality of sound samples, each including an audio stream. One or more
of the sound samples includes a speech sentence, and the automatic music
algorithm temporally synchronizes playback of a sound sample to the
series of MIDI events in accordance with a musical law, and the melody is
automatically processed.