In this chapter, we'll talk about Magenta.js, a JavaScript implementation of Magenta that has gained in popularity for its ease of use, since it runs in the browser and can be shared as a web page. We'll introduce TensorFlow.js, the technology upon which Magenta.js is built, and show which models are available in Magenta.js, including how to convert our previously trained models. Then, we'll create small web applications using GANSynth and MusicVAE, for sampling audio and sequences respectively. Finally, we'll see how Magenta.js can interact with other applications, using the Web MIDI API and Node.js.
The following topics will be covered in this chapter:
- Introducing Magenta.js and TensorFlow.js
- Creating a Magenta.js web application
- Making Magenta.js interact with other apps