This chapter covers
- Representing music with control messages and velocity values
- Tokenizing music into a sequence of indexes
- Building and training a music Transformer
- Generating musical events using the trained Transformer
- Converting musical events back to a playable MIDI file
Sad that your favorite musician is no longer with us? Sad no more: generative AI can bring them back to the stage!
Take, for example, Layered Reality, a London-based company that’s working on a project called Elvis Evolution.1 The goal? To resurrect the legendary Elvis Presley using AI. By feeding a vast array of Elvis’ official archival material, including video clips, photographs, and music, into a sophisticated computer model, this AI Elvis learns to mimic his singing, speaking, dancing, and walking with remarkable resemblance. The result? A digital performance that captures the essence of the late King himself.