Introduction
Version 2 of the patch file of SimSynth, the subtractive synthesizer of FruityLoops and FL Studio. SimSynth 2, which came with FruityLoops 3, and the SimSynth Live generator of FL Studio 5 save their patches in it. A patch holds three oscillators, an LFO, three envelopes with up to 300 points each, the filter and amplifier settings, a short riff of notes and a comment. The file has no sections and no lengths: it is one fixed structure written out in order, 6,763 bytes long, or 6,251 for a revision that has no comment.
No public description of the file was found (see Not described). The layout below comes from the loader in
ss2wav.dll, the program that renders SimSynth patches to sound and ships
with FruityLoops 3 and FL Studio 5, which reads the whole file into memory in a
handful of reads (the sizes and the order are certain), and from 580 real patch files
(279 different ones) on this site’s machine, all of which fit the layout exactly. What a field is for is
worked out from its default value in that loader and the values real patches hold.
Those names are marked inferred and may be wrong. Several blocks of settings
are listed by position only.
Structure
0x0000HeaderSYNTH, the version 2 and a revision9 bytes0x0009Records oscillator 1, oscillator 2, oscillator 3 and the LFO4 × 286 bytes0x0481Envelopes three, each with times, levels and a flag3 × 1,266 bytes0x1357Settings A and B 45 words, then 47 words90 + 94 bytes0x140FRiff 128 steps of notes, ties and accents, and the words that apply them1,040 bytes0x181FSettings C to F seven words, four words, three lists of eight bytes, a word and 28 bytes76 bytes0x186BComment text, zero-padded (not there when the revision is 0)512 bytes
All numbers are little-endian 16-bit words, signed where a field can be negative. The offsets are the same in every file of revision 1 or more, and there is nothing variable in the file, so a reader can go straight to any field.
Header
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x00 | 5 | Signature | The characters SYNTH |
0x05 | 2 | Version | 2 for this format; version 1 files have 1 |
0x07 | 2 | Revision | A revision of the format within the version. 4 to 17 are seen (14 in 233 files, 15 in 218, 16 in 86, 17 in 25, 13 in 8, and 4, 7, 10 and 12 in a few). The loader brings older revisions up to date, and reads the comment only when the revision is above 0 |
Oscillator and LFO records
Four records of 286 bytes follow the header, from 0x0009: oscillator 1,
oscillator 2, oscillator 3 and the LFO. They have the same layout; the LFO uses the
same fields for some of its own settings. The first 20 bytes are ten words, then
comes a 200-byte path buffer and 66 more bytes.
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x00 | 2 | LFO amount, signed | How much the LFO moves the oscillator’s pitch; 0 for none. The renderer scales it by 12. (LFO record: not used by the renderer.) |
0x02 | 2 | Pulse width | 0 to 99, passed to the oscillator; 50 in a new patch |
0x04 | 2 | Pitch offset, signed | In cents, added to the note: −2400, −1200, 700 (a fifth), 1200 and 2400 are common. Whether the program’s coarse and fine wheels are both stored here is not settled. LFO record: the rate, 12 in a new patch |
0x06 | 2 | Level | 0 to 255; 255 in a new patch. The renderer shares the three oscillators’ levels out so that they add up to a fixed total. (LFO record: not settled.) |
0x08 | 2 | Envelope 2 amount, signed | How much envelope 2 moves the oscillator’s pitch; 0 for none. The renderer scales it by 12. LFO record: the delay, which the renderer multiplies by 10 |
0x0A | 2 | Off switch | 1 turns the oscillator or LFO off, and the renderer skips it. A new patch has 1 for oscillators 2 and 3 |
0x0C, 0x0E, 0x10 | 2 each | Switches 1, 2 and 3 | Each 0 or 1, passed together to the oscillator. For shapes 0 to 2, switch 1 smooths the 2048-point wave table once (each sample averaged with the next) and switch 2 smooths it again with a three-point average, which softens the sound. Switch 3 is Warm: the renderer runs a second, slightly higher copy of the oscillator (a second phase counter whose pitch is taken from a table entry 20 steps up) and averages four readings of the wave instead of two. The program’s buttons are two small ones and “Warm”, which matches switches 1, 2 and 3. For shape 3 the renderer reads only switches 1 and 2 |
0x12 | 2 | Shape | The renderer fills a 2048-point wave table for 0, 1 and 2: 0 a pulse wave (low, then high) whose width is the pulse width, 1 a ramp whose slope bends with the pulse width, 2 a sine-based wave shaped by the pulse width. 3 is a different oscillator class, built from several voices (which the renderer’s own list calls noise: not checked further). 4 builds its wave from the 16 harmonic levels below. A new oscillator has 1, a new LFO 2. The waveforms are read from the table-building code and not heard |
0x14 | 200 | Wave file path | A zero-terminated text buffer holding the path of an oscillator wave file (.OSC), or NA in a new patch. The renderer does not read it |
0xDC | 2 | FM amount (inferred) | The renderer takes this word of an oscillator, times 12, as the depth with which it modulates the next oscillator. Inferred from the code, not checked against a sound |
0xDE | 32 | Harmonic levels | 16 words, one for each of the first 16 harmonics. For shape 4 the renderer adds 16 sine waves, the nth at n times the pitch and in proportion to its level. These are the same 16 words an .OSC file holds. Zero in most patches |
0xFE | 2 | Glide (inferred) | The renderer multiplies it by 25 and keeps it as the rate of a slide to the note. Inferred from the code, not checked against a sound |
0x100 | 30 | Not used | Zero in every file seen, and not read by the renderer |
The order, sizes and defaults are fixed by the loader, which writes each word of a new
record in turn. The meanings above come from the code that builds the oscillators in
ss2wav.dll, which reads each field; “inferred” marks what the code
suggests but a sound has not confirmed.
Revisions below 7 stored oscillator 2 and 3’s pitch 4 less and 4 more than the program now uses: the loader adds 4 to oscillator 2’s pitch offset and subtracts 4 from oscillator 3’s when it reads such a file. No file of those revisions was available to check this on.
Envelopes
Three envelopes follow the records, from 0x0481, each 1,266 bytes: an
array of 300 times, an array of 300 levels and a flag.
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x000 | 600 | Times | 300 words, the time of each point in milliseconds (the renderer multiplies it by 44.1 to get samples). A time can be smaller than the one before it, so they are not totals |
0x258 | 600 | Levels | 300 words, the level of each point, 0 to 255. A new envelope has time 0, level 255, then time 400, level 0. A level of 1 counts as 0 (the renderer turns it into the smallest value) |
0x4B0 | 2 | Same as envelope 1 | Nonzero in envelope 2 or 3: the renderer does not build this envelope and uses envelope 1 instead. A new patch has 0 in envelope 1 (where it has no effect) and 1 in envelopes 2 and 3 |
0x4B2 | 64 | Not used | Read by the loader; the renderer does not use it. Zero in most patches |
The envelope has as many points as the position of the last level that is not zero, up to 300; the rest is ignored. The real patches looked at have a handful.
- Envelope 1 is the amplifier: the renderer multiplies every output sample by its value.
- Envelope 2 moves the pitch of the oscillators, by each oscillator’s envelope 2 amount.
- Envelope 3 moves the filter cut-off, by an amount in the first block of settings.
Settings
The rest of the file, up to the comment, is settings and a riff. The loader reads them in this order. The names below are this site’s, from what the renderer does with each word and from the ranges of the 580 real files; words that are zero in every real file are marked as not used.
| Offset | Size | Block | Holds |
|---|---|---|---|
0x1357 | 90 | Settings A | 45 words, the filter’s; words 15 to 44 are zero in every real file. See settings A below |
0x13B1 | 94 | Settings B | 47 words: the settings of the renderer’s effects stage, a delay with a chorus; words 17 to 46 are zero in every real file. See settings B below |
0x140F | 1,040 | Riff | 1,040 bytes: a riff of 128 sixteenth-note steps, described in its own section below |
0x181F | 14 | Settings C | Seven words: transposition, filter mode, a constant 1, double step, two effects values and the tempo. See settings C and D below |
0x182D | 8 | Settings D | Four words of render options. See settings C and D below |
0x1835 | 8 | Flags 1 | Eight bytes, read by the loader and not used by the renderer that was read; for revisions below 15 the loader sets the first to 1. The second byte goes up to 110 and the third to 33 in real files; the meaning is not known |
0x183D | 8 | Flags 2 | Eight bytes, not used by the renderer that was read; for revisions below 15 the first is set to 0. Real files hold 0 to 256 in the first word and 0 to 15 in the second; the meaning is not known |
0x1845 | 2 | Settings E | One word, not used by the renderer that was read; for revisions below 15 the loader sets it to 2. Real files hold 0 to 3,852; the meaning is not known |
0x1847 | 8 | Levels | Eight bytes, each 0 to 100 (the loader sets all to 100 for revisions below 15); not used by the renderer that was read |
0x184F | 28 | Not used | Zero in every real file, and not read by the renderer |
Settings A, the filter
| Word | Field | Meaning |
|---|---|---|
| 0 | Cut-off | 0 to 255; the filter’s base cut-off |
| 1 | Envelope 3 amount | Signed, −127 to 127; the renderer switches it on when it is not zero |
| 2 | LFO amount | Signed, −127 to 127; switched on when not zero |
| 3 | Emphasis | 0 to 255, an index into the renderer’s table of resonance coefficients |
| 4, 5, 6 | Low, band and high levels (inferred) | 0 to 255; word 4 is 255 in a new patch. Three weights for the filter’s outputs, which fits the program’s low, band and high controls but was not followed to the end |
| 7 | Keyboard tracking (inferred) | 0 to 255, from the program’s “Kb” wheel; the renderer’s use of it was not followed |
| 8, 9, 14 | Switches | 0 or 1 (346, 129 and 23 of the 580 real files have 1); what they switch is not worked out. Word 14 is set to 0 for revisions below 15 |
| 11 | Value 0 to 100 | Given to the filter as 100 minus it; 0 to 91 in real files; the use is not worked out |
| 13 | Value 8 to 100 | Set to 100 for revisions below 2; the use is not worked out |
| 10, 12, 15 to 44 | Not used | Zero in every real file |
Settings B, the effects stage
| Word | Field | Meaning |
|---|---|---|
| 0 | Mix | Percent, 0 to 100; 50 in a new patch. The wet share, with 100 minus it the dry share. For revisions below 3 the loader converts it from words 0 and 1 |
| 2 | Delay time | Milliseconds, 0 to 1,000; 40 in a new patch |
| 8 | Chorus depth (inferred) | 0 to 100; the chorus is off when it is 0 |
| 14 | Effects off | Not zero: the whole stage is skipped |
| 16 | Chorus preset (inferred) | 0 or 1 (5 real files have 1): the chorus takes its settings from a built-in table |
| 1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15 | Read by the effects stage, not worked out | Ranges in real files: words 1, 5, 7, 9 and 10 are 0 to 100, word 3 is 0 to 90, word 4 is 0 to 80, word 6 is 0 to 1,000 (a time in milliseconds), words 11, 12, 13 and 15 are 0 or 1 |
| 17 to 46 | Not used | Zero in every real file |
Settings C and D
| Block and word | Field | Meaning |
|---|---|---|
| C 0 | Transposition | Semitones, 0 to 67 in real files; the renderer adds 24 and multiplies by 100 for a note in cents |
| C 1 | Filter mode | 0x2253 (8787) skips the filter and 0x2255 (8789) sets an extra flag; a new patch has 0x2254, and real files hold 0 or one of these values |
| C 2 | Constant | 1 in every real file |
| C 3 | Double step | Not zero: every riff step lasts twice as long |
| C 4, C 5 | Effects values | Handed to the effects stage: 0 to 97 and 98 to 1,500 in real files (1,638 in a new patch); not worked out |
| C 6 | Tempo | Beats per minute, 60 to 240 in real files; 120 in a new patch (the loader replaces 0 by 120); every time in the renderer is scaled by it |
| D 0 | Switch | 0 or 1; not worked out |
| D 1 | Repeat count | 0 to 16; 0 counts as 1 |
| D 2 | Value 0 to 2,692 | Handed to the effects stage; not worked out |
| D 3 | Flags | 0 to 14 in real files: bit 2 (4) normalises the rendered sound and bit 3 (8) fades out its last 220 samples; bits 0 and 1 are passed on |
What older revisions change when loaded
- Below 2: word 13 of settings A is set to 100.
- Below 3: word 0 of settings B is converted from the first two words.
- Below 4: if word 9 of settings A is not zero and word 7 is zero, word 7 becomes 3.
- Below 7: oscillator 2’s pitch offset gets 4 added and oscillator 3’s gets 4 taken off.
- Below 15: word 14 of settings A becomes 0, the first of flags 1 becomes 1, the first of flags 2 becomes 0, settings E becomes 2 and the eight levels become 100.
- Revision 0 has no comment.
These are read from the loader’s code and not tried on old files: the oldest revision in the real patches is 4, and nearly all are 13 or more.
The riff
The 1,040 bytes at 0x140F hold a riff of 128 steps, each a sixteenth
note (125 milliseconds at the default 120 beats per minute; the tempo is in settings C).
The renderer’s riff set-up reads it as follows.
| Offset | Size | Field | Meaning |
|---|---|---|---|
0x000 | 2 | Riff off | 1 switches the riff off and the oscillators play the note they are given; 0 plays the riff. 471 real files have 0 and 109 have 1 |
0x002 | 256 | Notes | 128 words, one for each step: a note number (the renderer makes a pitch of (note + 24) × 100 cents) or 0xFFFF for a rest |
0x102 | 256 | Ties | 128 words. Not zero: the step is tied to the next, which starts without a new attack; 2 also slides the pitch to the next note |
0x202 | 256 | Accents | 128 words. Not zero: the step is accented |
0x302 | 4 | Accent amounts | Two words (0 to 63 in real files) used for an accented step: the first sets its volume, the second, halved, is kept with the step |
0x306 | 6 | Oscillators on the riff | One word for each oscillator: not zero means it plays the riff’s notes |
0x30C | 4 | Not worked out | Two words copied with the three above; not used by the renderer that was read. The first is 0 or 1 in real files and the second is 1 in every one |
0x310 | 256 | Not used | Zero in every real file, and not read |
This is read from the code that builds the riff and not heard. How the ties and accents sound is the renderer’s own: the tie flag and the slide are as the code uses them.
Comment
A 512-byte text buffer at 0x186B, present when the revision is above 0,
filled with zeros after the text. Lines end in CR LF. It holds the patch’s notes: in
the patches seen, 127 have none, and the longest is 406 characters, such as “very very
creepy :0” and a credit to the author.
The .OSC wave file
The oscillator wave files that the path buffer names are 36 bytes: the characters
OSC and a fourth byte (a space in the files seen), then 16 signed words,
the levels of the first 16 harmonics. This is read from the version 1 renderer’s
loader, which checks the first three characters and copies the 32 bytes after the
fourth, and holds in all 60 .OSC files on this site’s machine (all 36 bytes).
A version 2 patch has the same 16 words in its record and does not read the file.
Worked example
The start of horror.syn, from the SimSynth 2 extras of FruityLoops 3:
0000: 53 59 4E 54 48 02 00 0E 00 SYNTH, version 2, revision 14
0009: CE FF LFO amount −50
000B: 32 00 pulse width 50
000D: 00 00 pitch offset 0
000F: 46 00 level 70
0011: 00 00 00 00 envelope 2 amount 0, off switch 0
0015: 00 00 01 00 00 00 switches 0, 1, 0
001B: 04 00 shape 4
001D: 4E 41 00 … wave file path "NA"
0127: oscillator 2 begins (0x9 + 286)
Telling it apart
The file starts with SYNTH and the word 2 at offset 5, and is 6,763
bytes long (or 6,251 for revision 0). The explorer takes a .syn file as
this format only when all of that is true; version
1 has a 1 there and is 989 bytes long. Other programs’ files with the same
extension, such as the info.syn text of the DOS game Stunts, do not start
with SYNTH.
What the SimSynth 2.5 help says
The other public text found about the program is the help file of the standalone SimSynth 2.5 (David Billen’s program, before it went into FruityLoops), kept on the BAM 2000 CD-ROM image at discmaster.textfiles.com. It describes the controls, not the file, and gives no layout; it is a different and older program than the renderer read for this page, so it can only confirm names. What it says, and how that sits with the reading above:
- Shapes: TRI, SAW, PUL, NOISE and SINE; “Adj” is the pulse width for PUL, reverses the saw below 50% for SAW, and for TRI 50% is a plain triangle with higher values approaching a sine; a SINE can have up to 16 harmonics. This fits the shapes above: 0 pulse, 1 ramp (saw), 2 the sine-based triangle, 4 the 16 harmonics. Shape 3, which the renderer treats as a different kind, is then most likely NOISE (“LFO Ramp (NOISE only)” chooses sample-and-hold or a ramp). That is a match of names, not checked against a sound.
- Timing: times are in “clocks”, 500 to a quarter note at the TEMPO setting, so a clock is 1 millisecond at 120 beats per minute. This agrees with times in milliseconds scaled by the tempo. A “times 2” switch halves the timing speed and the frequencies; the double step word of settings C may be it.
- Oscillator switches: +1 and +2 add octaves, WARM adds a detuned copy, and Drift stops the oscillators restarting on each riff note. Switch 3 is WARM in the renderer; the help’s +1 and +2 are not what the renderer’s switches 1 and 2 do (they smooth the wave table), so which words the +1, +2 and Drift switches live in is unresolved.
- Filter: Cut, Emph (resonance), Env and LFO added to the cutoff, LP, BP and HP output levels, and Out; also Preamp, X2 (steeper filter, stronger resonance), Post (extra low-pass) and “1.x style”. The first seven match settings A words 0 to 6. The three switch words (8, 9, 14) and the two value words (11 and 13) of settings A are probably Preamp, Out, X2, Post and 1.x style, but which is which is not established.
- Effects: DELAY (time in clocks) and REFEED, BEND and RATE (frequency modulation depth and its speed, RATE × 8 for banding), Mix, SEP (stereo separation), and the modes Ping Pong, Bounce, Banding and Notch. These are the likely owners of the settings B words that are listed above only by range.
- Main section: Gain, Limit (a high-frequency limiter) and Base Frq (not used for riffs).
- Riffs: up to 8 bars (which fits 128 sixteenth-note steps), the highest bar holding notes sets the length; accents raise filter cutoff and amplitude by two slider amounts (the two accent amount words); a slide either ties a note to the next without retriggering the envelopes or glides to it; “Tracking” is whether envelopes and oscillators follow the riff.
None of this ties a control to an offset in the file; those matches stay unverified.
What the FL Studio manual says
The Image-Line manual page for SimSynth Live (fetched and read in full this session) describes the plug-in’s controls and says nothing about the file. It credits David Billen (engine), Frederic Vanmol (conversion) and Didier Dambrin (interface). Its words, set against the layout above:
- Structure: three oscillators, a state-variable filter (SVF), an ADSR amplitude envelope, a programmable LFO that controls some oscillator and filter parameters, and a chorus switch. The file’s three envelopes, four records and settings blocks are not described in these terms; a page of ADSR wheels cannot be tied to 300-point envelopes, so the page keeps the point lists as the file stores them.
- Oscillator shapes: Pulse/Square, Saw, Triangle, Noise and Sine, which fits shapes 0 to 4 in that order (our reading: the manual does not number them). Its PW wheel sets the pulse width and, for Sine, varies it “from standard to the 4th power of sine”. The noise frequency range is set by CRS (zero is white noise).
- Wheels: CRS (coarse) is ±12 semitones, FINE ±100 cents, LVL 0 to 100%, LFO and ENV modulation ±100% (“a two octave range”). The file’s pitch offset is in cents (−2400 to 2400 seen), which fits a coarse and a fine wheel stored together, but the manual does not say so.
- Switches: the manual’s switches 1 and 2 mix an extra wave one and two octaves higher, and WARM “softens the oscillator sound by mixing a second wave with slightly detuned frequency”. WARM matches the renderer’s switch 3 (a second, slightly higher copy). The manual’s meaning of 1 and 2 (octave mixes) is not what the renderer’s switches 1 and 2 do for shapes 0 to 2 (they smooth the wave table), and the manual does not give a file position for either, so which words hold them is still unresolved. Ring 1x2 (ring modulation of oscillator 1 by 2) is a control with no word found for it.
- Filter: ATT, DEC, SUS, REL for the filter envelope, ENV and LFO amounts (positive or negative, added to the cut-off), KB (the note’s pitch over the cut-off), TRACK AMP (the amplitude envelope drives the filter instead of the filter envelope), CUT 0 to 100%, EMPH (resonance), HIGH (50% gives a notch) and BAND. The file has one filter envelope slot (envelope 3), cut-off 0 to 255, envelope and LFO amounts −127 to 127 and low, band and high weights.
- LFO: shapes Square, Saw, Triangle and Noise (the LFO record’s shape field has 2 in a new patch), RATE, DEL (delay, a fade-in) and RETRIGGER (restart at zero with each note).
The manual confirms names and ranges and ties none of them to an offset, so every “inferred” on this page remains inferred.
Not described
No public specification, library or source code describing the SYN format was found: the Image-Line manual page, the SimSynth 2.5 help file, the fileinfo.com and file-extension.org entries and two web searches were tried, and none gives a layout. Everything on this page was worked out from the renderer in
ss2wav.dll, read by disassembly, and from real patches. What follows is
what that could not settle, so this page is partial.
Known, not yet covered
- Viewer: the envelopes are listed as points and drawn as line charts, and the riff is shown as its three step lists and drawn as a piano roll (not as notes on a staff). Nothing described is left undrawn.
Unknown
- Reference: which program wrote the words that the renderer never reads (flags 1 and 2, settings E, the eight levels, the riff’s last two words, settings C words 4 and 5, settings D words 0 and 2, and the switch and value words of settings A and B). No program on this machine reads them:
SimSynth.dllandSimSynth_Eng.dll, the SimSynth Live plugin of FL Studio 5, contain no.synloader, and FL Studio callsss2wav.dllto render a.synfile into a sample. The plugin’s 57 numbered controls (Retrigger, Track amp, Ring 1×2, VCA velocity, chorus, filter and LFO on/off and others) probably include these words’ meanings, but nothing available ties a control to a word, and the standalone SimSynth 2 that wrote the files is not on this machine. The viewer shows these as raw words or bytes. - Reference: settings A words 4 to 9, 11, 13 and 14 (the low, band and high levels and keyboard tracking are inferred from the renderer code; the switches and values are only ranges), and settings B words 1, 3 to 7, 9 to 13 and 15, and whether words 8 and 16 are the chorus’s (inferred from the renderer code). The viewer shows them as named-by-position words with their values.
- Reference: the exact accent maths of the riff, and its two last words at offset 0x30C. The rest of the riff is inferred from the renderer code and was not heard.
- Reference: the FM word and the glide word of each oscillator, whether the pitch offset holds both the coarse and the fine wheel, what the level of the LFO record is, what shape 3 sounds like and the LFO’s shapes: all inferred from the renderer code, never heard.
- Reference and viewer: the revision rules below 15 and the conversions for revisions below 7 are read from the loader’s code and not tried: the oldest revision in the real patches is 4 and none has revision 0. The viewer shows the revision number and applies no conversion.
- Reference and viewer: rendering to sound: the filter and envelope maths is not written up, and only the closed
ss2wav.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, whose SimSynth Live generator opens and saves these patches (Windows, macOS)
- FruityLoops 3 – the release whose SimSynth folders hold the patches this page was checked on (Windows)