Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Music Generation with Magenta

You're reading from  Hands-On Music Generation with Magenta

Product type Book
Published in Jan 2020
Publisher
ISBN-13 9781838824419
Pages 360 pages
Edition 1st Edition
Languages
Author (1):
Alexandre DuBreuil Alexandre DuBreuil
Profile icon Alexandre DuBreuil

Table of Contents (16) Chapters

Preface 1. Section 1: Introduction to Artwork Generation
2. Introduction to Magenta and Generative Art 3. Section 2: Music Generation with Machine Learning
4. Generating Drum Sequences with the Drums RNN 5. Generating Polyphonic Melodies 6. Latent Space Interpolation with MusicVAE 7. Audio Generation with NSynth and GANSynth 8. Section 3: Training, Learning, and Generating a Specific Style
9. Data Preparation for Training 10. Training Magenta Models 11. Section 4: Making Your Models Interact with Other Applications
12. Magenta in the Browser with Magenta.js 13. Making Magenta Interact with Music Applications 14. Assessments 15. Other Books You May Enjoy

Chapter 5: Audio Generation with NSynth and GANSynth

  1. You have to handle 16,000 samples per second (at least) and keep track of the general structure at a bigger time scale.
  2. NSynth is a WaveNet-style autoencoder that learns its own temporal embedding, making it possible to capture long term structure, and providing access to a useful hidden space.
  3. The colors in the rainbowgram are the 16 dimensions of the temporal embedding.
  4. Check the timestretch method in the audio_utils.py file in the chapter's code.

  1. GANSynth uses upsampling convolutions, making the training and generation processing in parallel possible for the entire audio sample.
  2. You need to sample the random normal distribution using np.random.normal(size=[10, 256]), where 10 is the number of sampled instruments, and 256 is the size of the latent vector (given by the latent_vector_size configuration).

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}