Safe Haskell | None |
---|
SDIF (Sound Description Interchange Format)
- data SDIF = SDIF {
- sdif_b :: ByteString
- sdif_frames :: Int
- sdif_frame_i :: [(Int, Int)]
- sdif_frame_c :: [Frame]
- decode_sdif :: ByteString -> SDIF
- sdif_read_file :: FilePath -> IO SDIF
- sdif_frame_b :: SDIF -> Int -> ByteString
- sdif_frame :: SDIF -> Int -> Frame
- sdif_matrix :: SDIF -> Int -> Int -> Matrix
- sdif_matrix_v :: SDIF -> Int -> Int -> [Datum]
Documentation
SDIF data store.
SDIF | |
|
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