fm1-dockfm1-dock
New in 0.8Prophet, B3 ORGAN, Niagara Drift, ARTIHIVE and a lighter Scintilla

One firmware.
Many synths.

fm1-dock is installed once on your M-VAVE FM-1 or SMK-37. The synths are modules in its flash: hold HOME and pick another one, no reinstall. Add the ones you want from this page and take them out again; your settings and presets stay.

Browse the modules

CS-1, Scintilla, OberVave and a sine come with it. Prophet, B3 ORGAN, Niagara Drift, ARTIHIVE, FM-106, MONK-1, FiMba-1, GATOR, DUB-1, FM-1 SID, AMB-1 and FoMni go into its flash with one click, and your own module the same way.

New in 0.8

November 2026

The release and its notes: built and signed on GitHub, with a build attestation.

A lighter Scintilla

Its engine built for speed: the heaviest factory patches take 5 to 10 points less of the CPU (measured in fm1-emu), and the module is 58 KiB instead of 90, with the factory bank packed.

Test MIDI

A page that plays the FM-1 over USB or Bluetooth, shows what it sends, and tests its TRS MIDI jack, from Chrome or Edge.

The Firmware Hub

Every card links its synth's own firmware on the FM-1 Firmware Hub, and fm1-dock's own entry is there too.

New in 0.7: Bluetooth MIDI, five modules, the second core, the EQ, the MIDI options

Bluetooth MIDI that connects

The radio now calibrates itself at every start, so a Mac, phone or controller connects and stays connected, with both CPU cores running. On a Mac: Audio MIDI Setup, MIDI Studio, the Bluetooth button, Connect.

Five new modules

FM-106 (the Juno-106), MONK-1's twelve singers, FiMba-1's kalimba, GATOR's Plaits-style macro oscillator and DUB-1's self-playing dub machine, each its author's own code: the catalog.

The second core

Modules can play voices on the chip's second CPU (CS-1, FM-106). The top line shows 1CPU or 2CPU; after a crash with both, one core until power-off.

A master EQ

Low, mid and high on whatever plays, in the chip's hardware EQ, heard while you set it.

MIDI options

MIDI CH, LOCAL, MIDI THRU, KNOBS CC and CC 7 volume, for every module.

This page

Connect, install or update fm1-dock, then add and remove modules, with a meter for the 296 KiB they share. Try any of them in the emulator first.

Modules

Built-in modules come with fm1-dock. Add-ons go into its flash from here, and out again, without touching the rest. Every one is its author's work: their pages, manuals and licences are on the cards.

Your own module goes in the same way: drop its .dock on the console's Deploy, or tools/dock.py deploy. A module ported to fm1-dock comes to this catalog with an entry in docs/modules/modules.json, its .dock and a screenshot.

FM-1 SID on your FM-1

The tunes from the video

Straight to FM-1 SID in your fm1-dock, over USB: each comes from the High Voltage SID Collection when you press it (none are kept here), goes into FM-1 SID's C64 memory and plays. Nothing is written to flash.

More: any of HVSC's 61 000 tunes on FM-1 SID's page, with Play on my FM-1.

Write your own chiptune

FM-1 SID has GoatTracker 2's editor built in, the tracker C64 musicians use, on the FM-1's knobs and keys while the song plays. Your first chiptune, step by step: a pulsing bass, arpeggio chords and drums made of noise, from an empty song in about 15 minutes, saved in the FM-1's flash.

What's in the dock

Around every module: the same settings, MIDI and safety nets. On the device: hold HOME, past the last module, OPTIONS.

EQ

Three bands on whatever plays: a 150 Hz shelf, a 1 kHz peak and a 6 kHz shelf, ±12 dB each, in the chip's hardware EQ. KNOB1–3 turn them.

MIDI CH

ALL, or one channel 1–16: the module hears it as channel 1, and the keys send on it.

LOCAL

OFF: the keys only send MIDI, so a computer playing them back gives no doubled notes.

KNOBS CC

KNOB1–4 send CC 74, 71, 73 and 72 (cutoff, resonance, attack, release) over USB and BLE-MIDI.

MIDI THRU

What comes in on the TRS MIDI jack goes on to USB-MIDI and BLE-MIDI, and the module plays it too.

CC7

CC 7 sets the level of any module on top of MASTER; MASTER can send CC 7 itself.

BLE-MIDI

Off by default. On, a computer, phone or controller connects to FM1-DOCK xxxx without pairing; notes go both ways. The radio calibrates itself when it starts (the sound pauses for a moment). Test it from the browser.

Second core

A module can run part of its sound on the chip's second CPU, Bluetooth on or off: CS-1 plays half its voices there, FM-106 three of its six.

Safety nets

OCT+ at power-on: the sine only. OCT−: the USB rescue. A module that crashes twice, or runs too slow, is set aside and the sine plays.

