SDIF
From FourMs
Sound Description Interchange Format.
[edit] Compile the libraries
To work with SDIF files in Matlab, you need to compile and install EASDIF library. Note: you should log in as an administrator to do this.
To compile this you need the following:
Open Terminal and create a folder where you want things to happen.
First check out from the repository
$> cvs -z3 -d:pserver:anonymous@sdif.cvs.sourceforge.net:/cvsroot/sdif co -P EASDIF_SDIF
Create a directory for the build and move into the directory
$> mkdir BDIR $> cd BDIR
Run cmake on the files
$> cmake -DEASDIF_BUILD_MEX:BOOL=on ../EASDIF_SDIF
Compile and install the files
$> make mex $> make install
That's it.
[edit] Utilities
Some useful command line utilities for working on SDIF files:
- querysdif
- sdifextract
- sdiftotext
- sdiftoformat and sdiftofmt
- texttosdif
- formattosdif and fmttosdif
[edit] SDIF in Matlab
You have to include the following path to be able to use the SDIF-tools in Matlab:
/usr/local/lib/matlab
Then you have access to the following functions:
- Fsdifloadfile
- Fsdifopen
- Fsdifclose
- Fsdifread
- Fsdifexist
- Fsdifwrite
