Skip to content
Preview
Image
I even managed to do something useful with this sort of code, that I'll post some time in the near future.

Basic Haskell Midi file output

I thought it would be an unpleasant task, but it turned out it to be an entirely lovely task to deal with haskell and MIDI files directly (without having to deal with the current work-in-progress that is haskore).

The source file is here. To produce a major scale in ghci, do something like the following:


:l miditest
createMidi "test.mid" [50,52,54,55,57,59,61,62]

I even managed to do something useful with this sort of code, that I’ll post some time in the near future.

2 Comments

  1. anty wrote:

    Thank you, you helped me understanding the MIDI integration with haskell!

    Tuesday, May 5, 2009 at 4:42 pm | Permalink
  2. zak wrote:

    thanks! This is surprisingly easy to deal with, and exactly what I needed.

    Sunday, January 9, 2011 at 6:13 pm | Permalink