Created
February 10, 2014 01:18
-
-
Save jeremy-w/8908684 to your computer and use it in GitHub Desktop.
Euterpea demo. Use this to verify your install is working. To install Euterpea under OS X, see: https://jeremywsherman.com/blog/2014/02/09/installing-and-using-euterpea-under-os-x-10-dot-9/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Euterpea.Music.Note.Music | |
import Euterpea.IO.MIDI.ToMidi | |
-- Writes |test.mid| in the current directory. | |
main = test chord | |
where chord = foldl1 (:=:) $ map (note 1.0) pitches | |
pitches = [(Fs, o), (As, o), (Cs, o + 1), (Fs, o + 1)] | |
o = 6::Int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment