Convert files Sound Description Interchange Format (SDIF) to the format usable by Csound's adsyn opcode. As of Csound Version 4.16, sdif2ads was available only as a standalone program for Windows console and DOS.
Csound -U sdif2ads [flags] infilename outfilename
-sN – apply amplitude scale factor N
-pN – keep only the first N partials. Limited to 1024 partials. The source partial track indices are used directly to select internal storage. As these can be arbitrary values, the maximum of 1024 partials may not be realized in all cases.
-r – byte-reverse output file data. The byte-reverse option is there to facilitate transfer across platforms, as Csound's adsyn file format is not portable.
If the filename passed to hetro has the extension .sdif, data will be written in SDIF format as 1TRC frames of additive synthesis data. The utility program sdif2ads can be used to convert any SDIF file containing a stream of 1TRC data to the Csound adsyn format. sdif2ads allows the user to limit the number of partials retained, and to apply an amplitude scaling factor. This is often necessary, as the SDIF specification does not, as of the release of sdif2ads, require amplitudes to be within a particular range. sdif2ads reports information about the file to the console, including the frequency range.
The main advantages of SDIF over the adsyn format, for Csound users, is that SDIF files are fully portable across platforms (data is "big-endian"), and do not have the duration limit of 32.76 seconds imposed by the 16 bit adsyn format. This limit is necessarily imposed by sdif2ads. Eventually, SDIF reading will be incorporated directly into adsyn, thus enabling files of any length (subject to system memory limits) to be analysed and processed.
Users should remember that the SDIF formats are still under development. While the 1TRC format is now fairly well established, it can still change.
For detailed information on the Sound Description Interchange Format, refer to the CNMAT website:
Some other SDIF resources (including a viewer) are available via the NC_DREAM website:
New in Csound version 4.08