Skip to content

UNGEMACH: draft of a dissonant drone track machine - #2081

Open
GnocchiBalboa wants to merge 11 commits into
repeat98:mainfrom
GnocchiBalboa:module/ungemach
Open

GnocchiBalboa wants to merge 11 commits into
repeat98:mainfrom
GnocchiBalboa:module/ungemach

Conversation

@GnocchiBalboa

Copy link
Copy Markdown

A new module, experimental draft (not listed yet): UNGEMACH 0.1.0-experimental, in sdk/drafts/ungemach/.

UNGEMACH is a track machine for the Octatrack over the Modwerk USB base. It renders a dissonant, living drone (or alternatively stabs, depending on the AMP-page settings) on the ColdFire, for dark techno, horror soundtracks or the like.

  • sixteen detuned voices in three groups, an octave sub and noise;
  • a resonant low-pass filter and saturation, in stereo.

Controls:

  • SRC: PTCH (root), DISS (the chord, from unison to a scream; the pitch rises with the knob), TONE, WAVE (32 original waveforms from dull to shrill), RATE (free drift from 0.02 to 2 Hz, or a pulse synced to the track from S16 to S2) and DIRT (resonance, drive and phase push).
  • SRC SETUP: SPRD (stereo width) and PNCH (a punch on every trig).

Compatibility:

  • One track per Part (admit_track, as in SYNTIZ).
  • It contributes to ot_machines and subscribes to ev_play_increment.
  • It patches no stock bytes, takes no key gestures or screens, and every byte it keeps is a valid FLEX value.

Attribution: original work by GnocchiBalboa, MIT. It reads the sequencer's clock, tempo and track speed at the RAM locations Euclid reads; no code is copied from Euclid.

Tested on a unit: the author's Octatrack MKI, OS 1.40C, Modwerk USB base 0.7.10 (6070a4e4). Diagnostic builds of this exact engine (the same source with UG_DIAG) were kept and played in the author's full live set, with seven Flex tracks and every control turned, for about 10 minutes per session on 22 November 2026. The author heard no dropouts.

  • Render time: a mean of 37-43 µs a frame, and 49-60 µs in some stretches with the same settings.
  • Skipped frames: in 63 % of the playing seconds none were skipped. At busy moments, up to a few dozen a second were skipped, under 2 %.

The release package of this source has not itself been on a unit. device:qualify has not been run. Details are in TESTING.md.

Edge cases

Case Why this change makes it a risk How run Result
A second UNGEMACH track in a Part Two tracks would overrun the frame interrupt Picked it on T2 with T1 already UNGEMACH, on a second MKI (package v32) pass: refused; T2 could pick it after T1 went back to FLEX
Full live-set pattern ColdFire render in the frame interrupt Kept on the live-set MKI, played about 10 min pass: no dropouts heard; a few skipped frames a second at busy moments
LFO on DIRT, locks on PTCH, crossfader scene Controls read from the parameter record each frame Played on the live-set MKI pass: DIRT followed the LFO in the log; locks and scene audible
Synced RATE with the sequencer stopped Its phase comes from the tempo while stopped Measured on the live-set MKI pass: 36-37 µs, the pulse ran
PNCH 127 on every trig, DIRT 127 Level and DC Host test under UBSan/ASan pass: peak -6 dBFS, DC removed
Project opened without the module Stored bytes must read as FLEX not run yet not run: next step
Part and bank change, power cycle after a Keep Persistence not run yet not run: next step, with device:qualify
MKII Other unit not run not run: the author has MKIs only

Performance and #1790: one UNGEMACH track costs about 10-17 % of the 363 µs frame. That is over the 10 % ColdFire rule, so listing it will need an owner waiver like SYNTIZ's.

The high-mean stretches never coincide with skipped frames. With the same settings, the mean dropped from 58 to 43 µs within a minute. Each sequencer stop shows one second at 44-53 µs. That points at base or stock state, not the module's settings. The measurements are on #1790.

What the guides lacked or got wrong:

  • On Windows, module:doctor and modules:compat fail with 'charmap' codec can't decode byte 0x8f unless Python runs in UTF-8 mode (PYTHONUTF8=1). Octabam's ledger reads a source file without an explicit encoding. That is a tooling fix for its own Fix: PR.
  • The module scaffold left another author's copyright line (with the octamax notice) in the draft's LICENSE.
  • A finding for docs/module-guides/machines.md, in its own Docs: PR: on the MKI, a ColdFire render loop's code size mattered more than its instruction count.
    • An -O2 build of the same loop was about 10 µs slower a frame.
    • Unrolled voice sums beat loops by 3-6 µs.
    • Per-call state in BSS is slow; it belongs in .data.

No check can prove these, so you vouch for them:

  • Changing a module someone else wrote: its author said yes before I started, and I link it here. (Not applicable: my own new module.)

  • I read the guide for its category in docs/module-guides/ (and sequencing.md if it acts in time), and TESTING.md lists what I did not test. An effect module holds one effect.

  • Source and media are mine or properly licensed, with authors and full licence texts kept. Nothing comes from Elektron firmware: no extracted code or tables, upgrade files or factory content, and nothing is modelled on another current Elektron product.

  • Screenshots are real captures of the current module UI. Hardware results are what a named person saw on this exact build; emulator results are labelled as emulator results. (No screenshots yet; the hardware results name their builds in TESTING.md.)

  • Automatically merge and publish my module update after checks pass.

  • I verified the source, licences, UI and qualification reports, including instance isolation and Part/project/reboot persistence where applicable; no required acceptance check is failed or untested.

Validation commands and results:

  • npm run module:doctor -- --draft ungemach (with PYTHONUTF8=1 on Windows): the experimental lines are green; the release lines are still to do (catalog entry, CPU price, packages, qualification).
  • python3 -B sdk/drafts/ungemach/test_ungemach.py in a Linux container: 2 tests OK.
  • The engine after cleanup rendered 30,000 moving frames identically to the build played on the unit (v68).
  • npm run pr:ready has not run yet; it follows before the PR is marked ready.

Related to #1790

🤖 Generated with Claude Code

A ColdFire track machine for the Octatrack MKI over the Modwerk USB base:
sixteen detuned voices in three groups, a sub and noise, a resonant
low-pass and saturation, in stereo. SRC: PTCH, DISS, TONE, WAVE, RATE,
DIRT; SRC SETUP: SPRD, PNCH. One track per Part.

Experimental draft in sdk/drafts/ungemach: host tests pass, the author
played it on an MKI with base 0.7.10; CPU price, device:qualify,
captures and the owner's review are still to do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evidenceRevision named c07f3b1, a commit on main that has no ungemach, which
modules:check refuses. Name this branch's commit, which holds the engine the
TESTING.md runs played (the cleaned-up engine renders identically to the build
played on the unit, v68).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 24, 2026 09:20
GnocchiBalboa and others added 3 commits November 24, 2026 10:30
modules:check requires TESTING.md to say what ran on this version: the
source is v68d's engine with the measurement code compiled out; its
release package has not been on a unit yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 enabled auto-merge November 24, 2026 09:39
auto-merge was automatically disabled November 24, 2026 10:08

Head branch was pushed to by a user without write access

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants