A “Silicon SoundFont Bank” is a SoundFont bank realised in non-volatile memory, with slight format additions. When a system that uses one starts, the host processor navigates the Silicon SoundFont ROM format in sample memory space, finds how many banks are installed and, when appropriate, reads the articulation data of the banks from the preset data chunks into its own RAM. The sample headers point to sample address offsets relative to the start of the sample chunk of the bank, and the loader adds the right offset to the addresses. After that the system works like any other SoundFont system (spec 11.1).
A Silicon SoundFont is a hybrid of a standard ROM header and a modification of the SoundFont file format. The ROM header comes first, at address 0, and holds data for diagnostic tests, a ROM name, a size, checksum information and a sine wave sample to test audio outputs (spec 11.1). A file with the extension .sf2 does not contain it: it is the layout of a ROM image, and the explorer has no file type for one.
Sample memory is word oriented, so the endianness of the reads does not depend on the processor, but the order of bytes in a word or words in a doubleword may vary with how the ROM was written and the processor, so initialisation software is recommended to recognise and adapt to endian variations. SoundFont 2.04 split the sample pool into two chunks for 24-bit samples, to keep older synthesisers able to render 2.04 files; that is awkward in a wavetable ROM, so the specification recommends combining the pools into one and upgrading the wavetable firmware (spec 11.1).
The ROM header
The structure is romHdrType (spec 11.2). The specification gives no byte offsets; those below are the cumulative sizes of the fields if the structure is packed as written, and are not stated by it.
| Offset if packed | Size | Field | Type | Meaning |
|---|---|---|---|---|
| 0 | 4 | romRsrc | DWORD | Unused |
| 4 | 4 | romByteSize | DWORD | The ROM size in bytes |
| 8 | 1 | interleaveIndex | CHAR | For use in case of interleaved ROMs |
| 9 | 3 | revision | CHAR[3] | For revision control |
| 12 | 4 | id | CHAR[4] | Matched with the irom chunk of the SoundFont file format |
| 16 | 2 | checksum | SHORT | To check the integrity of the ROM |
| 18 | 2 | checksum2sComplement | SHORT | For updating the checksum without changing the file’s checksum value |
| 20 | 1 | bankFormat | CHAR | Unused |
| 21 | 16 | product | CHAR[16] | The product name, of the system or the SoundFont |
| 37 | 1 | sampleCompType | BYTE | The type of sample precompensation used |
| 38 | 2 | filler1 | CHAR[2] | For future use |
| 40 | 16 | style | CHAR[16] | The sound library style |
| 56 | 80 | copyright | CHAR[80] | The copyright notice |
| 136 | 4 | sampleStart | DWORD | The beginning byte address of the SoundFont bank |
| 140 | 4 | sineWaveStart | DWORD | The beginning byte address of the sine wave sample |
| 144 | 496 | filler2 | DWORD[124] | For future use |
| 640 | 2 × SINEWAVESIZE | sineWave | SHORT[SINEWAVESIZE] | The sine wave sample data. SINEWAVESIZE is not defined in the specification |
ROM samples in a SoundFont file
A SoundFont file refers to a ROM through its irom and iver chunks and through sample headers whose type has bit 15 set; for such a sample dwStart and the other indexes count data points in the ROM, not in smpl (spec 7.10). A ROM sample in a file with no valid irom makes the file structurally defective. The explorer lists such samples as ROM samples, does not show or play them, and reports a ROM sample without irom.
Source: SoundFont Technical Specification 2.04, sections 5.4, 5.5, 7.10 and 11 (11.1, 11.2).