I am trying to convert a note sequence in Magenta.js to a midi file and get an url so users can download it and use that url in my midi-player/visualizer. But I get this error: Answer I solved it by adding: It seems that the notes need a velocity for this code to work. I found the details in this