HCodecs-0.0.1: The library to read, write and manipulate MIDI, WAV, and SoundFont2 files.Source codeContentsIndex
Codec.Midi
PortabilityPortable
StabilityExperimental
MaintainerGeorge Giorgidze <http://cs.nott.ac.uk/~ggg/>
Description
Module for reading, writing and maniplating of standard MIDI files.
Documentation
data Midi Source
Constructors
Midi
fileType :: FileType
timeDiv :: TimeDiv
tracks :: [Track Ticks]
show/hide Instances
data FileType Source
Constructors
SingleTrack
MultiTrack
MultiPattern
show/hide Instances
type Track a = [(a, Message)]Source
data TimeDiv Source
Constructors
TicksPerBeat Int
TicksPerSecond Int Int
show/hide Instances
data Message Source
Constructors
NoteOff
channel :: !Channel
key :: !Key
velocity :: !Velocity
NoteOn
channel :: !Channel
key :: !Key
velocity :: !Velocity
KeyPressure
channel :: !Channel
key :: !Key
pressure :: !Pressure
ControlChange
channel :: !Channel
controllerNumber :: !Int
controllerValue :: !Int
ProgramChange
channel :: !Channel
preset :: !Preset
ChannelPressure
channel :: !Channel
pressure :: !Pressure
PitchWheel
channel :: !Channel
pitchWheel :: !PitchWheel
SequenceNumber !Int
Text !String
Copyright !String
TrackName !String
InstrumentName !String
Lyrics !String
Marker !String
CuePoint !String
ChannelPrefix !Channel
ProgramName !String
DeviceName !String
TrackEnd
TempoChange !Tempo
SMPTEOffset !Int !Int !Int !Int !Int
TimeSignature !Int !Int !Int !Int
KeySignature !Int !Int
Reserved !Int !ByteString
Sysex !Int !ByteString
show/hide Instances
type Ticks = IntSource
type Time = DoubleSource
type Channel = IntSource
type Key = IntSource
type Velocity = IntSource
type Pressure = IntSource
type Preset = IntSource
type Bank = IntSource
type PitchWheel = IntSource
type Tempo = IntSource
isNoteOff :: Message -> BoolSource
isNoteOn :: Message -> BoolSource
isKeyPressure :: Message -> BoolSource
isControlChange :: Message -> BoolSource
isProgramChange :: Message -> BoolSource
isChannelPressure :: Message -> BoolSource
isPitchWheel :: Message -> BoolSource
isChannelMessage :: Message -> BoolSource
isMetaMessage :: Message -> BoolSource
isSysexMessage :: Message -> BoolSource
isTrackEnd :: Message -> BoolSource
removeTrackEnds :: Track a -> Track aSource
toSingleTrack :: Midi -> MidiSource
merge :: (Num a, Ord a) => Track a -> Track a -> Track aSource
fromAbsTime :: Num a => Track a -> Track aSource
toAbsTime :: Num a => Track a -> Track aSource
toRealTime :: TimeDiv -> Track Ticks -> Track TimeSource
fromRealTime :: TimeDiv -> Track Time -> Track TicksSource
importFile :: FilePath -> IO (Either String Midi)Source
exportFile :: FilePath -> Midi -> IO ()Source
parseMidi :: Parser MidiSource
buildMidi :: Midi -> BuilderSource
parseTrack :: Parser (Track Ticks)Source
buildTrack :: Track Ticks -> BuilderSource
parseMessage :: Maybe Message -> Parser MessageSource
buildMessage :: Message -> BuilderSource
Produced by Haddock version 2.4.2