Introduction
Version 1 of the patch file of SimSynth, the first subtractive synthesizer of
FruityLoops. A patch holds three
oscillators, an LFO, three envelopes of five points and a block of settings, in
exactly 989 bytes. It is the same structure as
version 2 with everything cut down: the
records are 220 bytes instead of 286, the envelopes 22 bytes instead of 1,266, and
there is no riff and no comment. FruityLoops 3 ships files of this version (its
SS_Instruments and SS_Effects folders hold 73 different
ones). The ss2wav.dll that comes with it refuses a version below 2, and
hands such files to ss2wav16.dll, the older renderer (a 32-bit DLL built in
1999), which reads version 1 and nothing newer.
No public description of the format was found. The layout is that of the loader in
ss2wav16.dll, read by disassembly: it reads the header, 880 bytes of
records, 66 bytes of envelopes and the settings words, in that order, and all 146 real
files (73 different ones) on this site’s machine fit it. What the fields mean was read
from the version 2 renderer in ss2wav.dll, because the two have the same
records; that version 1 files mean the same by them is inferred from matching defaults and
value ranges. The settings words are listed by position only.
Structure
0x0000HeaderSYNTH, the version 1 and a revision9 bytes0x0009Records oscillator 1, 2, 3 and the LFO4 × 220 bytes0x0379Envelopes three, each five times, five levels and a flag3 × 22 bytes0x03BBSettings 17 words34 bytes
All numbers are little-endian 16-bit words, signed where a field can be negative.
Header
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x00 | 5 | Signature | The characters SYNTH |
0x05 | 2 | Version | 1 |
0x07 | 2 | Revision | 2 (28 files) or 3 (45 files) in the real patches. The loader accepts 0 to 3 and refuses a higher one. A file of revision 0 has no last three settings words (the loader fills in 0, 0 and 1) and one of revision 1 has no last word (filled with 1), so those files are 983 and 987 bytes long; none exists here to check |
Oscillator and LFO records
Four records of 220 bytes from 0x0009, at 0x0009,
0x00E5, 0x01C1 and 0x029D: oscillator 1, 2 and
3, then the LFO. The ten words and the 200-byte path buffer are those of
version 2, which goes on for 66 more
bytes (an FM word, a wave table, a glide word and spare bytes) that version 1 does not
have. The meanings below were read from the version 2 renderer; that version 1 files
mean the same by them is inferred from matching defaults and value ranges.
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x00 | 2 | LFO amount, signed | How much the LFO moves the oscillator’s pitch; zero in most patches, 3, 8, −1, 100, 300 and 500 are seen |
0x02 | 2 | Pulse width | 0 to 99. 50 (24 of the 73 files’ first oscillators) and 99 (29) are the common values |
0x04 | 2 | Pitch offset, signed | In cents: 0, ±1200, 2400, 700 and others. LFO record: the rate, usually 12 |
0x06 | 2 | Level | 0 to 255; 255 in 65 of the 70 first oscillators and in every LFO |
0x08 | 2 | Envelope 2 amount, signed | How much envelope 2 moves the pitch: 0, ±100, ±500 and others. LFO record: the delay |
0x0A | 2 | Off switch | 0 or 1; always 0 in oscillator 1, 1 in oscillators 2 and 3 of most files |
0x0C, 0x0E, 0x10 | 2 each | Switches 1, 2 and 3 | Each 0 or 1. In the version 2 renderer, 1 and 2 smooth the oscillator’s wave table (a two-point and then a three-point average) and 3 (Warm) adds a second, slightly higher copy of the oscillator; see version 2 |
0x12 | 2 | Shape | 0 to 4; 1 or 2 in most. In version 2, 4 plays a wave table, which version 1 does not have; what a version 1 file means by it is not known |
0x14 | 200 | Wave file path | Zero-terminated text: NA when there is none. When it ends in OSC the renderer opens it as a wave file (the characters OSC and 16 harmonic levels). 12 files hold a path such as C:\SIMSYNTH\WHONK.OSC or C:\ZAPP\WAVEY\ORGAN.OSC in an oscillator whose shape is 2 or 4 |
Envelopes
Three envelopes of 22 bytes from 0x0379: five times, five levels and a
flag. A new patch has the points time 0, level 255 and time 400, level 0 in each, and
the flag 0 in the first and 1 in the other two, as in version 2.
| Offset | Size | Field |
|---|---|---|
0x00 | 10 | Times: five words, in milliseconds |
0x0A | 10 | Levels: five words, 0 to 255; the envelope ends at the last level that is not zero |
0x14 | 2 | Same as envelope 1: nonzero in envelope 2 or 3 means the envelope is not used and envelope 1 is used instead |
As in version 2, envelope 1 is the amplifier, envelope 2 moves the pitch and envelope 3 the filter cut-off. This was read from the version 2 renderer and is inferred to hold for version 1.
Settings
The last 34 bytes, from 0x03BB, are 17 words. The loader reads them as
seven words, one word, three words it keeps only while loading, three more words, and
at the end three that revision 0 files leave out and revision 1 files leave out
the last of (see the header).
The words hold the filter,
amplifier and chorus values, which version 2 keeps in its settings blocks, but which
word is which is not worked out. In the blank patch the first is 128, the next two
0, the fourth and fifth −128, and the later words include 48, 302, 3,097
(0x0C19) and 8,788 (0x2254); the last two are defaults
that the version 2 loader also uses.
Worked example
The start of VIBE.SYN, from FruityLoops 3’s SS_Instruments:
0000: 53 59 4E 54 48 01 00 03 00 SYNTH, version 1, revision 3
0009: 03 00 LFO amount 3
000B: 63 00 pulse width 99
000D: 00 00 pitch offset 0
000F: FF 00 level 255
0011: 00 00 00 00 envelope 2 amount 0, off switch 0
0015: 00 00 00 00 00 00 switches 0, 0, 0
001B: 02 00 shape 2
001D: 4E 41 00 … wave file path "NA"
00E5: oscillator 2 begins (0x9 + 220)
Telling it apart
The file starts with SYNTH and the word 1 at offset 5, and is exactly
989 bytes long. Version 2 has a 2 there and is
6,763 bytes. Other programs’ .syn files do not start with
SYNTH.
Not described
No public specification, library or source code describing the SYN format was found (see the version 2 page for the sources tried). This page rests on real patches, on the version 1 loader in
ss2wav16.dll and on the version 2 renderer in ss2wav.dll,
both read by disassembly. What follows is what that could not settle, so this page is
partial.
Known, not yet covered
- Viewer: the five envelope points are listed and also drawn as a line chart; the viewer draws every part of the file that is described.
Unknown
- Reference: the version 1 renderer in
ss2wav16.dllwas not read, only its loader. The meanings of the records come from the version 2 renderer, so that version 1 files mean the same is inferred from matching defaults and ranges, and how the version 1 renderer chooses between the shapes and a wave file is not known (it opens the file when the path ends in OSC). - Reference and viewer: the 17 settings words: positions only, no word is named. The viewer shows them as unnamed words.
- Reference: what revisions 2 and 3 mean in version 1 (the header), and what a file of revision 0 or 1 holds: none exists on this machine.
- Reference and viewer: rendering to sound is not written up (only the closed
ss2wav16.dlldoes it). The viewer plays nothing and shows the wave file paths as text without opening the files.
Variants
- SimSynth patch, version 1 – 989-byte patches of the first SimSynth, with five-point envelopes
- SimSynth patch, version 2 – 6,763-byte patches of SimSynth 2 and SimSynth Live, with 300-point envelopes, a riff and a comment
Links
Software
- FL Studio – Image-Line’s music software; its SimSynth Live generator opens these patches too (Windows, macOS)
- FruityLoops 3 – the release whose SimSynth folders hold the patches this page was checked on (Windows)