SMK-37

The same fm1-dock and modules on the M-Vave SMK-37 Pro, Elite, MKE-P37 and Starrykey 37 Play: read this first.

Playing it

HOME
opens the picker. For a module that owns the whole panel, hold HOME alone for 1.5 s.
SELECT / PRESETS
move in the picker; PLAY, SEL or HOME load the module.
OPTIONS
past the picker's last module: SEL changes the option, HOME goes back.
OCT+ at power-on
safe start: fm1-dock plays the sine only.
OCT− at power-on
the USB rescue: no sound, only the updater, for any install.
HOME at power-on
fm1-dock stays, even with a boot firmware in its slot.

fm1-dock starts whatever played last. A module that crashes, or hangs into the watchdog, twice in a row is skipped at boot until you pick it again. One that renders slower than real time for 64 blocks (0.4 s) is stopped and the sine plays, so USB and the updater keep working.

A real FM-1 and the emulator, running the same firmware and the same flash.
The picker: SINE, CS-1, SCINTILLA, OBERVAVE, FM-1 SID with their sizes
The picker, after HOME: the modules and their sizes.

Console

Talks to fm1-dock on your FM-1 over USB-MIDI, as tools/dock.py and tools/probe.py do. Chrome or Edge on a computer (WebMIDI with SysEx; the browser asks first). Nothing is sent until you press a button.

not connected

Status

Connect to see fm1-dock's state.

Modules

—

MIDI

