Generating melodies with genetic algorithms