mezzo-0.3.1.0: Typesafe music composition

Copyright(c) Dima Szamozvancev
LicenseMIT
Maintainerds709@cam.ac.uk
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Mezzo.Render.MIDI

Description

Functions for exporting Mezzo compositions into MIDI files. Skeleton code by Stephen Lavelle.

Synopsis

Documentation

data MidiNote Source #

A MIDI representation of a musical note.

Constructors

MidiNote 

Fields

type Score = MidiTrack Source #

A musical score.

(><) :: MidiTrack -> MidiTrack -> MidiTrack Source #

Merge two parallel MIDI tracks.

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.

playLive :: Music (Sig :: Signature 4 (Key C Natural MajorMode) Classical) m -> IO () Source #

Live playback of a Mezzo piece with default score attributes.

playLive' :: Score -> IO () Source #

Live playback of a Mezzo score.