HCodecs-0.5: A library to read, write and manipulate MIDI, WAVE, and SoundFont2 files.

CopyrightGeorge Giorgidze
LicenseBSD3
MaintainerGeorge Giorgidze <http://cs.nott.ac.uk/~ggg/>
StabilityExperimental
PortabilityPortable
Safe HaskellNone
LanguageHaskell98

Codec.Midi

Description

Reading, writing and maniplating of standard MIDI files

Documentation

data Midi #

Constructors

Midi 

Instances

Eq Midi # 

Methods

(==) :: Midi -> Midi -> Bool #

(/=) :: Midi -> Midi -> Bool #

Show Midi # 

Methods

showsPrec :: Int -> Midi -> ShowS #

show :: Midi -> String #

showList :: [Midi] -> ShowS #

Arbitrary Midi # 

Methods

arbitrary :: Gen Midi #

shrink :: Midi -> [Midi] #

type Track a = [(a, Message)] #

type Ticks = Int #

type Time = Double #

type Channel = Int #

type Key = Int #

type Velocity = Int #

type Pressure = Int #

type Preset = Int #

type Bank = Int #

type Tempo = Int #

merge :: (Num a, Ord a) => Track a -> Track a -> Track a #

fromAbsTime :: Num a => Track a -> Track a #

toAbsTime :: Num a => Track a -> Track a #