hsdif-0.14: Haskell SDIF

Safe HaskellNone

Sound.SDIF

Description

SDIF (Sound Description Interchange Format)

Synopsis

Documentation

data SDIF Source

SDIF data store.

Constructors

SDIF 

Instances

decode_sdif :: ByteString -> SDIFSource

Decode SDIF data stream.

 b <- B.readFile "/home/rohan/sw/hsdif/Help/crotale.sdif"
 sdif_frames (decode_sdif b) == 2

sdif_read_file :: FilePath -> IO SDIFSource

Read and decode SDIF from named file.

 s <- sdif_read_file "/home/rohan/sw/hsdif/Help/crotale.sdif"
 sdif_frame_i s == [(0,16),(16,856)]

sdif_frame_b :: SDIF -> Int -> ByteStringSource

Extract nth frame data from SDIF.

sdif_frame :: SDIF -> Int -> FrameSource

Extract and decode nth frame from SDIF.

 frame_type (sdif_frame s 0) == "SDIF"

sdif_matrix :: SDIF -> Int -> Int -> MatrixSource

Extract and decode jth matrix from ith frame from SDIF.

 matrix_type (sdif_matrix s 1 0) == "1RES"

sdif_matrix_v :: SDIF -> Int -> Int -> [Datum]Source

Run matrix_v on result of sdif_matrix.

 length (sdif_matrix_v s 1 0) == 200