Skip to content
altstrument

fm1-playwright

Tool for FM-1 (M-VAVE)

Python test harness that drives the fm1-emu emulator with Playwright, so FM-1 firmware screens can be tested by turning encoders, pressing buttons and playing notes, and captured as screenshots, GIFs, video and audio.

by DimmKirr

ActiveSource: openMIT
M-VAVE FM-1 FM synthesizer, top view
Photo: M-VAVE, manufacturer product image, via m-vave.com
Distribution
Build from source yourself
Source
github.com https://github.com/DimmKirr/fm1-playwright

Description

Provides a FirmwareUITest base class for unittest-style tests that open a firmware in the browser build of fm1-emu. Tests can rotate encoders, press and hold buttons, play notes and save screenshots of the whole device or of the 240x240 screen. Recording helpers write GIFs and webm video, capture the emulator's Web Audio output and convert or combine it into MP3 and MP4 with ffmpeg. It is meant to run in CI together with the same author's setup-fm1-emulator action, and the repository's own workflow publishes demo captures of Felucca. Audio capture needs ffmpeg and PulseAudio, and a headed browser in CI needs Xvfb. The emulator itself is Joakim Eriksson's fm1-emu.

Install notes

The README gives pip install fm1-playwright followed by playwright install chromium, but the package was not on PyPI when checked, so install it from a checkout of the repository. Point FM1_WEB_DIR at an fm1-emu WebAssembly build, for example the one setup-fm1-emulator installs, and set FIRMWARE_NAME. The repository includes a Nix flake that provides ffmpeg, PulseAudio, Xvfb and Chromium.

Version history

fm1-playwright version history
VersionDateNotes
v0.2.02026-10-26
Adds audio capture and video recording with MP3, MP4 and GIF conversion, a Nix dev shell and a CI demo workflow.
v0.1.02026-10-26
First release, with the FirmwareUITest base class, FM-1 control mappings and an example test suite.

Back to FM-1