a drum machine built with magenta.js

Magenta.js is an open-source library that primarily has two things: a set of core functions for interacting with audio in the browser and machine learning models for generative music. In this demo we use these core functions to build a simple drum machine. We are using these built-ins:

  • a player that plays nice drum sounds
  • ability to export easily to MIDI
  • a callback every time the player plays a note, so that you can update the UI.



  • Made with ✨by Monica.