Skip to content

synths opal 2

Aisjam edited this page Nov 15, 2026 · 1 revision

Opal-2

Home · Section index

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

Current synth model 32 (decimal). Create it in Synths with A on an empty cell, choose Opal-2, then enter Synth Edit. Existing projects can also reach it from a Phrase synth reference.

D-pad selects a control. Hold A with Left/Right for a fine edit or Up/Down for a coarse edit. Double-A restores a supported control default. Output GAIN/PAN/DRY/SB1–SB4 belongs to the shared output section. Save the project for allocation and arrangement; export CTS for a reusable patch.

First sound

Use EXTENDED with FM, sine waves and ratios 1:1 (stored byte 10 hex for each). Hold a note and raise MOD DEPTH. Shorten the modulator DECAY and lower its SUSTAIN while keeping the carrier envelope longer to make a bright attack decay into a simpler tone. Compare ADD/RING/MIX at a matched output level; not every FM control remains audible in every route.

These are suggested starting exercises derived from the controls, not newly auditioned factory presets. Shared synth workflow explains allocation and saving.

Default parameter values

Defaults below are decimal, followed by their hexadecimal byte. These are stored controls, not physical units. The model-specific mapping below defines seconds, hertz, ratios and enumerations.

Matrix Tracker FX Control Default decimal / hex Meaning
PA1 P1A ALGORITHM 0 / 00 See parameter mapping below.
PA2 P1B MOD WAVE 0 / 00 See parameter mapping below.
PA3 P1C CAR WAVE 0 / 00 See parameter mapping below.
PA4 P1D MOD RATIO 16 / 10 See parameter mapping below.
PB1 P2A CAR RATIO 16 / 10 See parameter mapping below.
PB2 P2B MOD DEPTH 80 / 50 See parameter mapping below.
PB3 P2C FEEDBACK 0 / 00 See parameter mapping below.
PB4 P2D OP MIX 128 / 80 See parameter mapping below.
PC1 P3A MOD ATTACK 4 / 04 See parameter mapping below.
PC2 P3B MOD DECAY 90 / 5A See parameter mapping below.
PC3 P3C MOD SUSTAIN 160 / A0 See parameter mapping below.
PC4 P3D MOD RELEASE 64 / 40 See parameter mapping below.
PD1 P4A CAR ATTACK 4 / 04 See parameter mapping below.
PD2 P4B CAR DECAY 80 / 50 See parameter mapping below.
PD3 P4C CAR SUSTAIN 200 / C8 See parameter mapping below.
PD4 P4D CAR RELEASE 64 / 40 See parameter mapping below.

Model reference

Opal-2 appends model ID 32 to the existing flat synth selector (there is currently no CLASSICS category). Create it through the normal controller picker. Presets 00–0F contain CUSTOM and fifteen YM2413-inspired melodic categories. MORE → CONFIG / FACTORY edits profile, operator shapes, fine tuning, phase reset, levels, key tracking and factory recall. Factory definitions are immutable; recall copies them into the selected editable preset. CTS export and project Save retain the complete edited state.

Parameter mapping

Logical 0–F maps to stored IDs 1–16 and the sixteen existing row-major matrix cells (P1A–P4D commands; the panel currently labels these PA1–PD4). V1–VF still addresses only the first fifteen controls; no new tracker opcode is invented.

Logical Stored ID Control
0 1 ALGORITHM: FM / ADD / RING / MIX
1–2 2–3 MOD WAVE / CAR WAVE: 0–F
3–4 4–5 MOD RATIO / CAR RATIO
5 6 MOD DEPTH: 0–4 cycles of phase modulation
6 7 FEEDBACK
7 8 OP MIX: ADD balance / MIX direct-modulator amount
8–B 9–12 MOD ATTACK / DECAY / SUSTAIN / RELEASE
C–F 13–16 CAR ATTACK / DECAY / SUSTAIN / RELEASE

EXTENDED ratio is byte/16, minimum 1/16: .5, 1, 1.5, 2, 3 and inharmonic values are directly representable. Each operator's fine setting spans −50…+50 cents in one-cent increments; +17 cents gives approximately 1.01×. ADSR times are 0.001 + 8 * (byte/255)^2 seconds, with linear sustain 0–1.

