Introduction
8SVX is the sound format of the Commodore Amiga. It was defined by Electronic Arts in 1985 as part of the Interchange File Format (IFF), the same family as the ILBM picture format, and nearly every Amiga program that handled sampled sound read and wrote it. The samples are signed 8-bit values, matching the Amiga’s sound hardware.
Files use .8svx, .svx or the general .iff
extension.
Structure
An 8SVX file is one IFF FORM chunk with the form type
8SVX. Chunks inside it are an ID, a 32-bit big-endian length and the data,
padded to an even length. The voice header VHDR comes first: the number
of samples in the one-shot part and in the repeating part, samples per cycle, the
sample rate, the number of octaves, the compression type (0 for none, 1 for
Fibonacci-delta) and the volume. The BODY chunk holds the samples.
Optional chunks give a name (NAME), author (AUTH),
copyright, annotations, envelopes (ATAK, RLSE) and stereo
channels (CHAN). The reference pages take each of these apart:
IFF chunks,
Voice header,
Sample data and
Other chunks.
0FORM chunk ID, length, form type 8SVX12 bytes12VHDR sample counts, rate, octaves, compression, volume28 bytes…NAME, AUTH, ANNO and other optional chunksvaries…BODY signed 8-bit samplesvaries
A file can also be an IFF LIST or CAT of several
FORM 8SVX voices, and a LIST can share the header and text
properties between them in a PROP 8SVX.
Telling it from other IFF files
The extension is not enough: .iff is mostly used for ILBM pictures, and
.snd for Sun and NeXT AU sounds as well as Amiga ones. The bytes at offset
0 to 3 are FORM and at offset 8 to 11 are 8SVX. The same
family also reads 16SV (the 16-bit form, described here)
and MAUD (MacroSystem’s sampled sound, described here), which share the
IFF container and the explorer. A file that begins FORM with another type at
offset 8 (ILBM, ANIM, AIFF …) is another format; the
IFF chunks page lists them.
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, and
every field of the voice header, the envelopes,
CHAN,PAN,SEQNandFADEnamed, with every byte of the file covered; aBODYopens into its channels, octaves, and the one-shot and repeat part of each, or for Fibonacci-delta data into its pad byte, initial value and codes - a table of the sound’s facts: name, author, sampling rate, compression, channels,
octaves, pitch from
samplesPerHiCycle, volume and duration; a table of the octaves; the envelope points; the loop sequence; the text chunks; and the chunks in order - a waveform for every octave, decoded to PCM, which plays in the browser; stereo shows both channels; Fibonacci-delta and exponential-delta data are decoded first; a voice with a repeat part also gets a looped preview; clicking a point on a waveform selects the bytes of that sample
- an “As played” preview when the voice has a volume below Unity, an envelope, a
PAN, aSEQNsequence or aFADE: those are applied by the rules on Other chunks (the plain waveforms stay at full scale so that they match the bytes) - 16-bit sounds:
FORM 16SVfiles, and SoundBox’s “8SVX Combined” files (aLBDYchunk with the low bytes), play at 16 bits;FORM MAUDfiles show their header, play 1 to 32-bit PCM, A-law and µ-law, and list the bit-packedMDATas one run of bytes - problems, marked on the tree and listed: a cut-short file, a header that disagrees
with the body, a missing
VHDRorBODY, a repeat part that would click, a pad byte left out, extra bytes, a chunk after the end
It never refuses a damaged file: whatever cannot be read is shown as labelled bytes
with a note. Fibonacci-delta decoding uses the decoder in
explorer/formats/shared/audio/svx-delta.js.
Not described
Scope, stated so that it is not a gap: this family reads FORM 8SVX, its 16-bit sibling
FORM 16SV with SoundBox’s “8SVX Combined” LBDY chunk, and FORM MAUD.
INFO is an icon file’s contents and FRED is private: neither has a published layout to describe.
FORM SAMP is a different form with its own specification and is not part of 8SVX.
Known, not yet covered
- Viewer: MAUD compression code 1. MacroSystem’s include file describes it as “Fibonacci Delta Compression as used in 8SVX”, which is the 8SVX Fibonacci delta, but says nothing of how several channels are arranged, so the viewer names the code and does not decode it (IFF chunks).
Unknown
- Reference and viewer: the MAUD compression codes 4 to 7 (ADPCM to 2, 3, 4 and 5 bits) and 8 (LONGDAT, 16 to 12 bits). The include file names them and gives no algorithm; its author knows of no program that writes them and says the multisnd.library does not read them (IFF chunks).
- Reference: the registered stereo text does not say how octaves are stored in a stereo body. The viewer repeats the octave layout in each half, which follows from the text (each half is “the LEFT information” and “the RIGHT information” of one voice).
Also used for
- Interleaved bitmap (IFF ILBM) – Amiga and Deluxe Paint pictures, stored as interleaved bitplanes.
- Sun/NeXT audio – Unix audio: a 24-byte big-endian header, then the samples, often µ-law.
Links
Software
- Audacity – free audio editor that imports 8SVX through libsndfile (Windows, macOS, Linux)
- SoX – command-line sound converter that reads and writes 8SVX (Windows, macOS, Linux)
- OpenMPT – free tracker that loads 8SVX files as instrument samples (Windows)
- FFmpeg – command-line tool that decodes 8SVX and converts it to other formats (Windows, macOS, Linux)
Developers
- libsndfile – library that reads and writes 8SVX (C)
Reference
- 8SVX IFF 8-Bit Sampled Voice – Electronic Arts’ 1985 specification, on the AmigaOS wiki
- EA’s own copy of the 8SVX text – the document as shipped in Electronic Arts’ March 1986 IFF package on the Amiga Developer CD 2.1
- wavepak – Wilhelm Noeker’s Fibonacci-delta and exponential-delta encoder and decoder for 8SVX, with C source (Amiga)
- lib8svx – Sander van der Burg’s library for reading and writing 8SVX, with Fibonacci-delta packing (C)
- EA IFF 85 – the standard for IFF files, which 8SVX is built on
- IFF FORM and Chunk Registry – the AmigaOS wiki’s list of registered forms and chunks, including 8SVX’s
CHAN,PAN,SEQNandFADE - FFmpeg iff.c and 8svx.c – the demuxer and the Fibonacci and exponential decoders (C)
- libsndfile svx.c – reads and writes 8SVX and 16SV (C)