Repository navigation
feat(pitch): add vocal range presets and sibilance split - #115
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Closed
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Add VocalRange and sibilant_bypass to PitchConfig and exports. - Extend PitchTracker to 305 lags and tune the two low-pass prefilters. - Enforce active vocal range limits in PitchTracker and feedback. - Clear previous_period on reset and after unvoiced expiry. - Detect sibilants in Q14 from zero crossings and band ratios. - Split active sibilants at 3.5 kHz and align the high band at 1,593.
Contributor
|
Closing as superseded by #124. The bundled 3.5 kHz LR4 sibilance split linearly blends 0-degree input with -180-degree filtered audio (creating comb notches during transitions), adds +8.1 KB of unboxed arrays and 4 always-on biquads, lacks smooth harmony release, and silently changes default output without a breaking marker. |
byteland-app
deleted the
stitch/vocal-range-presets-sibilance-split-jm0-8661c003-1fe8-4591-af63-a7ec264c6276
branch
November 25, 2026 08:04
Contributor
Author
|
Understood — leaving #115 closed with no further changes pushed to this branch, deferring to #124 ( |
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 vocal range presets and a
3.5 kHzsibilance split to the pitch correction engine:VocalRange): AddsCustom,Soprano(200..=1100 Hz),AltoTenor(100..=720 Hz),BaritoneBass(45..=360 Hz), andAuto(40..=1100 Hz, default) toPitchConfig,src/lib.rs,src/wasm.rs(defaultConfig()), andsrc/index.ts.40 Hzto1046.5 Hzpitch acquisition: IncreasesACQUISITION_LAGSto305, replaces the hardcoded wrap index with2 * ACQUISITION_LAGS - 1, and tunes the two-sectionBiquadprefilter cutoffs per vocal range.VocalRangebounds insidedetection_lag,process_sample, andPitchConfig::report. Clearsprevious_periodonresetand on unvoiced expiry so out-of-range notes keepvoiced == false,voice_ratios[0] == 1.0, andvoice_gains[1..5] == [0.0; 4].3.5 kHzQ14sibilance split (sibilant_bypass): Detects sibilant consonants from sliding zero-cross bitmasks andQ14/Q20band energy envelopes. Splits the signal across complementary fourth-order Linkwitz-Riley (3.5 kHz)Biquadsections during active sibilance. Routes the low band through the voiced pitch,Formant, andHarmonyStatepath, and sums the high band aligned toLATENCY_FRAMES = 1_593at unity pitch before effects.Verification
40.0 Hzto1046.5 Hz): Acquired396/396(100%) steady test notes acrossAuto,Soprano,AltoTenor, andBaritoneBassat44.1 kHzand48 kHz. Confirmed out-of-range rejection (voiced == false,voice_ratios[0] == 1.0,voice_gains[1..5] == [0.0; 4]).220.00 Hzvowel decaysvoice_gains[1..5]to0.0, resetsvoice_ratios[0]to1.0, and matches pre-vowel sibilant RMS within0.08 dB(< 0.2 dB).220 Hzvowel plus> 4 kHzfricative noise atpitch_ratio = 1.5shifts the vowel fundamental to330 Hz(+44 dBseparation) while the high-band sibilant spectrum stays unshifted (+43..+58 dBseparation).Processor::new, sample-exact determinism acrossreset,LATENCY_FRAMES == 1_593,cargo fmt --check,cargo clippy --locked --lib -- -D warnings,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps,RUSTDOCFLAGS="-D warnings" npm run check:wasm, andnpm run verify:pack.Automated PR initiated by user @byteland-app via Stitch Loop.