midi-0.1.2: Handling of MIDI messages and filesSource codeContentsIndex
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 Key Scale
| SequencerSpecific ByteList
| Unknown Int ByteList
data Key
= KeyCf
| KeyGf
| KeyDf
| KeyAf
| KeyEf
| KeyBf
| KeyF
| KeyC
| KeyG
| KeyD
| KeyA
| KeyE
| KeyB
| KeyFs
| KeyCs
data Scale
= Major
| Minor
type ElapsedTime = Integer
fromElapsedTime :: ElapsedTime -> Integer
toElapsedTime :: Integer -> ElapsedTime
type Tempo = Int
fromTempo :: Tempo -> Int
toTempo :: Int -> Tempo
type SMPTEHours = Int
type SMPTEMinutes = Int
type SMPTESeconds = Int
type SMPTEFrames = Int
type SMPTEBits = Int
defltST :: Tempo
defltDurT :: ElapsedTime
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 Key Scale
SequencerSpecific ByteList
Unknown Int ByteList
show/hide Instances
data Key Source
The following enumerated type lists all the keys in order of their key signatures from flats to sharps. (Cf = 7 flats, Gf = 6 flats ... F = 1 flat, C = 0 flats/sharps, G = 1 sharp, ... Cs = 7 sharps.) Useful for transposition.
Constructors
KeyCf
KeyGf
KeyDf
KeyAf
KeyEf
KeyBf
KeyF
KeyC
KeyG
KeyD
KeyA
KeyE
KeyB
KeyFs
KeyCs
show/hide Instances
data Scale Source
The Key Signature specifies a mode, either major or minor.
Constructors
Major
Minor
show/hide Instances
type ElapsedTime = IntegerSource
fromElapsedTime :: ElapsedTime -> IntegerSource
toElapsedTime :: Integer -> ElapsedTimeSource
type Tempo = IntSource
fromTempo :: Tempo -> IntSource
toTempo :: Int -> TempoSource
type SMPTEHours = IntSource
type SMPTEMinutes = IntSource
type SMPTESeconds = IntSource
type SMPTEFrames = IntSource
type SMPTEBits = IntSource
defltST :: TempoSource
defltDurT :: ElapsedTimeSource
Default duration of a whole note, in seconds; and the default SetTempo value, in microseconds per quarter note. Both express the default of 120 beats per minute.
get :: C parser => Fallible parser TSource
put :: C writer => T -> writer ()Source
Produced by Haddock version 2.6.0