HCodecs-0.5.2: 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.SoundFont

Description

Module for reading and writting of SoundFont instrument description files.

Documentation

data SoundFont Source #

Constructors

SoundFont 

Fields

Instances

Instances details
Arbitrary SoundFont Source # 
Instance details

Defined in Codec.SoundFont

Show SoundFont Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> SoundFont -> ShowS

show :: SoundFont -> String

showList :: [SoundFont] -> ShowS

Eq SoundFont Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: SoundFont -> SoundFont -> Bool

(/=) :: SoundFont -> SoundFont -> Bool

data Info Source #

Constructors

Version Word Word 
TargetSoundEngine String 
BankName String 
RomName String 
RomVersion Word Word 
CreationDate String 
Authors String 
IntendedProduct String 
CopyrightMessage String 
Comments String 
UsedTools String 
ReservedInfo String Word ByteString 

Instances

Instances details
Arbitrary Info Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Info

shrink :: Info -> [Info]

Show Info Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Info -> ShowS

show :: Info -> String

showList :: [Info] -> ShowS

Eq Info Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Info -> Info -> Bool

(/=) :: Info -> Info -> Bool

data Sdta Source #

Constructors

Sdta 

Fields

Instances

Instances details
Arbitrary Sdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Sdta

shrink :: Sdta -> [Sdta]

Show Sdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Sdta -> ShowS

show :: Sdta -> String

showList :: [Sdta] -> ShowS

Eq Sdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Sdta -> Sdta -> Bool

(/=) :: Sdta -> Sdta -> Bool

data Pdta Source #

Constructors

Pdta 

Fields

Instances

Instances details
Arbitrary Pdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Pdta

shrink :: Pdta -> [Pdta]

Show Pdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Pdta -> ShowS

show :: Pdta -> String

showList :: [Pdta] -> ShowS

Eq Pdta Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Pdta -> Pdta -> Bool

(/=) :: Pdta -> Pdta -> Bool

data Phdr Source #

Constructors

Phdr 

Fields

Instances

Instances details
Arbitrary Phdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Phdr

shrink :: Phdr -> [Phdr]

Show Phdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Phdr -> ShowS

show :: Phdr -> String

showList :: [Phdr] -> ShowS

Eq Phdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Phdr -> Phdr -> Bool

(/=) :: Phdr -> Phdr -> Bool

data Bag Source #

Constructors

Bag 

Fields

Instances

Instances details
Arbitrary Bag Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Bag

shrink :: Bag -> [Bag]

Show Bag Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Bag -> ShowS

show :: Bag -> String

showList :: [Bag] -> ShowS

Eq Bag Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Bag -> Bag -> Bool

(/=) :: Bag -> Bag -> Bool

data Mod Source #

Constructors

Mod 

Fields

Instances

Instances details
Arbitrary Mod Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Mod

shrink :: Mod -> [Mod]

Show Mod Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Mod -> ShowS

show :: Mod -> String

showList :: [Mod] -> ShowS

Eq Mod Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Mod -> Mod -> Bool

(/=) :: Mod -> Mod -> Bool

data Generator Source #

Instances

Instances details
Arbitrary Generator Source # 
Instance details

Defined in Codec.SoundFont

Show Generator Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Generator -> ShowS

show :: Generator -> String

showList :: [Generator] -> ShowS

Eq Generator Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Generator -> Generator -> Bool

(/=) :: Generator -> Generator -> Bool

data Inst Source #

Constructors

Inst 

Fields

Instances

Instances details
Arbitrary Inst Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Inst

shrink :: Inst -> [Inst]

Show Inst Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Inst -> ShowS

show :: Inst -> String

showList :: [Inst] -> ShowS

Eq Inst Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Inst -> Inst -> Bool

(/=) :: Inst -> Inst -> Bool

data Shdr Source #

Constructors

Shdr 

Fields

Instances

Instances details
Arbitrary Shdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

arbitrary :: Gen Shdr

shrink :: Shdr -> [Shdr]

Show Shdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

showsPrec :: Int -> Shdr -> ShowS

show :: Shdr -> String

showList :: [Shdr] -> ShowS

Eq Shdr Source # 
Instance details

Defined in Codec.SoundFont

Methods

(==) :: Shdr -> Shdr -> Bool

(/=) :: Shdr -> Shdr -> Bool

importFile :: FilePath -> IO (Either String SoundFont) Source #

exportFile :: FilePath -> SoundFont -> IO () Source #

parseInfos :: Parser (Array Word Info) Source #

buildInfos :: Array Word Info -> Builder Source #