Melomics is a (successful!) research project partially funded by the Spanish Research Programme, and developed at the University of Malaga.
(Melomics video)
Melomics applies non-conventional evolutionary algorithms to creating original music without human intervention.
The algorithm operates on data structures (functioning as genomes) which indirectly encode the melodies: each genome undergoes an artificial developmental process to generate the corresponding song. As songs evolve, they are rendered in several formats: playable (MP3), editable (MIDI and MusicXML) and readable (score in PDF).
Science fiction fans have been promised something like this from writers for generations. Read about the robot pianist from Herbert Goldstone's beautiful 1953 story Virtuoso, which describes what a humanoid robot can do once the correlation between dots on sheet music and the levers of a piano are properly explained.
More advanced music systems, some of them from the recent past. Take a look at these:
Technovelgy (that's tech-novel-gee!)
is devoted to the creative science inventions and ideas of sf authors. Look for
the Invention Category that interests
you, the Glossary, the Invention
Timeline, or see what's New.
Illustrating Classic Heinlein With AI
'Stasis, cold sleep, hibernation, hypothermia, reduced metabolism, call it what you will - the logistics-medicine research teams had found a way to stack people like cordwood and use them when needed.'
Deflector Plasma Screen For Drones ala Star Wars
'If the enemy persists in attacking or even intensifies their power, the density of the plasma in space will suddenly increase, causing it to reflect most of the incoming energy like a mirror.'