FM outputs the phase-modulated carrier. ADD balances both independently enveloped operators. RING multiplies them. MIX combines FM carrier and direct modulator with gain normalization. CONFIG provides independent operator levels. MOD DEPTH and OP MIX remain saved when irrelevant to the selected algorithm.

All thirteen continuous primary controls use base/FX value, signed smoothed macro contribution, clamping and smoothing. The existing parameter matrix applies all sixteen values. Algorithm/wave controls are excluded from macros; live discrete changes use a two-millisecond output transition. Control updates run every 32 frames. CONFIG settings are authored settings, not additional matrix/macro addresses.

Waveforms, shape and memory

0 Sine, 1 Half rectified sine, 2 Full rectified sine, 3 Quarter sine, 4 Triangle, 5 Saw, 6 Square, 7 Pulse 25%, 8 Parabolic, 9 Folded sine, A Clipped sine, B Triple harmonic, C Odd harmonics, D Even harmonics, E Formant, F deterministic per-operator xorshift noise.

Five periodic waves reuse the prepared Contour bank. Ten extra waves occupy 256 samples × 8 harmonic levels × 10 × 4 bytes = 81,920 bytes (80 KiB) per audio backend, shared by all its Opal-2 voices. Source means are removed. Lookup uses power-of-two phase indices and linear interpolation; control updates select harmonic-limited levels. There are no per-voice tables or shape variant banks.

SHAPE blends sine toward folded sine; other periodic waves blend toward sine, softening their harmonic character. Noise shape is neutral. This compact spectral morph does not implement variable pulse width or triangle asymmetry. Custom user waveforms are not implemented. Extreme FM/feedback and high notes can still alias: source mipmaps do not remove all modulation sidebands. There is no unconditional oversampling.

Windows x64 sizeof(opal::Voice) is 1,856 bytes (22,272 bytes for twelve), including two operator envelopes.

LEGACY fidelity

LEGACY constrains routing to FM, waves to sine/half sine, detuning/shape to neutral, ADSR to sixteen steps, feedback to eight levels and ratios to .5,1,2,3,4,5,6,7,8,9,10,10,12,12,15,15. The byte range selects those sixteen entries by quantizing the byte range. Constrained values remain saved for return to EXTENDED.

Factory patches are original approximations of the melodic categories in the Yamaha YM2413 application manual, not a chip-ROM dump. This is not cycle-accurate emulation: the shared floating ADSRs and phase accumulators do not reproduce chip logarithmic envelopes, F-number timing, KSL/KSR tables, hardware vibrato/tremolo or rhythm mode. Key tracking attenuates modulator level above MIDI 60 rather than emulating OPLL KSL. Free phase preserves a reused slot; unallocated oscillators do not run.

Tests and desktop performance

Build ContourOpalTests, then run ctest --test-dir build -C Release -R opal --output-on-failure. It also benchmarks 256 blocks of 512 frames at 48 kHz, with checksum accumulation. FM2 comparison measures its raw oscillator, without Opal-2's independent envelopes; neither is a full-app metric.

Windows x64 Release results, milliseconds per block:

Engine Voices Average Peak
Opal-2 basic 1 0.0506 0.0782
Opal-2 complex + parameter automation 1 0.1047 0.1883
Opal-2 basic 12 0.6839 1.2244
Opal-2 complex + parameter automation 12 1.3502 2.4409
FM2 raw 1 0.0432 0.0710
FM2 raw 12 0.5297 0.8876

The complex case uses high feedback, harmonic waves, shape blending and changing parameter-matrix depth values. Release app build succeeded. The nine selected regressions passed: opal, synth, oscillators, oscillator_integration, synth_scenes, synth_tools_render, save, publication and audio.

No H700 measurements were made. Peaks include desktop scheduling effects. Allocation interception observes zero C++ new/new[] calls during prepare, configuration, note/render/release, pool reuse and benchmark rendering. Tests cover all 64 waveform/algorithm pairs, control effects, fractional ratios, fine detune, reset/free phase, release/cut, deterministic presets, parameter matrix/macros, twelve-slot reuse, CTS/CTP state and old-schema rejection. SynthToolsRenderTests produces a deterministic 640×480 Opal-2 panel.

What should be here

Documentation still to add
A labelled panel image, a short audio example for the first sound, and a verified CTS download. Preserve physical units and distinguish default byte values from audible measurements.

Evidence and verification

Repository sources used for this page:

  • docs/opal.md
  • src/core/audio/Synth/Opal/Definition.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