HCodecs-0.5.1: 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 Source #

Constructors

Midi 

Instances

Eq Midi Source # 

Methods

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

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

Show Midi Source # 

Methods

showsPrec :: Int -> Midi -> ShowS #

show :: Midi -> String #

showList :: [Midi] -> ShowS #

Arbitrary Midi Source # 

Methods

arbitrary :: Gen Midi #

shrink :: Midi -> [Midi] #

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

type Ticks = Int Source #

type Key = Int Source #

type Bank = Int Source #

type Tempo = Int Source #

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

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