- 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
- data Scale
- 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
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.
The Key Signature specifies a mode, either major or minor.
type ElapsedTime = IntegerSource
type SMPTEHours = IntSource
type SMPTEMinutes = IntSource
type SMPTESeconds = IntSource
type SMPTEFrames = IntSource
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.