Repository navigation
feat: add control activity queries - #135
Merged
byteland-app merged 3 commits intoNov 25, 2026
Merged
byteland-app merged 3 commits into
byteland-app merged 3 commits into
Conversation
- Add ControlActivity queries in Rust, Wasm and TypeScript - Scale harmony voice gains by harmony_gain and count active voices - Extend pitch acquisition to 305 lags for 40 Hz fundamentals - Enforce PitchConfig frequency bounds on pitch state and correction - Rebuild active formant synthesis banks when width or stretch changes - Read formant_generation from the active playback stamp - Document control activity, telemetry and formant envelopes
Contributor
|
Review: Keeping DSP topologies bit-exact and exposing ControlActivity for host UIs is much better than #70/#134. However, this PR has several issues that need splitting/fixing:
|
- Merge the main branch at release 0.3.3. - Keep control-activity and output-peak documentation in README.md. - Keep pitch bounds, dry delay and mono peak docs in src/lib.rs. - Combine frequency-bound and target-wrap docs in src/resynthesis.rs. - Keep ControlActivity and event imports in src/wasm.rs.
- Revert resynthesis, formant and pitch changes to main. - Revert telemetry, feedback and formant documentation to main. - Keep ControlActivity queries in Rust, WebAssembly and TypeScript.
Contributor
Author
|
Thanks for the review. I narrowed this PR to be a clean, purely additive
|
byteland-app
deleted the
stitch/add-control-activity-and-fix-telemetry-jm0-50dd7622-4720-49ad-bffa-104cd419814d
branch
November 25, 2026 14:28
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds purely additive control-activity queries across Rust, WebAssembly and TypeScript, with zero changes to DSP topologies, fixed-point audio output or existing telemetry contracts.
src/config.rs,src/processor.rs,src/lib.rs,src/wasm.rs,src/index.ts): Adds a#[non_exhaustive]CopyControlActivitystruct,ProcessorConfig::control_activity,Processor::control_activityandTunelet.controlActivity(). Reportsfalsefor each choir, harmony and reverb control that makes no sample change in the active voice mode, harmony source or reverb network.README.md, rustdoc): DocumentsControlActivity,control_activity()andcontrolActivity()in Simplified Technical English.Verification
git diff origin/mainmodifies onlyREADME.md,src/config.rs,src/index.ts,src/lib.rs,src/processor.rsandsrc/wasm.rs(0lines changed insrc/resynthesis.rs,src/formant.rs,src/pitch.rsandsrc/effects/).440 / 440perturbation runs across Choir, all sevenHarmonySourcemodes and all sixReverbModenetworks confirmed0LSB PCM change on everyfalseflag and non-zero PCM change on everytrueflag.0heap allocations forProcessorConfig::control_activityandProcessor::control_activityvia a customGlobalAlloccounter.28 / 28FNV-1a PCM digests across all sixReverbModenetworks, all sevenHarmonySourcemodes and the full signal chain at44.1kHz and48kHz matchmainbit-for-bit, and passedcargo fmt --check,cargo clippy --locked --lib -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps,cargo package --locked,npm run check:wasm,npm run verify:packand Node.js Wasm runtime checks.