Introduction
16SV is the 16-bit version of the Amiga’s 8SVX sound format. Richard Koerber, the author of the SoundBox
sampler, invented it (he says so himself) because 8SVX has 8-bit samples only. In SoundBox’s words it is “the only 16 bit format supporting loops”.
It is an IFF file with the form type 16SV instead of 8SVX, the same chunks, and a BODY of 16-bit words.
Files use .16sv, or the general .iff extension. A second SoundBox scheme, “8SVX Combined”, keeps an ordinary 8SVX form and adds a
chunk LBDY with the low byte of every sample; it is described on the sample data page.
16SV is not in the IFF registry, and the 8SVX specification does not define it.
Structure
A 16SV file is one IFF FORM chunk with the form type 16SV. All chunk types of 8SVX exist and keep their meaning; the differences are the
form type, counts that are counted in samples, and a body of 16-bit big-endian words. The reference pages:
the voice header and the sample data.
The other chunks are the 8SVX ones:
| Chunk | Same as 8SVX |
|---|---|
VHDR | the same 20 bytes, but counted in samples |
NAME, AUTH, (c) , ANNO | text chunks |
ATAK, RLSE | envelopes |
CHAN, PAN | channels and position |
SEQN, FADE | sequence and fade, with counts in samples |
BODY | the 16-bit samples |
0FORM chunk ID, length, form type 16SV12 bytes12VHDR sample counts, rate, octaves, compression 0, volume28 bytes…NAME, AUTH, ANNO, CHAN and other optional chunksvaries…BODY signed 16-bit big-endian samplesvaries
The container is the standard IFF one, described on the 8SVX IFF chunks page. A file can also be a LIST or CAT of
several FORM 16SV voices.
Telling it from other IFF files
The extension is not enough: .iff is mostly used for pictures. The bytes at offset 0 to 3 are FORM and at offset 8 to 11 are 16SV.
A file whose form type is 8SVX is 8SVX, even when it carries SoundBox’s LBDY chunk;
MAUD is MAUD.
What the viewer shows
Drop a file on the page, or use the explorer, to open it. The viewer shows:
- the whole structure as a tree: every chunk with its ID, size, data and pad byte, every field of the voice header and the other chunks named, and the
BODYopened into its channels, octaves, and the one-shot and repeat part of each, as words; every byte of the file is covered - a table of the sound’s facts: name, author, sampling rate, channels, octaves, volume and duration
- a waveform for every octave at 16 bits, which plays in the browser; stereo shows both channels; clicking a point on a waveform selects the bytes of that sample;
“8SVX Combined” sounds are joined from
BODYandLBDYand play at 16 bits - the “As played” preview for volume, envelopes,
PAN,SEQNandFADE, with the rules of the 8SVX page - problems, marked on the tree and listed: a body that is not a whole number of words, words that look little-endian (detected by OpenMPT’s smoothness test, and played that way), a compression code, counts that disagree with the body, a missing
VHDRorBODY, a cut-short file
It never refuses a damaged file: whatever cannot be read is shown as labelled bytes with a note.
Not described
Unknown
- Reference and viewer: SoundFX’s compressed 16SV files:
sCompression1 (“FDPCM16_6”, FibonacciDelta 8:3) and 2 (“EDPCM16_5”, ExponentialDelta 16:5). The guide names them and says how much they compress; no source gives the tables or the packing of the 6-bit and 5-bit codes. The viewer flags the code and does not decode it (Voice header). - Reference: how several octaves are stored in a stereo body. The 16SV text says only that a stereo sample holds all the left channel’s samples and then all the right channel’s; SoundBox itself writes one octave. The viewer repeats the octave layout in each half, as it does for 8SVX.
- Reference and viewer: how a stereo sound is split between
BODYandLBDYin “8SVX Combined”. The guide does not say; the viewer takesLBDYin the same order asBODY.
Links
Software
- SoundBox – Richard Koerber’s Amiga sampler that writes 16SV and 8SVX Combined (Amiga)
- 16sv.datatype – Roland Mainz’s Amiga datatype that loads and saves 16SV, with source (Amiga)
- FFmpeg – command-line tool that decodes 16SV and converts it to other formats (Windows, macOS, Linux)
- OpenMPT – free tracker that loads 16SV files as instrument samples (Windows)
Developers
- libsndfile – library that reads and writes 8SVX and 16SV (C)
Reference
- SoundBox guide – the manual in the SoundBox package, with section B.1 (8SVX Combined) and B.2 (16SV)
- MAUDINFO.TXT – Richard Koerber’s 1997 message, which says he invented 8SVX Combined and 16SV
- libsndfile svx.c – reads and writes 8SVX and 16SV (C)
- 8SVX IFF 8-Bit Sampled Voice – Electronic Arts’ specification of the chunks that 16SV keeps