Fork me on GitHub
#overtone
<
2018-06-06
>
plins21:06:54

hello everyone, is it possible to use overtone to write midi files to the disk?

hlolli22:06:32

hello @plins, I've never tried that, all of overtone's midi functions come from https://github.com/overtone/midi-clj, if you have ableton-live or any DAW, as well as many linux midi sequencers, you can record the output Overtone. Writing to a midi file is basically writing a binary file with 7-bit values. It's really tedious, I was looking myself at writing midi files in clojure, and you can use javax.midi for that for free (just import it). Wanted to do some black-midi madness. But I ended up giving up on it, but this was some years back. I think you may have better luck asking on #alda, I think Dave Yarwood's Alda is much closer to midi, Overtone being supercollider based app, uses OSC messages much more extensively.

hlolli22:06:43

What are you looking to do if I may ask?

hlolli22:06:03

what also makes it tedious, is that you have 16 tracks to work with, and for each note on, you need to send note off event, you need to specify the grid density and exacly where the events fall into the grid. Always an easier option to have DAW do it for you.