What the FM-1 sends back (keys you play, a probe's notes): the quickest check that USB-MIDI out works.


      

Log

The host's log ring (2 KiB, survives a reset), with the crash record and render stats.

Deploy a module

A .dock module (tools/hbmod.py; an older .hrbr too) into its own flash; the table is written last, so a cut cable leaves the old state.

Run a probe

A probe runs once from RAM and reports what it measured; nothing goes into flash. If it crashes, its output so far and the PC survive the reset.

or your own:

      

Symbols

Load the fm1-dock.syms of the build on your FM-1 (0.7's, 0.5's, or build/fm1-dock.syms for your own build): every PC on this page then shows its function.

SysEx traffic

The same firmware in the emulator

fm1-emu runs FM-1 firmware unchanged: the same package, and with --flash the same flash contents, deployed modules and banks included. Below it runs fm1-dock 0.7 in your browser: press Start, then hold HOME (the 7 key) to pick CS-1, Scintilla or OberVave. Or press Try it on a module's card above: the emulator starts with that module, an add-on installed in its flash, nothing to set up and nothing saved.

# a window: the panel, your computer's keys and MIDI
fm1-live --fwsc fm1-dock.fwsc --flash flash.bin

# headless: a deploy into the DIN jack, the sound, the screen, the log
tools/dock.py emu --fwsc build/fm1-dock.fwsc --deploy fm1sid.dock --ms 6000

# closer to the chip's speed and rules
FM1_STRICT=1 fm1-live --fwsc fm1-dock.fwsc --mhz 960

Debugging, on the chip and in the emulator

What fm1-dock keeps for you

  • The log: a 2 KiB ring in RAM that survives a reset: boots, slot checks, module starts, saves, faults. Modules write to it with host->log().
  • The crash record: vector, PC, return address, the module and the time of the last fault. Load the symbols above and the console names the function.
  • The render load: the last and the worst block, in 24 MHz ticks and as a share of the 5.8 ms a block may take, and the overruns.
  • Strikes: which modules crashed at boot and are being skipped.

Probes: ask the chip

When the emulator and the FM-1 disagree, don't guess: write a probe. A probe is a small C program (probes/*.c) that runs once from RAM inside fm1-dock, with interrupts and hardware registers at its disposal, and writes typed records (numbers, text, timings) that come back as JSON. The same probe runs in the emulator:

tools/probe.py run probes/timing.c --on emu,fm1    # side by side, with the ratio
tools/probe.py exec "r3 = r1 * r2" --regs r1=5,r2=7  # one instruction, on the chip

Where the emulator and the chip differ

Found with probes on a real FM-1. Test there before calling anything safe.

SpeedThe plain emulator runs about 1.85× fast (one instruction per 240 MHz cycle). Use --mhz 130 for a rough check, or FM1_STRICT=1: per-instruction costs measured on the chip and a flash cache model.
CostsOn the chip, ALU ops pair up (×0.6–0.75), a multiply costs 2, a divide 5.7, a call 3, and a scattered flash read about 1.3 µs on a cache miss.
AlignmentMisaligned 16- and 32-bit RAM accesses fault on the chip; FM1_STRICT=1 faults too.
ScreenA full LCD frame takes ~77 ms on the wire (SPI at ~11 MHz); redrawing everything often starves the audio.
GuardsThe chip's PC limits and NULL-page guard are modelled; the write and stack limits are not yet.
USBNever arm a USB endpoint from a probe: send with host->midi_send(). A stuck endpoint needs a replug.

Write a module

A module is a table of functions at the start of its image, linked against nothing of the host's. fm1-dock checks its header, ABI, CRC and sizes before anything of it runs, copies its .data, clears its .bss and calls init(). render() runs in the audio interrupt, everything else in the main loop.

static void render(int32_t *out, uint32_t n) { /* add n stereo frames, Q15 */ }
static void note(uint32_t ch, uint32_t key, uint32_t vel) { /* vel 0: off */ }
static void ui(uint32_t ev, int32_t arg) { /* buttons, encoders */ }
static void draw(uint32_t full) { /* what changed */ }

HB_DESC = { HB_ABI, "MYSYNTH", init, release, note, cc,
            render, ui, draw, 0, 0, HB_F_SCREEN | HB_F_PANEL, midi };
# modules/mysynth/module.cfg: name, version, sources, cflags, includes, libs
python3 tools/hbmod.py modules/mysynth      # -> build/modules/mysynth.dock
uv run --with python-rtmidi tools/dock.py deploy build/modules/mysynth.dock
# or drop the .dock on "Deploy a module" above

Start from modules/sine/sine.c (about 150 lines). The host gives a module the time, the log, the screen (text, a canvas, blits), the LEDs (lit or a dim glow), its own settings record and flash banks, MIDI out, the MASTER gain and the keys' force: hb_module.h has every call.

Limits

module RAM (.data + .bss)272 KiB at 0x01C30000
.ram_text (code in RAM)16 KiB, call it through HB_FAR
a deploy fileup to 272 KiB
deploy area296 KiB for all deployed modules
settings record240 B per module
banks9 × 8 KiB, shared by all modules
audio block256 frames at 44.1 kHz: 5.8 ms
CPUone core at 240 MHz, integers only, no 64-bit division
a probe192 KiB file, 80 KiB RAM, 8 KiB output; watchdog 8 s

Flash

Offsets in the FM-1's 1 MiB flash. An update writes up to 0x93000; deployed modules, their table, the settings and the banks are above it, so installing a new fm1-dock keeps them.

Protocol

Everything the console does is SysEx over USB-MIDI (or the DIN jack, unanswered). Another tool, or an emulator, needs only this.

F0 7D 48 42 cmd seq pack7(payload + CRC-32(payload)) F7

7D: non-commercial id; 48 42: "HB". pack7: 8-to-7 bits, LSB first.
A reply: cmd | 0x40 (0x7F: refused), the same seq; its payload
starts with a status byte (0 done). Little-endian words.
cmdnamepayload → reply
01HELLO— → proto, abi, modules, current, receiving; free, largest gap, max file, crash PC, crash module, worst, overruns, log length, block ticks
02LIST— → one reply per module: index, state, kind, version, size, address, name[24]; index FF ends
10BEGINsize, CRC-32, name[24] → status (the module stops)
11DATAoffset, ≤ 256 bytes → status
12COMMIT— → status, flash address (written, checked, running)
13ABORT—
14DELETEname[24] → status
20LOGfrom → status, log length, at, up to 180 bytes
21SAFE— → status (the sine plays)
22SELECTname[24] → status
30RUNrun id, argument (after BEGIN / DATA) → status, then the result
31RESULTfrom → state, id, rc, ticks, length, PC, at, output

Status codes

0 done · 1 bad CRC · 2 bad header · 3 too big · 4 no space · 5 flash error · 6 verify failed · 7 data missing · 8 not started · 9 not found · 10 bad message

Module states

0 ok · 1 bad CRC · 2 bad header · 3 too big · 4 crashed · 5 init failed · 6 too slow

A module file (.dock)

An 80-byte header (magic "HRBR", ABI, flags, name, version, code / data / bss / ram_text sizes, measured worst cycles, descriptor offset, base, relocation count, CRC-32), the relocations, then the image on a 256-byte boundary. Whoever moves it adds the difference to each relocated word, which is how one file lands anywhere in the deploy area.

Implementations: tools/hbdeploy.py (Python), dock.js (this page), and the device side in firmware/src/dock.c.

Credits

fm1-dock, FM-1 SID and Scintilla: Joakim Eriksson. OberVave: zvenson. CS-1: twochannels. AMB-1 and FoMni: Charles Vestal. fm1-dock stands on Dinghy (zvenson), on the platform of Felucca (Leo Kuroshita, Hügelton Instruments) as SLOOP (isod89) carries it. reSID by Dag Lem; the SID tunes by their composers (Martin Galway, Rob Hubbard and friends). The keys' force sensing comes from Velo, by way of CS-1.

GPL-3.0-only. Not affiliated with M-VAVE. Installing firmware is at your own risk; the USB rescue (OCT− at power-on) is always there.