This book presents comprehensive coverage of the latest advances in research into enabling machines to listen to and compose new music. It includes chapters introducing what we know about human musical intelligence and on how this knowledge can be simulated with AI. The development of interactive musical robots and emerging new approaches to AI-based musical creativity are also introduced, including brain-computer music interfaces, bio-processors and quantum computing. Artificial Intelligence (AI) technology permeates the music industry, from management systems for recording studios to recommendation systems for online commercialization of music through the Internet. Yet whereas AI for online music distribution is well advanced, this book focuses on a largely unexplored application: AI for creating the actual musical content.