Skip to content
musicastudioPublic

About

Software reconstruction of the 1998 Yamaha FS1R synthesizer

Resources

Stars

370 stars

Watchers

19 watching

Forks

Repository files navigation

FSVR icon

FSVR

A software recreation of the Yamaha FS1R synthesizer.
Created by studying the real hardware, specification, expired patents and firmware. Validated with tests against real hardware.

Download for Windows, Linux or MacOS

FSVR standalone

Introduction

A millenial FM monster, reborn.

Discord: https://discord.gg/6sXu3GmkNm

The Yamaha FS1R is one of the most sought-after FM synthesizers ever made, and one of the hardest to find.

In 2025, Zhiyuan Wan (rgwan) started taking a real FS1R apart to try and figure out how this masterpiece worked. After all, the FS1R is not analog, it is essentially a purpose built computer running primarily on a SuperH SH2 processor supported by DSP chips. Zhiyuan's work was picked up by James Hansen (jameshansen) in mid-2026 who used a custom AI-assisted tooling framework to begin to understand and rebuild the synthesizer in software - this is what became FSVR.

The biggest challenge was effects, which ran on a processor with minimal documentation. The VOP3 emulation core created by Wouter van Nifterick (WouterVanNifterick) gave us a reference point to finally understand and rewrite the FS1R's effects and filters in C++.

This project is not an emulation, it is a rewrite of the logic of the Yamaha FS1R in C++, so it runs natively on multiple platforms. We are transparent about how AI has also played a significant role in this project; the initial recreation was created using Claude Fable 5.1, with much of the ongoing analysis and engine improvements being assisted with Claude Opus 5 and Opus 5.5.

In addition to the synth engine, FSVR features a robust and friendly GUI that allows easy editing and creation of your own sounds.

We hope you enjoy.

Demos

FS1R DEMO SONG 1: Vokodrone

FS1R Hardware Recording

fs1r_demo01_hardware.mp4

FSVR (v0.8.0)

fs1r_demo01_engine.mp4

FS1R DEMO SONG 2: Full Tines

FS1R Hardware Recording

fs1r_demo02_hardware.mp4

FSVR (v0.8.0)

fs1r_demo02_engine.mp4

FS1R vs FSVR

The synthesis engine matches close to 1:1 with real hardware.

A short list of places FSVR behaves differently on purpose is kept in docs/Differences.md, with the firmware address behind each one where there is one. Most are additions the unit never had: 32 filtered voices, 14-bit pitch bend, a gliding filter cutoff, user libraries without the unit's memory limits and Import Audio. render_capture keeps the engine's on the unit's behaviour unless given -fsvr.

Builds

