Skip to content

Wave Emulation 0.1.13-resizable - #2

Open
Bronislavus wants to merge 31 commits into
mainfrom
v0.1.13-resizable
Open

Bronislavus wants to merge 31 commits into
mainfrom
v0.1.13-resizable

Conversation

@Bronislavus

Copy link
Copy Markdown
Owner

Ports the window improvements to upstream Wave Emulation 0.1.13 (which already has zoom, a hideable keyboard area and the compact skin).

Changes

  • The editor opens at a size that fits the screen instead of 2338 px wide.
  • Zoom and keyboard visibility are remembered between sessions (separate zoom for the compact skin).
  • System → Fit to Screen (Cmd/Ctrl + Shift + 0); minimum zoom 40 %.
  • Installer: RELEASE_LABEL (default 0.1.13-resizable), author and modification notice, GPL Read Me page, complete source zip on the DMG.
  • build-mac.sh for quick local builds.

The fork's previous 0.1.6-resizable changes are merged with the "ours" strategy: their window features are superseded by upstream 0.1.13 plus this port.

Testing

  • Built on Linux; WavePublicEditorTests pass (original size via WAVE_EDITOR_DESIGN_SIZE=1).
  • Headless check: first open on a 1512×982 screen → 1450×646; hiding the keyboard and zooming are remembered on reopen; Fit to Screen restores 1450 px width.
  • macOS build and DAW test still to be done on the Mac.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BeaL9KNGP9xsWYpXq6Ryda


Generated by Claude Code

mo0kid and others added 30 commits September 29, 2026 03:20
Wave RAM is at board 0x040000 (A) / 0x050000 (B) with a write-both alias at
0x060000, not 0x600000. The voice bus also fell through to master DRAM below
0x100000, so WDV wave-RAM stores landed in the master heap. The board now sees
only its private 64 KB, the shared SRAM and its devices.

The shared SRAM is 512 KB (0x100000-0x17FFFF); drop the 0x180000 extension
decode on both buses so accesses above it count as unmapped.

Verified: ctest passes (4/4) at this commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…esses

Table 0x25E8 follows 8*n^2 except index 6 (-29912), 126 (31000) and 127
(32767). The oscillator asr.l mo0kid#3 sites are 0xE14/0xECA, not 0xE34/0xEEA.

Verified: ctest passes (4/4) at this commit. No test covers the table values.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A nonexistent firmware path fell back to its parent directory, so the
recursive image search walked "/" and effectively never returned. Only step up
to the parent when the path is an existing file.

Verified: ctest passes (4/4) at this commit; the new WaveCoreTests case covers the missing-path load.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 23 August note predated the firmware mapping. Replace it with the
findings from mapping and running both OS 1.700 images (main OS and the
WDV voice-board program) in a 68000 oracle: corrected hardware map,
master-to-voice-board protocol, modulation-table facts, reproduced
firmware bugs, remaining open questions and next steps. The full map,
firmware and gates stay outside the repository.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WaveVoiceTrace boots the real WDV.SYS in VoiceFirmwareRuntime from a small
command script (poke, until_pc, scan, run, mark) and prints the logged
ASIC/CV write stream with cycle stamps. The firmware repo's
oracle/gate_e_wdv_note_trace.py runs the same script on the Musashi oracle
and diffs the two: one note on voices 3 and 9 matches in order, value and
cycle across all 11,146 checks. Both sides use the same 68000 core, so this
checks bus decode, shared RAM and IRQ plumbing, not the ROM.

The tool is EXCLUDE_FROM_ALL and needs no ROMs at build time. The research
note's next-step checkbox is ticked with the result and the gaps found: the
routing latch (0x8C0000) and board-control latch (0x800001) are neither
logged nor decoded, and the engine's firmware register shadow is unused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WDV writes the write-only routing latch (0x8C0000, 8 bytes per voice) but the
voice board neither logged nor decoded it, so the emulator-vs-oracle diff could
not cover it. VoiceFirmwareRuntime now queues those writes with the ASIC/CV
writes (the engine still ignores them) through one queueHardwareWrite helper.
WaveVoiceTrace takes an optional board argument (0-2) so the gate can run all
three voice boards.

The research note records the routing latch layout, the resolved board limit
(3) and three emulator assumptions that disagree with the firmware map; none
of those are changed here.

Verified: ctest passes (4/4). gate_e_wdv_note_trace.py runs boards 0-2 against
the Musashi oracle: 35,004 checks, 0 failures. Both sides use the same 68000
core, so this checks bus decode and plumbing, not the ROM or the hardware.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The plugin edited Instrument part byte +8 as Audio Out, a byte nothing
consumes. The firmware page table 0x14BCA and WDV 0xBC6 use +0xC (0 Aux only,
1 main, 2 sub 1, 3 sub 2). The engine now keeps the firmware value and only
main reaches the plugin output.

Verified: WaveCoreTests incl. the new Audio Out routing test. WaveEditorTests
needs the private firmware assets and was not run; its Audio Out fader check
now expects +12.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The wave start-modulation routes add to Startphase (sound byte 27/43) in WDV
0xF92 (Wave 1) / 0x1074 (Wave 2); a Startphase of 0 is a free start and ignores
the route. The engine offset the wave position instead.

WaldorfEngine::startPhaseCode reproduces the firmware's key-on phase code:
amount table 0x25E8 x source word through 0x246C, summed in 16-bit words. The
two waves do not clamp alike - Wave 1 compares signed, so its 8-bit result
wraps (64 + 127 gives 191); Wave 2 compares unsigned, so any result outside
1..126 becomes 127. The earlier "clamp to 1-127" description was wrong outside
the nominal range. Bit 7 of the 8-bit code is assumed ignored by the ASIC
(hardware-unvalidated).

Tests: golden table executed on the WDV in the Musashi oracle, free start,
fixed phase, positive/negative modulation, clamping, an engine-level note-on
check, and - with WAVE_FIRMWARE_DIR set - the same cases run through the real
WDV in VoiceFirmwareRuntime and compared with the ASIC phase-load write.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fixed Linux build error using GCC 16.
…zoom

Builds on upstream 0.1.13, which already has zoom, a hideable keyboard area
and the compact skin. This adds:
- The editor opens at a size that fits the screen instead of 2338 px wide.
- Zoom and keyboard visibility are remembered between sessions (separate
  zoom for the compact skin).
- System > Fit to Screen (Cmd/Ctrl + Shift + 0); minimum zoom 40 %.
- Editor tests keep the original size via WAVE_EDITOR_DESIGN_SIZE.
- Installer: RELEASE_LABEL (default 0.1.13-resizable), author and
  modification notice, GPL Read Me page, source zip on the DMG.
- build-mac.sh for quick local single-architecture builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeaL9KNGP9xsWYpXq6Ryda
Without PACE wrapping the AAX bundle cannot load in Pro Tools and, being
unsigned, makes Apple notarization of the package fail. With SKIP_WRAP=1 it
is now omitted (override with INCLUDE_AAX=1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeaL9KNGP9xsWYpXq6Ryda
Certificate names with non-ASCII letters were mangled on the way to
codesign/productbuild and reported as 'no identity found'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeaL9KNGP9xsWYpXq6Ryda
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.

5 participants