| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Export.MIDI
Description
Can be used to export Music to a Midi file, or to play it in real time.
- module Export.MIDIConfig
- writeToMidiFile :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => FilePath -> Music a -> IO ()
- play :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => Music a -> IO ()
- playDev :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => Int -> Music a -> IO ()
- musicToE :: (?midiConfig :: MIDIConfig) => MusicCore -> Music1
Documentation
module Export.MIDIConfig
writeToMidiFile :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => FilePath -> Music a -> IO () Source #
Write Music to MIDI file.
play :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => Music a -> IO () Source #
Plays Music to the standard MIDI output device.
playDev :: (ToMusicCore a, ?midiConfig :: MIDIConfig) => Int -> Music a -> IO () Source #
Plays Music to the given MIDI output device (using Euterpea under the
hood).
musicToE :: (?midiConfig :: MIDIConfig) => MusicCore -> Music1 Source #
Converts MusicCore to Euterpea Music1 using a MIDIConfig.