Copyright | (c) Dima Szamozvancev |
---|---|
License | MIT |
Maintainer | ds709@cam.ac.uk |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions for exporting Mezzo compositions into MIDI files. Skeleton code by Stephen Lavelle.
- data MidiNote = MidiNote {}
- type Score = MidiTrack
- (><) :: MidiTrack -> MidiTrack -> MidiTrack
- renderScore :: FilePath -> Title -> Score -> IO ()
- renderScores :: FilePath -> Title -> [Score] -> IO ()
- withMusic :: ATerm (Music (Sig :: Signature t k r) m) (Attributes t k r) Score
- defScore :: Music (Sig :: Signature 4 (Key C Natural MajorMode) Classical) m -> Score
- playLive :: Music (Sig :: Signature 4 (Key C Natural MajorMode) Classical) m -> IO ()
- playLive' :: Score -> IO ()
Documentation
A MIDI representation of a musical note.
renderScore :: FilePath -> Title -> Score -> IO () Source #
Create a MIDI file with the specified path, title and score.
renderScores :: FilePath -> Title -> [Score] -> IO () Source #
Create a MIDI file with the specified path, title and list of scores.
withMusic :: ATerm (Music (Sig :: Signature t k r) m) (Attributes t k r) Score Source #
Sets the music content of the score.
defScore :: Music (Sig :: Signature 4 (Key C Natural MajorMode) Classical) m -> Score Source #
Shorthand for quickly creating a score with the default attributes.