Skip to content

[void] BAL mix clips the noise-minus-dry difference on loud tracks #2610

Done

Description

@repeat98

What is broken: VOID's BAL mix computes noise minus dry and stores that difference in a register before multiplying. The difference of two near-full-scale signals of opposite sign exceeds the number range and is clipped at that point.

What it means musically: with BAL above 0 on a loud track, peaks where noise and track point in opposite directions come out wrong: BAL 127 ("pure noise") still carries a clipped ghost of the track, and the middle of the BAL range gets extra crunch. With the defaults it needs dry peaks above roughly 0.7 of full scale; with COLR open or high FDBK or DRV it happens on most loud peaks. As VOID is a noise effect, many will hear it as character.

Seen on a unit: no. Found by reading the source on main (VOID 0.1.0-experimental) and a numeric model; not rendered or heard.

Who must act: a VOID update, with the module author's OK. Low priority.

Next step: add a test case with opposite-polarity, near-full-scale inputs, then halve the difference before the multiply.

Details
  • sdk/octatrack/modules/void/void.asm:558-575: dry and noise are loaded, subtracted, the difference is moved to x0 (limited to ±1.0), multiplied and added; the same again for the right channel.
  • Example: BAL 127, dry +0.9, noise -0.5 gives -0.1 where -0.5 is right.
  • The same form in the external-source blend at :221-235 cannot run today, because SRC offers only LFO and TRCK.
  • docs/module-guides/effects.md already names this trap, and other modules halve the difference first (euclid/filter.asm:203-211, lofi2.asm).

Suggested fix: after each subtract, shift the difference right by one, multiply, shift the product left by one, then add. Two extra instructions per channel; re-measure the frame cost, since VOID is already limited to three instances by processor time. Add the case to verify.py.

Activity

  1. added
    bug
    on Dec 4, 2026
  2. repeat98 commented on Dec 5, 2026

    @repeat98
    OwnerAuthor

    Fixed in VOID 0.1.1-experimental (#2635, merged): BAL no longer clips the noise-minus-dry difference on loud tracks. It was checked by ear at BAL 127, 64 and 1 on a unit. Update VOID from the module library to get it.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions