serum-render
Batch-render Serum presets to audio files. Supports Serum 1 (.fxp) and Serum 2 (.SerumPreset), on Windows and macOS, using DawDreamer as the headless engine.
One render core shared by the sequential, parallel, and CLI paths, typed jobs, stock-install plugin defaults, and a first-class answer to render reproducibility. Scope is Serum 1 + Serum 2 only, permanently.
How it works
- Each worker process builds one DawDreamer engine per preset format, once. Jobs hot-swap presets on the matching engine (
load_presetfor.fxp;convert → load_statefor.SerumPreset, decoded byserum2-preset-loader). The audio graph is never rebuilt mid-batch. - A loky pool fans jobs out across CPU cores; mixed-format batches dispatch per preset by file suffix.
- A warmup render at engine build absorbs Serum 2's first-render lazy-load anomaly.
Requirements
- Windows or macOS, Python 3.11–3.12
- One or both of:
- Serum 1 for
.fxppresets — the VST2 binary. macOS:/Library/Audio/Plug-Ins/VST/Serum.vst. Windows:C:/Program Files/Common Files/VST3/Serum_x64.dll(the 64-bit VST2 really does live in the VST3 folder). The VST3 build of Serum 1 will not load.fxpcorrectly. - Serum 2 for
.SerumPresetpresets — the VST3. macOS:/Library/Audio/Plug-Ins/VST3/Serum2.vst3. Windows:C:/Program Files/Common Files/VST3/Serum2.vst3.
- Serum 1 for
- A valid Serum license on the machine (DawDreamer does not bypass authorization).
Install
pip install serum-render
CLI
If Serum is installed in the standard location, plugin flags are optional — serum-render finds it:
serum-render "~/Documents/Serum Presets/Leads/" ./output/
Explicit plugin paths override the defaults:
serum-render presets/ output/ \
--serum1 "/Library/Audio/Plug-Ins/VST/Serum.vst" \
--serum2 "/Library/Audio/Plug-Ins/VST3/Serum2.vst3"
A directory containing both .fxp and .SerumPreset files renders as one mixed batch. Common options:
| Flag | Default | Purpose |
|---|---|---|
--serum1 |
auto | Serum 1 plugin path (VST2 binary). Needed for .fxp input. |
--serum2 |
auto | Serum 2 VST3 path. Needed for .SerumPreset input. |
--note |
48 |
MIDI note (0–127). Mutually exclusive with --midi. |
--velocity |
127 |
MIDI velocity (1–127). |
--duration |
1.0 |
Note-on duration (s). |
--tail |
1.0 |
Release silence after note-off (s). |
--sample-rate |
44100 |
Output sample rate. |
--bit-depth |
16 |
16, 24, or 32f. Applies to wav and flac (flac takes 16 or 24). |
--format |
wav |
wav, flac, ogg (Vorbis, fixed quality), or npy (raw float32 stereo array). |
--filename-template |
{preset} |
Vars: {preset} {note} {velocity} {folder} {subpath}. |
--midi |
— | Render a .mid file instead of a single note. |
--workers |
-1 |
Parallel workers; -1 = cpu_count - 1. |
--skip-existing |
off | Skip presets whose output already exists. |
--keep-mpe |
off | Keep each Serum 2 preset's own MPE settings. See MPE. |
--multisample-wait |
10 |
Seconds between loading a Serum 2 preset that uses MultiSample and its first note; 0 turns it off. See MultiSample presets. |
--skip-missing-format |
off | Render what the installed plugins cover instead of refusing the whole batch. |
--no-recurse |
off | Don't descend into subdirectories. |
--dry-run |
off | Print the render plan and exit. |
--json |
off | Emit machine-readable events on stdout (see below). |
Run serum-render --help for the full list.
Machine-readable output
--json writes one JSON object per line to stdout and moves every
human-readable line to stderr, for driving serum-render from another
program:
{"event":"start","schema":1,"total":4271,"workers":7,"provenance":{"started":"2026-10-26T20:02:37+00:00","serum_render":"0.6.1","serum2_preset_loader":"0.6.1","plugins":{"serum1":"1.368","serum2":"2.1.5"}}}
{"event":"job_start","path":".../Bass 1.fxp"}
{"event":"result","status":"ok","path":".../Bass 1.fxp","peak":0.3325,"preset_version":null}
{"event":"result","status":"ok","path":".../Lead.SerumPreset","peak":0.2693,"preset_version":"2.0.11"}
{"event":"result","status":"skipped","path":"...","reason":"exists"}
{"event":"result","status":"error","path":"...","error":"..."}
{"event":"done","ok":4268,"skipped":0,"failed":3,"elapsed":612.4}
--dry-run --json emits the start event alone and exits. Exit codes
are unchanged: 0 clean, 1 some renders failed, 2 usage or
validation error. Validation errors write to stderr and produce no
events, so exit 0 always means at least one done event — a run that
found no presets still emits start with total: 0 and a zeroed done.
Two rules for consumers. Reject an unrecognised schema rather than
guessing at the shape. And skip any stdout line that fails to parse:
loky workers inherit the parent's stdout, so a plugin printing from C
could in principle interleave with the stream — trust the counts in
done over a local tally of result events.
job_start fires when a preset is handed to a free worker (jobs are
submitted one per free worker, so it is the actual start, not a queue
position). Its path is the exact string the matching result carries;
pair them to show what is in flight and how long each preset took.
If a worker process dies (a plugin crash, an out-of-memory kill), the
batch stops: done still arrives, with an additional aborted string
saying so, and the exit code is 1. Re-run with --skip-existing to
resume.
A skipped result carries a reason: exists when --skip-existing
found the output already written, or no_plugin when
--skip-missing-format dropped a preset whose plugin is not installed.
Both are counted in done's skipped, and both are inside start's
total — total covers every preset the run reports on, not just the
ones it renders.
provenance names the versions that made the run. A plugin version is
read from the bundle's Info.plist on macOS and is null elsewhere. An
ok result's preset_version is the Serum version the preset was saved
with (null for Serum 1). When the preset file's header names a different
version than its body, the result also carries preset_header_version
and "preset_version_mismatch": true. If the version can't be read, the
render still goes ahead: preset_version is null and
preset_version_error says why.
Provenance log
Every run, with or without --json, appends one line per written file
to serum-render-provenance.jsonl in the output folder: the file's path
relative to that folder, the preset, its version fields and the run's
provenance. A run that writes no files leaves no log. To find the files
a given loader made:
grep '"serum2_preset_loader": "0.6.1"' out/serum-render-provenance.jsonl
A re-render of the same file appends a new line, so the last line for an
output describes the file on disk. A file with no line at all predates
the log.
To check a whole folder against the versions installed now (and, optionally, that every preset in a list got a line), run from a checkout:
.venv/bin/python scripts/verify_provenance.py out/ [presets.txt]
It exits 1 on a version mismatch, a flagged preset, a listed preset with no line, or a logged file that is missing.
The output shape is unstable until 1.0.
Library API
from serum_render import RenderConfig, Renderer, ParallelRenderer, render_preset
config = RenderConfig(
serum1_plugin_path="/Library/Audio/Plug-Ins/VST/Serum.vst",
serum2_plugin_path="/Library/Audio/Plug-Ins/VST3/Serum2.vst3",
note=48,
duration=1.0,
tail=1.0,
)
# Sequential — one engine per format, reused across renders
with Renderer(config) as r:
audio = r.render("lead.fxp") # auto-detected as Serum 1
audio = r.render("pad.SerumPreset") # auto-detected as Serum 2
# Parallel mixed batch — dict of path -> (2, N) float32 array
with ParallelRenderer(config, workers=-1) as r:
results = r.render_batch(["a.fxp", "b.fxp", "c.SerumPreset"])
# One-off
audio = render_preset("lead.fxp", config)
Set only the plugin paths for the formats you render; a missing path for a format actually present in the batch raises ValueError naming the field, before any worker boots.
MPE
MPE is off by default, as with a fresh Serum instance, whatever the preset file says. --keep-mpe (RenderConfig(keep_mpe=True)) restores the file's MPE settings, for MIDI files written for MPE. A run with it records "keep_mpe": true on each Serum 2 line of the provenance log.
Single notes and MIDI files on one channel rendered the same either way in the check behind this default. Files that send on member channels can differ, mostly through channel pressure, on presets that respond to it. The option has no effect on Serum 1 presets.
MultiSample presets
Serum 2 loads MultiSample audio on background threads and nothing waits for it, so a note that arrives before a region's sample is ready plays nothing for that region. An offline render reaches its first note in milliseconds, so it can come out partial or silent. serum-render waits between the load and the first note, only for Serum 2 presets with a MultiSample oscillator. Other presets, and Serum 1, never wait.
The default is 10 seconds (--multisample-wait, RenderConfig(multisample_wait=...)), chosen from docs/multisample-wait-2026-11-05.json: the longest any preset needed was 5 seconds, at the parallel worker counts. Each MultiSample preset costs one worker that long. The full 778-preset library at 7 workers went from 117 to 326 seconds. A slower disk or a first read of samples not yet in the file cache may need more than was measured; lower it only if you check your own presets.
Reproducibility
By default, batch renders are not bit-reproducible: Serum keeps internal DSP state across consecutive renders (LFO phase, envelope residue, lazy-loaded sample data), so a preset rendered mid-batch differs from the same preset rendered alone — measured at 97% of factory presets.
--deterministic (or RenderConfig(deterministic=True)) fixes this: every preset renders in a fresh single-use process, fanned out across your worker count, making batch output bit-identical across runs and render orders. The cost is one plugin load per preset instead of per worker — use it when reproducibility matters (ML datasets, regression baselines), skip it when you just want samples fast.
serum-render presets/ output/ --deterministic
Why a whole process per preset? Serum 2 can be reset by reloading the plugin in place, but Serum 1 keeps state in library-level globals that survive even a full engine rebuild — only process isolation resets both. Probe data and methodology: docs/decisions.md, raw numbers in docs/determinism-probe-2026-07-16.json. Full caveat list: KNOWN_ISSUES.md.
Development
python3.12 -m venv .venv
.venv/bin/pip install -e ".[dev]"
# fast unit tests (no plugin required)
.venv/bin/pytest tests/ --ignore=tests/test_serum1_smoke.py --ignore=tests/test_serum2_smoke.py
# integration smokes (real Serum installs; each half gated independently)
.venv/bin/pytest tests/test_serum1_smoke.py tests/test_serum2_smoke.py \
--serum1-plugin-path "/Library/Audio/Plug-Ins/VST/Serum.vst" \
--serum2-plugin-path "/Library/Audio/Plug-Ins/VST3/Serum2.vst3" \
--serum1-preset-dir "$HOME/Documents/Serum Presets/Leads/" \
--serum2-preset-dir "$HOME/Documents/Serum 2 Presets/Pads/"
Env vars SERUM1_PLUGIN_PATH, SERUM2_PLUGIN_PATH, SERUM1_PRESET_DIR, SERUM2_PRESET_DIR work as flag alternatives.
License
GPL-3.0 (inherited from DawDreamer).
Metadata
Release files for serum-render 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serum_render-0.7.1.tar.gz | 130.4 kB | With provenance | Details for serum_render-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serum_render-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for serum_render-0.7.1-py3-none-any.whl |
Total release size: 182.3 kB
Release files / serum_render-0.7.1.tar.gz
| Download URL | serum_render-0.7.1.tar.gz |
|---|---|
| Size | 130.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0329ff973fa7cae559e8017ee3466909bd8929650ab2c8b42e69d292a24d3b29
|
|
BLAKE2b-256 checksum How to use checksums |
573009cdce84f052d004252bbb431a654929cdb4794860fad8f28a35fe1c5d7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / serum_render-0.7.1-py3-none-any.whl
| Download URL | serum_render-0.7.1-py3-none-any.whl |
|---|---|
| Size | 51.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e94015ae08dd1de3a5e37e2a30a1d64f94a12eceda4a413caa9c24f0c4acb7cf
|
|
BLAKE2b-256 checksum How to use checksums |
b3f0d3e23dc95f93ec728829357fc69db40e36e3811c880ad62b0fe1cf0c4a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for serum-render 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for serum_render-0.7.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.