Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains the data structures and the function for generating MIDI files from note sequences.
Synopsis
- data Instrument
- = Accordion
- | Bassoon
- | Bells
- | Cello
- | Clarinet
- | Double_bass
- | Dulcimer
- | English_horn
- | Flute
- | French_horn
- | Glockenspiel
- | Guitar
- | Harp
- | Harpsichord
- | Oboe
- | Organ
- | Piano
- | Piccolo
- | Pizzicato_strings
- | Recorder
- | Timpani
- | Trombone
- | Trumpet
- | Viola
- | Violin
- | Voice
- data Track = Track Instrument [Simultaneous]
- data Part = Part Time_and_position Int [Track]
- midi :: String -> [Part] -> IO ()
Documentation
data Instrument Source #
MIDI instruments.
Instances
Show Instrument Source # | |
Defined in Composition.Midi showsPrec :: Int -> Instrument -> ShowS # show :: Instrument -> String # showList :: [Instrument] -> ShowS # |
A track consists of one homorhythmic note sequence. Heterorhythmic voices require separate tracks.
Each part can have a different time signature, tempo and instrumentation. The second argument is the tempo specified in beats per minute.