Repository navigation
fix: wire flat controls into DSP and align telemetry - #134
Closed
google-labs-stitch[bot] wants to merge 4 commits into
Closed
google-labs-stitch[bot] wants to merge 4 commits into
google-labs-stitch[bot] wants to merge 4 commits into
Conversation
- Filter the Echo delay path and feedback loop with lpf1 and lpf2 - Scale the Schroeder and SmallRoom allpass gains with diffusion - Filter two Schroeder comb paths with lpf1 and lpf2 - Drive the first Schroeder comb path with decay - Add filtered decay feedback to the Binaural delay lines - Update the reverb tail budget for Binaural and SmallRoom
- Enforce HarmonyConfig::voices across all seven harmony sources - Limit voiced chord tones to the active voice slots - Scale harmony entries in Telemetry::voice_gains by harmony_gain - Compact active harmony voices in Telemetry::voice_ratios - Report one plus the active harmony voices in voice_count - Document the harmony voice limit and scaled telemetry gains
- Increase ACQUISITION_LAGS to 305 for 40 Hz pitch detection - Replace the correlation wrap constant with 2 * ACQUISITION_LAGS - 1 - Check Q6 periods against PitchConfig bounds with boundary tolerance - Gate Resynthesis::is_tracking and clarity with PitchConfig::in_bounds - If a period is out of bounds, move correction toward 1.0 - Document the active frequency bounds across Rust and Wasm
- Store reflection coefficients and generation tags for each bank - Rebuild valid synthesis banks in set_config on width or stretch edits - Read Telemetry::formant_generation from the active history stamp - If the formant stage has no model, report generation zero - Document immediate envelope updates and stamp generation tags
Contributor
|
Closing this PR. Like #70, this invents undocumented Reverb topology changes that break fixed-point sample-exact compatibility, breaks fixed voice-slot telemetry indexing, shifts harmony voice gain scaling, and synchronously rebuilds 30 LPC banks on the audio thread in Formant::set_config. |
byteland-app
deleted the
stitch/wire-flat-controls-align-telemetry-jm1-465b1860-a969-4daf-9420-13f9229666de
branch
November 25, 2026 08:08
Contributor
Author
|
Understood — keeping #134 closed with no further changes pushed to this branch:
|
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 connects flat
ProcessorConfigcontrols to their DSP paths and alignsFeedback,Telemetry, andProcessor::formant_envelopewith the active audio signal across Rust, WebAssembly, and TypeScript.Changes
src/harmony.rs,src/resynthesis.rs,src/processor.rs):HarmonySourcevariants withHarmonyConfig::voices(0..=4) and limit voiced chord tones to the active voice slots.gain > Q12::ZERO), scale each harmony entry inTelemetry::voice_gainsbyharmony_gain, and report1plus the active secondary voices inTelemetry::voice_count.src/pitch/tracker.rs,src/pitch.rs,src/resynthesis.rs):ACQUISITION_LAGSfrom137to305and replace the correlation wrap constant with2 * ACQUISITION_LAGS - 1soPitchTrackerlocks down to40.0Hz at44.1kHz and48kHz.PitchConfig::in_boundsonFeedback::voiced,Telemetry::tracking,Telemetry::clarity, andResynthesis::update_correctionso out-of-bounds pitches movecorrectiontoward1.0.src/effects/reverb.rs):self.diffuseinSchroederandSmallRoom.EchoandSchroederdelay paths withlpf1andlpf2, drive the firstSchroedercomb withself.decay, add filteredself.decayfeedback toBinaural, and updatetail_frames.src/formant.rs,src/resynthesis.rs,src/processor.rs):ORDERreflection coefficients and generation tags for each bank inFormant::new.Formant::set_configonwidthorstretchedits and reportTelemetry::formant_generationfrom the activeformant_positionstamp.README.md,src/lib.rs,src/wasm.rs, module rustdoc):LATENCY_FRAMESat1,593frames and public Rust/Wasm/TypeScript types compatible.Verification
cargo fmt --check,cargo clippy --locked --lib -- -D warnings,cargo build --locked --release,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps, andcargo package --list --locked.RUSTDOCFLAGS="-D warnings" npm run check:wasmandnpm run verify:pack.40.0..=2000.0Hz pure and harmonic pitch locks at44.1kHz and48kHz, nonzero parameter sweeps and bounded tail decay across all sixReverbModevariants, zero-lagformant_envelope()updates, zero post-construction heap allocations, and Node.js WebAssembly parity.Automated PR initiated by user @byteland-app via Stitch Loop.