Skip to content

synths legacy lsdw

Aisjam edited this page Nov 15, 2026 · 1 revision

LSDW

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

Legacy model 16 (decimal). Hidden from normal creation/swap selection. Load an existing compatible CTS/project and open its assigned synth to edit it; cancelling Swap preserves the old engine.

Sound architecture

Packed 16×32 four-bit generated frames; CLASSIC held/CLEAN linear playback, tick sequencing, mono/poly

Limits: Original LSDj-inspired mappings; not bit-exact emulation; see dedicated report

Editing and audition

  1. Save a copy of the loaded project before changing the patch.
  2. Open Synth Edit from its managed synth assignment.
  3. Trigger a note in Phrase and edit one parameter at a time with A+directions.
  4. Use the output controls to compare levels; use OFF/CUT to compare release behaviour.
  5. Save CTS for the patch and CTP for the complete arrangement.

LSDW now implements the existing oscillator ID 16. LUT remains 17 and FM4 remains 18; the registry still has 19 entries. It is an original LSDj-inspired generator, not a bit-exact LSDj or Game Boy emulator. The implementation stays in the existing SDL-free core/audio/osc library and uses the shared Synth/VoicePool backend.

Generator and playback

Each immutable bank is exactly 256 bytes: 16 frames of 32 unsigned four-bit samples, with the earlier sample in the high nibble. A voice borrows the bank and owns its phase and frame clock. Settings, custom source and edited-frame overrides are separate from generated storage.

Each frame uses START/END controls interpolated at frame / 15, rounded to an integer before synthesis. The source is square, saw, triangle or an edited custom cycle. Generation applies the spectral filter, phase shaping, gain and vertical shift, then clipping/folding/wrapping and final four-bit quantization. It does not crossfade the endpoint PCM. Manual frame overrides survive generator changes, modulation, project saving and CTS export.

LP, HP and BP use an original second-order spectral response evaluated on the 32-sample cycle. AP currently means unity response (bypass), with no phase shift. Cutoff maps 0–255 to 0.25–16 harmonics; Q maps 0–15 to 0.70710678 + 0.35Q. Volume is 0–255, with 128 unity; phase is 0–31; shift is −15–15 and limit is 0–15. Normal phase compresses into 32 - phase samples and fills the rest with the zero-centred source baseline. Resync repeats the compressed cycle; Resyn2 repeats the first 32 - phase source samples without compression. Fold reflects overflow around 0 and limit; wrap uses a range of limit + 1. These numerical mappings and the ordering after phase are explicit Contour approximations.

CLASSIC is the default: held 32-step samples, discrete frame changes, unsigned right shifts for hardware-inspired output levels, and optional pitch-divider quantization. Frequency is 65536 / (2048 - period), period 0–2047. The phase accumulator is unsigned 32-bit; increments are cached on pitch/rate changes. Output levels are mute, full, >>1 and >>2 before DAC normalization, so the lower levels retain the corresponding DC offset. Analog high-pass behavior, startup sample delays, wave-RAM bus access quirks and hardware envelopes are not emulated.

CLEAN reads the same packed bank with linear interpolation and four subsamples averaged per output sample. It reduces table images but is not alias-free and does not smooth frame changes. It never rewrites source samples. CLASSIC must not be replaced by LUT NORMAL/HQ; its held samples and aliasing are intentional.

MANUAL holds FRAME; ONCE holds the final endpoint; LOOP wraps to LOOP POSITION; PINGPONG reflects without duplicating endpoints. SPEED is tracker ticks per frame and is independent of pitch. LENGTH is 1–16; FRAME and LOOP clamp inside LENGTH. Forward playback includes frames before the loop point once. Note retrigger resets phase and frame; the existing FREE oscillator trigger retains reused slot state. MONO defaults to one voice per synth module; POLY uses the shared allocation limit.

Controller editing

Create an LSDW module in Synths and open Synth Edit. X opens the LSDW editor. X cycles generator, generated frames and custom-source pages.

  • Generator: D-pad selects a control, A+D-pad changes it (up/down steps by 16). Select PRESET with A+D-pad, then press A to load it. B returns to Synth Edit.
  • Frames: D-pad selects a sample, A+D-pad changes its value, L1/R1 selects a frame. The first edit preserves the whole frame as a manual override. B restores that frame to generated data. The plot and numeric cells show all 32 samples.
  • Custom: edit the source's 32 packed samples with D-pad/A+D-pad; select CUSTOM as SIGNAL to use it. B returns to Synth Edit.

Factory programs are GRIT BASS, WAVE KICK, DIGITAL SNARE, PWM LEAD, METAL, SOFT TRI, FOLD LEAD and WAVESHIFT. They require no external sampled audio. Existing V-register overrides still take precedence over program playback settings.

Tracker and modulation

Existing phrase FX IDs are reused; no command is renumbered:

Command LSDW control Values
V1 Frame 00–0F
V2 Ticks per frame 01–FF
V3 Length 01–10
V4 Loop position 00–0F
V5 Mode 0 manual, 1 once, 2 loop, 3 pingpong
V6 Reverse 0/1
V7 Output level 0 mute, 1 full, 2 half, 3 quarter
V8 Divider quantization 0/1
V9 Quality 0 CLASSIC, 1 CLEAN
VA Polyphony 0 mono, 1 poly
VD Amplitude Existing shared scaling
VE Playback phase offset Existing shared scaling

VB/VC/VF are reserved for this model. Existing table pitch, volume and pan hooks, TBL selection, notes, OFF/CUT, PRE selection and shared voice stealing continue through the existing backend. Table rows do not gain new V-command support.

LSDW no longer applies legacy M1–M4 generators, fallback destinations or routes. P1A–P4D modulation FX are ignored, and the legacy matrix and MODULATE tool are hidden. Saved slots and destination IDs 15–28 remain readable and are preserved on save, but no longer alter frame, speed, pitch, amplitude or generated waves. Existing presets using that modulation will sound different.

The reusable generation-request API and off-thread bank preparation remain for synth architectures to own explicitly. Generic LSDW playback does not publish generation requests. V controls, Table pitch/gain/pan, frame playback and the manual generator/frame editor remain available. Frame/phase state remains independent for each voice.

Fidelity evidence and limits

The LSDj manual, synth pages 26–29 confirms the source/filter choices, filter-before-phase order, phase range and the three phase behaviors. It does not supply the exact filter coefficients or every numerical mapping used here. FOLD and CLEAN are Contour extensions. The Pan Docs wave-channel registers document packing, divider frequency and output shifts. The wave-cruncher format documentation also describes sixteen packed waveform frames; Contour does not import SNT files.

No paired real-LSDj settings/waveform/audio reference was available for numerical comparison. Tests verify Contour's stated behavior, not equivalence to LSDj. Reference matching and listening comparisons remain required before any stronger fidelity claim. Physical H700 timing and on-device test execution also remain outstanding; cross-compilation alone does not establish them.

Modulation and compatibility

Generic oscillator models no longer execute the former generic M1–M4 modulators/routes. Existing saved fields round-trip but do not produce that old modulation. Primary matrix FX, Table pitch/gain/pan and normal host note ramps remain available. WAVE/GRAIN need prepared external resources. BUZZ LEGACY does not become the new BUZZ when loaded.

What should be here

Documentation still to add
A preserved legacy CTS example and a model-specific audit of which generic register controls are active; a listening comparison against its original saved version.

Evidence and verification

Repository sources used for this page:

  • docs/oscillators.md
  • src/core/audio/osc/OscillatorTypes.hpp
  • src/core/audio/osc/SynthControls.hpp

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally