Skip to content

Fix slow random walk in Random8 Perlin/FBM styles#69

Open
quasor wants to merge 1 commit into
VCVRack:v2from
quasor:claude/random8-walk-style-jcq2kr
Open

Fix slow random walk in Random8 Perlin/FBM styles#69
quasor wants to merge 1 commit into
VCVRack:v2from
quasor:claude/random8-walk-style-jcq2kr

Conversation

@quasor

@quasor quasor commented Jun 18, 2026

Copy link
Copy Markdown

The Perlin and FBM walk styles advance a phase counter (positionX) by one step per trigger and sample 1D Perlin noise at the normalized position. The 16-bit VCV port mechanically replaced TWELVE_BIT_MAX with SIXTEEN_BIT_MAX throughout these cores. That is correct for the output scaling, but it also widened the phase period/normalization from 4095 to 65535. Since the counter still increments by one per trigger, each step through the noise lattice shrank ~16x, so the output barely changed between triggers.

Restore the phase resolution to the hardware 12-bit range (TWELVE_BIT_MAX) while keeping the 16-bit output scaling, so the walk advances at the intended rate. Measured average per-trigger movement rises from ~370/65535 to ~6677/65535 while remaining smooth and correlated.

Claude-Session: https://claude.ai/code/session_01XhmS8keJMsemMnAnASu1Gg

The Perlin and FBM walk styles advance a phase counter (positionX) by one
step per trigger and sample 1D Perlin noise at the normalized position. The
16-bit VCV port mechanically replaced TWELVE_BIT_MAX with SIXTEEN_BIT_MAX
throughout these cores. That is correct for the output scaling, but it also
widened the phase period/normalization from 4095 to 65535. Since the counter
still increments by one per trigger, each step through the noise lattice
shrank ~16x, so the output barely changed between triggers.

Restore the phase resolution to the hardware 12-bit range (TWELVE_BIT_MAX)
while keeping the 16-bit output scaling, so the walk advances at the intended
rate. Measured average per-trigger movement rises from ~370/65535 to
~6677/65535 while remaining smooth and correlated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XhmS8keJMsemMnAnASu1Gg
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