Skip to content

Apply structural-param side effects on host automation#366

Merged
baconpaul merged 1 commit into
mainfrom
clap-discrete
May 9, 2026
Merged

Apply structural-param side effects on host automation#366
baconpaul merged 1 commit into
mainfrom
clap-discrete

Conversation

@baconpaul

Copy link
Copy Markdown
Owner

Audio-thread CLAP param events updated the param value but skipped the reapplyControlSettings / resetSoloState dispatch that the UI path runs, so automating play mode, polyphony, MPE, sample rate strategy, the output filters, bit rate, or solo silently failed to reconfigure the engine. Extract the side-effect block into handleAudioThreadParamSideEffects and call it from both the UI message path and the CLAP event path. Match the UI path's int-vs-float discipline so discrete params snap before the side-effect call sees them.

Assisted-By: Claude Opus 4.7

Audio-thread CLAP param events updated the param value but skipped the
reapplyControlSettings / resetSoloState dispatch that the UI path runs,
so automating play mode, polyphony, MPE, sample rate strategy, the
output filters, bit rate, or solo silently failed to reconfigure the
engine. Extract the side-effect block into handleAudioThreadParamSideEffects
and call it from both the UI message path and the CLAP event path. Match
the UI path's int-vs-float discipline so discrete params snap before the
side-effect call sees them.

Assisted-By: Claude Opus 4.7
@baconpaul baconpaul merged commit cfd17d7 into main May 9, 2026
6 checks passed
@baconpaul baconpaul deleted the clap-discrete branch May 9, 2026 21:55
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.

1 participant