midi-0.2.0.1: Handling of MIDI messages and files

Safe Haskell | None

Sound.MIDI.File.Event.Meta

Synopsis

- data T
  - = SequenceNum Int
  - | TextEvent String
  - | Copyright String
  - | TrackName String
  - | InstrumentName String
  - | Lyric String
  - | Marker String
  - | CuePoint String
  - | MIDIPrefix Channel
  - | EndOfTrack
  - | SetTempo Tempo
  - | SMPTEOffset SMPTEHours SMPTEMinutes SMPTESeconds SMPTEFrames SMPTEBits
  - | TimeSig Int Int Int Int
  - | KeySig T
  - | SequencerSpecific ByteList
  - | Unknown Int ByteList
- type ElapsedTime = Integer
- fromElapsedTime :: ElapsedTime -> Integer
- toElapsedTime :: Integer -> ElapsedTime
- type Tempo = Int
- fromTempo :: Tempo -> Int
- toTempo :: Int -> Tempo
- defltTempo :: Tempo
- type SMPTEHours = Int
- type SMPTEMinutes = Int
- type SMPTESeconds = Int
- type SMPTEFrames = Int
- type SMPTEBits = Int
- get :: C parser => Fallible parser T
- put :: C writer => T -> writer

# Documentation

data T Source

Constructors

SequenceNum Int |
TextEvent String |
Copyright String |
TrackName String |
InstrumentName String |
Lyric String |
Marker String |
CuePoint String |
MIDIPrefix Channel |
EndOfTrack |
SetTempo Tempo |
SMPTEOffset SMPTEHours SMPTEMinutes SMPTESeconds SMPTEFrames SMPTEBits |
TimeSig Int Int Int Int |
KeySig T |
SequencerSpecific ByteList |
Unknown Int ByteList |

Instances

Eq T |
Ord T |
Show T |
Arbitrary T |

type ElapsedTime = Integer Source

fromElapsedTime :: ElapsedTime -> Integer Source

toElapsedTime :: Integer -> ElapsedTime Source

type Tempo = Int Source

fromTempo :: Tempo -> Int Source

toTempo :: Int -> Tempo Source

defltTempo :: Tempo Source

The default SetTempo value, in microseconds per quarter note. This expresses the default of 120 beats per minute.

type SMPTEHours = Int Source

type SMPTEMinutes = Int Source

type SMPTESeconds = Int Source

type SMPTEFrames = Int Source

type SMPTEBits = Int Source

get :: C parser => Fallible parser T Source

put :: C writer => T -> writerSource