The latest release, also on musica.studio, has an installer for Windows, macOS and Linux that puts every format in place, and each format as its own zip, FSVR-<OS>-<format>.zip: CLAP, VST3, VST2 and standalone everywhere, an AU for Logic Pro on macOS, and on Windows FSVR-Windows-VST2-32-DXi.zip, a 32-bit VST2 carrying a DXi (Cakewalk's older plug-in format, registered with regsvr32). The macOS builds are universal, Apple silicon and Intel in one binary. No dependencies. docs/plugin_guide.md is the user guide.

Every push to main builds the same set through GitHub Actions, so a build for an OS you do not own is always one Actions run away, including on a fork. .github/workflows/build.yml is four jobs:

  • engine, on windows-latest, ubuntu-latest and macos-latest. Plain CMake with no downloads, then ctest, which runs the effect and engine self checks everywhere. Uploads FSVR-console-windows.
  • plugin, on Windows x64, Windows x86, Linux and macOS. Installs the X11, ALSA, JACK and PulseAudio headers on Linux, configures with -DFSVR_BUILD_PLUGIN=ON, runs the plug-in's own checks (check_plugin, check_gui) on the 64-bit legs, and uploads FSVR-plugin-windows, FSVR-plugin-windows-x86, FSVR-plugin-linux and FSVR-plugin-macos, each holding every format for that platform.
  • installer, on Linux. Checks out musicastudio/Installer, packs the plug-in artifacts into it and builds FSVR-Windows-Installer.exe, FSVR-MacOS-Installer.zip, FSVR-Linux-Installer and FSVR-MacOS-Update (the bare binary the macOS updater runs), at the version in CMakeLists.txt.
  • release, on a v* tag only. Splits the plug-in artifacts into one zip per format, named as FM8.plus names its own (FSVR-Windows-VST2-64.zip, FSVR-Windows-VST2-32-DXi.zip, FSVR-MacOS-AU.zip and so on), adds the installers, the console and SHA256SUMS.txt, and attaches them to a GitHub release. The installers' updater never reads GitHub: musica.studio mirrors each release and serves the update from there.

Each night .github/workflows/nightly.yml takes the newest build of main that passed every check, without rebuilding it, and publishes its installers and plug-in zips as the nightly pre-release, which the updater never offers. A night when main has not moved publishes nothing. New nightlies and releases are posted to the Discord channel with their download links, as are new issues and pull requests.

Building it

CMake 3.24 or later everywhere, C++17. The engine, the console and the self checks need no dependencies:

cmake -B build/cmake -S .                 # fs1rLib, bin/render_capture, and bin/fsvr_console on Windows
cmake --build build/cmake --config Release
ctest --test-dir build/cmake -C Release   # the self checks

The plug-in adds one flag. Its first configure downloads the CLAP SDK and clap-wrapper, which fetches the VST3 and AU SDKs, RtAudio and RtMidi, and Import Audio's decoders (dr_libs and stb_vorbis), so it needs the network once:

cmake -B build/plugin -S . -DFSVR_BUILD_PLUGIN=ON
cmake --build build/plugin --config Release
ctest --test-dir build/plugin -C Release -R plugin   # the plug-in's own check

On Linux install libx11-dev libasound2-dev libjack-jackd2-dev libpipewire-0.3-dev libpulse-dev pkg-config first (Debian and Ubuntu names). On Windows a second build with -A Win32 makes the 32-bit VST2 with the DXi in it.

Every format lands in a folder of its own under bin/: bin/CLAP, bin/VST3, bin/VST2 and bin/Standalone, bin/AU on macOS, which is the only plugin format Logic Pro loads, and bin/VST2 32-bit and DXi from the 32-bit build. The 1408 factory voices, the 384 factory performances and the 90 preset formant sequences are built into the plugin, so its browser needs no EPROM image.

On Windows build.bat is the shortcut, MSVC x64 out of the VS 2022 Professional vcvars64:

build.bat            bin\fsvr_console.exe, the console
build.bat test       build and run the self checks
build.bat plugin     every plug-in format, 64-bit and 32-bit, then check_plugin and check_gui

Everything meant to be run lands in bin/; objects and the test binaries go to build/.

The console

bin/fsvr_console is the test harness on top of the engine library. It is Windows only, since it uses WinMM for MIDI and waveOut for audio, but its offline render path needs no devices at all.

fsvr_console -l                                     list MIDI ports
fsvr_console                                        asks for a MIDI input once, remembers it in bin\fsvr_console.ini
fsvr_console -m 0 -o 0 -v presets\native\000_Ballad_EP.syx
fsvr_console -v presets\dx7\004_Pianotone1.syx      DX7-format presets, converted the way the firmware does
fsvr_console -r <eprom.bin> -p 128                  ROM voice, 0-255 native and 256-1407 the DX7 banks
fsvr_console -r <eprom.bin> -P 0                    ROM performance 0-383 with its voices and Fseq
fsvr_console -r <eprom.bin> -P 0 -f 29              override the Fseq with preset Fseq 1-90
fsvr_console -v presets\native\128_BagPipe.syx -w test.wav -n 60 -d 3     offline render, no devices needed

Options. -m MIDI input, -o MIDI output for dump and parameter replies, -c force all parts onto one MIDI channel (the default is each part on its own receive channel), -v a sysex file holding FS1R voice, performance or Fseq bulk dumps or a DX7 VCED dump, with -p picking the n-th dump in the file, -r a 2 MB EPROM image with -p voice, -P performance and -f Fseq, -g output gain, -w offline render with -n note, -n2 a second note a third of the way in, -cc num=val control changes sent before the note, -d seconds, -mono part 1 mono with full-time portamento, -selftest the engine self check. FS1R_DEBUG=1 prints the computed register values at every note on.

MIDI. Notes, bend, both aftertouches, the control numbers the system table assigns to KN1-4, MC1-4, FC, BC, Formant and FM, CC5/65 portamento, CC7 volume, CC10 pan, CC11 expression, CC64 sustain, CC91/94 sends, CC120/121/123/126/127, RPN 0-2, the ten NRPN 01 xx part parameters, bank select and program change in both performance and multi modes, MIDI clock, active sensing, FS1R bulk dumps and parameter changes across the whole map, and dump and parameter requests answered. The performance's controller sets route the sources to the destinations.

The EPROM image the -r examples take is rgwan's dump with its 16-bit words byte-swapped into CPU order, kept outside this repo in ../FS1R_DISASM/roms/. FSVR does not ship it, and nothing but the -r paths needs it.

Checking a change

python tools/check_wav.py test.wav 60   # pitch, harmonics and envelope of one render
python tools/regress.py                 # the whole fixed preset list against the stored reference

Repo Layout

Engine. No Windows, no host, no GUI. This is what the plugin links. The tree says where a claim comes from, which is the thing to know before changing anything in it.

  • src/fs1r.h the public header, fsvr::Device. The only one the plugin includes Each src/ folder has a README.md with its files and rules; the summary:

src/fs1r/ is the hardware's values and nothing else: what presets and the engine read, never code.

  • hardware.h the FS1R's own numbers, read off the board. Facts, never tuned
  • tables.h the EPROM's conversion tables, by tools/extract_tables.py; algorithms.h the 88-algorithm routing table
  • rom_tables.h, rom_tables.cpp the filter and effect hosts' EPROM tables, by tools/extract_vop3_rom.py
  • vop3_regs.h the DSP registers the hosts write
  • cal.h the calibration surface, every modelled constant in one place: INFERRED, changed by measuring against a recording and never by taste

The engine, one folder a part. KNOWN parts are rewritten from the disassembly and cite a FUN_ address; a disagreement with a real unit is a bug there, not a calibration. INFERRED parts are modelled, with their constants in cal.h.

  • src/engine/ KNOWN: synth.h the engine's shared declarations, including struct Synth; notes.cpp note on and off, operator setup, pitch, portamento, and the 192.3 Hz tick; controllers.cpp the eight controller sets, the three scalers and the 48 destinations; fseq.cpp formant sequence playback; midi.cpp MIDI in and sysex in and out
  • src/presets/ KNOWN: patch.cpp voice, performance and part data as the firmware decodes it, with the DX7 conversion; rom.cpp EPROM and sysex loading
  • src/tonegen/ INFERRED: the tone generator. operator.h one operator's waveforms and grains, envelope.h its EGs, noise.h the unvoiced band, channel.h eight of them on an algorithm
  • src/engine/render.cpp the sample loop: channels, filter voices, part buses, effects
  • src/modulators/ INFERRED: the EG generators and LFOs the filter and effect hosts program
  • src/filters/ the voice filter: voice_filter.h one voice, filter.h 32 of them, filter_host.* the firmware's filter host
  • src/effects/ the effects: programs.h their shared state and one file a program, effects.h the section, host/ the firmware's effect host
  • src/dsp/ what the filters and effects share: word.h the DSPs' number format, sink.h how a host talks to its section. tools/dsp_check.cpp pins the filters' and effects' output and tools/dsp_bench.cpp times it

Ours, with no hardware counterpart:

  • src/device/ fsvr::Device, host-rate resampling and state as bulk dumps
  • src/math/ the sample loop's sine, 2^x and dB: a table (the default), CORDIC, a hybrid of the two, or raw libm, chosen by FSVR_MATH
  • src/engine/tuning.h cost knobs, the control-rate decimation and the queue cap. Changing one must not change the output
  • src/display/ how the unit shows values (transcribed from K_Take's FS1R Editor, checked against the Data List and the ROM) and the editor's EG plots
  • src/io/smf.h Standard MIDI File reading and offline rendering; src/selftest/ the engine self check
  • src/console/main.cpp the test console: WinMM MIDI in and out, waveOut, offline render

Plugin. The plug-in layer, which never models synthesis; it moves parameter values in and out of the engine as sysex, exactly as a hardware editor would.

  • plugin/plugin.cpp the processor: every param a sysex parameter change into fsvr::Device, the engine's own bulk dumps read back into the params, program change, the monitor, and the Save and Import menus' and bank manager's requests
  • plugin/library.cpp the bank manager's data: .syx files as banks (FS1R bulks, DX7 single voices and 32-voice banks), the factory bank and the user library folder; audio_decode.cpp and audio_fseq.cpp Import Audio
  • plugin/skin/ the editor, a Hollow skin: views, params (params.json, 3,223 of them), images (at 1x in images/, at 0.5x, 0.75x, 1.5x and 2x in scales/) and its TrueType fonts, and data/fs1r_sysex.json, the address and packing of every param. This copy is the source: edit it with the web editor of the Hollow project (kept beside this repository, not published), which opens it by default and saves into it
  • blender/ the skin's artwork as Blender components (the window's chrome, buttons, panels, displays, glyphs, logos, pots, faders, wheels and keys), blender/scripts/ what builds and renders them into the skin at every scale, and blender/textures/ the blue mottled chrome they share (docs/editor.md, The art: Blender)
  • plugin/generated/ the bundled factory banks fs1r_presets.syx with its index fs1r_presets.csv, fs1r_performances.syx and fs1r_fseqs.syx, packed from presets/ by tools/make_presets_blob.py, and parameterDescriptions_fs1r.json, the 893 parameters with their sysex addresses and bit layouts, by tools/gen_parameters.py, which the skin's param table is built from
  • hollow/ the plug-in framework: the formats (CLAP, and through clap-wrapper VST3, AU and the standalone; VST2 and the DXi of its own), the skin runtime and software renderer, and the editor window on Windows, macOS and X11. hollow/docs/skin-format.md is the skin's contract

Tools, firmware.

  • tools/build_fs1r_ghidra.py imports and decompiles the firmware into ../FS1R_DISASM with pyghidra (SH-2); decomp.py, ghidra_disasm.py, ghidra_switches.py, ghidra_handlers.py and ghidra_probe.py query it
  • tools/ghidra_ctrl_dests.py decompiles the 48 controller destination handlers, which Ghidra never turns into functions because only a pointer table reaches them
  • tools/extract_tables.py, extract_presets.py and extract_demo.py pull the conversion tables, the 1408 voices, 384 performances and 90 Fseqs, and the demo songs out of the EPROM image
  • tools/extract_vop3_rom.py writes the two hosts' EPROM tables, src/fs1r/rom_tables.*

Tools, calibration.

  • tools/make_capture_set.py writes captures/requests/, the hardware capture kit: Standard MIDI Files that play a measurement into a real FS1R, each setting up its own patches by sysex and opening and closing with a marker so a recording aligns itself. Built out of tools/fs1r_patch.py; the other make_capture_*.py are the later additions to the set
  • tools/analyze_capture.py aligns a recording to the manifest, measures every segment, fits the constants it can, and diffs the result against our own render of the same file. bin/render_capture makes that render, which is also how a request file is checked before anyone is asked to play it. tools/bench_captures.py rebuilds the renderer from the source as it stands and prints one line per file; tools/render_demo.sh does the same for the demo set and appends to the ledger
  • tools/render_song.py, check_demo.py and demo_probe.py play the extracted demo songs through the engine and score them against rgwan's recording; demo_scores.txt is the running ledger
  • tools/pitch_track.py, split_capture.py and analyze_unvoiced2.py the per-measurement readers

Tools, checks.

  • tools/regress.py renders the fixed preset list and diffs it against regress_ref.json: pitch, harmonic peaks, envelope, stereo width, centroid
  • tools/perfbench.cpp (build.bat perf) times the engine on fixed scenarios through fsvr::Device, pinned to one core, and hashes its 16-bit output; tools/abcheck.py renders the regression cases and the Fat Line demo and compares them with a baseline sample for sample, which is the tier an optimisation commit names (docs/performance.md, Measuring). Both load the factory banks from plugin/generated (-factory on the renderers), so neither needs the EPROM
  • fsvr_console -selftest (engine_selftest away from Windows) is the engine check, the effects included: dry unity, Hall 1, the LFO law, the type path, a part on the insertion. It runs under ctest
  • tools/check_plugin.cpp drives the plug-in's processor the way a host does: factory banks, a saved session, Import SysEx, the bank browser, Import Audio, program change, panic, the monitor, Save to Bank, .fsvr presets, the right-click menus, and the Init Patch and the standalone's Load Last Patch. ctest runs it in a plug-in build
  • tools/check_gui.cpp drives the editor over the processor without a window, as a mouse and a keyboard would: the top bar's menus and toggles, every page by its tab or button, the operator panel and its waveform, the browser's right-click menus, every dialog, the modal's veil, Escape and close X, the close prompt, the Options page (every scale, both keyboards and each setting) and About, then every page's dials, faders, dropdowns and toggles. ctest runs it as "gui"
  • tools/check_wav.py, check_formant.py and check_presets.py, the rest of what build.bat test runs; check_skirt.py renders every harmonic form at every skirt against the register sweep

Data.

  • presets/ the factory voices, performances and Fseqs as .syx with index.csv, plus the DX7 bank
  • captures/requests/ the capture kit as MIDI with a README listing what each file settles, captures/hardware/ the recordings that came back, captures/analysis/ the per-segment numbers, captures/engine/ our own renders of the same files

Docs.

  • docs/research.md what is known about the hardware, and docs/ymp706_registers.md the tone generator interface and the CPU-side engine lifted from the firmware. These two are the reference.
  • docs/fidelity_plan.md the ranked read of where the engine stands against every recording; capture_0918.md and hardware_capture_request.md are the capture working
  • docs/aeg.md, formant.md, skirt.md, noise.md and detune.md, one measurement each, the working behind the constants in cal
  • docs/midi_dispatch.md how a Note On, a Control Change and both aftertouches get from the SCI0 interrupt to the tone generator; interface_from_firmware.md the unit's screen tables, cursor stops and MIDI View, read out of the EPROM
  • docs/Differences.md the short list of places FSVR knowingly behaves differently from the unit, and why
  • docs/plugin_guide.md the plugin user guide, and docs/editor.md why the editor is the way it is: which of the unit's limits it drops, the bank manager and what the processor answers for the GUI. The Data List and owner's manual text and the formant patent are here too.
  • hollow/docs/ the plug-in framework: framework.md how a product is built on it, skin-format.md the skin's contract
  • STATUS.md what is known, what is modelled and what nobody knows, with the open work at the end
  • docs/findings.md the research log, newest first, and the evidence behind each constant

License

FSVR is free software under the GNU General Public License v3.0, in LICENSE, with the provenance of each part in NOTICE.md.

About

Software reconstruction of the 1998 Yamaha FS1R synthesizer

Resources

Stars

370 stars

Watchers

19 watching

Forks

Releases

Packages

Contributors

Languages