Search code examples
procedural-music

Procedural music generation?


Anyone have good book / article recommendation for procedural generation of background music? (No vocals, just instruments).

I'm not interested in:

How do I generate the sound of a particular note on a particular instrument

I'm interested in:

How do I generate the melody / score for the music.

Thanks!

EDIT:

Thanks for the reference to Brian Eno. I'm definitely looking into the ambient/user can ignore type of music. I.e. think the background music of a game. It's there to provide some basic mood, but the focus is the game.


Solution

  • Sometime ago I ran into ChucK, which is a programming-language to generate music/sound/audio:

    ChucK presents a new time-based, concurrent programming model that's highly precise and expressive (we call this strongly-timed), as well as dynamic control rates, and the ability to add and modify code on-the-fly. In addition, ChucK supports MIDI, OSC, HID device, and multi-channel audio. It's fun and easy to learn, and offers composers, researchers, and performers a powerful programming tool for building and experimenting with complex audio synthesis/analysis programs, and real-time interactive control.

    I believe the end result can be converted into MIDI, which can then be converted into a score or sheet notation.

    I don't know if this is what you're looking for. Hope this helps!

    EDIT

    After thinking about this a little longer, I think what you can possibly do (and this sounds a bit crazy) is write code that generates ChucK code. So define a set of rules for your music/score generation and then use that to create valid ChucK code. After you run the ChucK code, you can get a MIDI file which you can then convert into score/sheet-music.