Repository navigation
feat!: add parallel mix controls and smoothed bypass - #116
google-labs-stitch[bot] wants to merge 6 commits into
Conversation
- Align the resynthesis dry path to 1,593 frames. - Add Q14 mix controls to Punch, Warm and Alien. - Add global mix and 200-frame bypass to ProcessorConfig. - Add ControlEvent::Mix and ControlEvent::Bypass. - Preallocate the 1,593-frame raw dry buffer in Processor::new. - Clear the global dry buffer in Processor::reset. - Accept absent optional mix and bypass fields in JavaScript. - Update the rustdoc, signal-chain diagram and README.md.
|
Review: Preferred over #100 — full parallel mix controls and smooth 200-frame Q14 bypass crossfades with bit-exact default output. Please update before merge:
|
- Blend Q14 mix into the Q28 Punch and Warm pipelines. - Apply the mono downmix after global mix and bypass. - Decode mix and bypass events in the Wasm event buffer. - Reconcile the signal-chain docs and README with v0.3.3.
- Add #[non_exhaustive] to ControlEvent. - Update the ControlEvent::validate error documentation. BREAKING CHANGE: ControlEvent adds Mix, Bypass and #[non_exhaustive].
|
Updated both items:
|
- Merge main at v0.3.4 into the mix and bypass branch. - Keep the correction key reset documentation from #46 in Processor. - Decode undefined mix and bypass fields in Wasm as in #123. - Add undefined to optional mix and bypass TypeScript declarations. - Update README.md for undefined optional fields and v0.3.4 queries.
|
Synced with updated
|
|
Round 3 review: Approved for 0.4.0 — parallel stage/global mix, 200-frame smoothed bypass, ControlEvent #[non_exhaustive], and optional Wasm undefined handling are verified. Please rebase onto updated main after #45, #107, and #117. (Note: once #114 low-latency mode lands, the global dry ring in Processor should also follow latency_frames(latency_mode).) |
- Merge main into the feature branch. - Combine the mix, bypass, humanize and flex-tune docs in README.md. - List humanize and flexTune in the defaultConfig Wasm docs. - Check optional mix and bypass fields in scripts/verify-pack.mjs.
|
Synced with
|
|
Review: Parallel stage/global mix, 1,593-frame pre-Punch dry alignment, 200-frame smoothed bypass, and bit-exact defaults look solid. Three items before merge:
|
- Merge main with scalar parameter events and pitch telemetry. - Guard unchanged mix values in Punch, Warm and Alien. - Return zero tail frames from Alien if alien.mix is zero. - Update signal-chain.svg and README.md for global mix and bypass.
|
Addressed in
|
Summary
mix(0.0..=1.0, default1.0) toPunchConfig,WarmConfigandAlienConfigwithQ14wet/dry blends ((dry * dry_w + wet * wet_w) >> 14) integrated into theQ28PunchandWarmpipelines (#111),old.mix != config.mixsetter guards alongside#61scalar parameter helpers, range validation and continuous internal state updates at all mix values when enabled.0tail frames fromalien::tail_frameswhenalien.mix == 0.0to matchreverb::tail_frames.mix(0.0..=1.0, default1.0) andbypass(bool, defaultfalse) toProcessorConfig, plusControlEvent::MixandControlEvent::Bypassintegrated into#[non_exhaustive] ControlEvent,ValidatedEventsandProcessor::applyalongside#61ParameterControl,#104Telemetrypitch fields and#135ControlActivity.1,593-frame rawi16delay buffer (3,186bytes, aligned withLATENCY_FRAMESandresynthesis.dry_mixfrom#21) one time inProcessor::new, clear it inProcessor::reset, and crossfadebypasschanges over200frames inQ14before theOutputLayout::Monodownmix while all internal stages advance.docs/images/signal-chain.svgandREADME.mdto show both the post-Warmdry_mixpath and the pre-Punch1,593-frame raw dry path intoMixandBypass.serdedefaults,undefineddeserializers (deserialize_mix,deserialize_false) andtsify(optional, type = "... | undefined")declarations (#123) in WebAssembly and TypeScript (defaultConfig(),Tunelet,setConfig, and zero-allocation scalar event decoding insrc/wasm.rsfrom#99and#61), and update the rustdoc andREADME.mdin ASD-STE100.Breaking Change
mixfields toPunchConfig,WarmConfig,AlienConfigandProcessorConfig, addbypasstoProcessorConfig, and addControlEvent::Mix(f32)andControlEvent::Bypass(bool).DSP Verification
main(8880205) defaults & zero post-construction allocation: Verified identical sample-for-sample stereo and monoi16andf32PCM output,feedback(),telemetry()(#104) andcontrol_activity()(#135) againstmainacross44.1 kHzand48 kHzfor default Choir, multi-effect chains (Punch,Warm,Formant,Choir,Alien,Reverb,output_gain) anddrain/drain_mono, with+3,186bytes inProcessor::newand0post-construction heap allocations.Processor::tail_frames()excludes Alien's2 * loop_frames + 200tail whenalien.mix == 0.0, and verified one single pulse at frame1,593acrossresynthesis.dry_mixand globalmixvalues0.0,0.25,0.5,0.75and1.0andbypass = trueat both44.1 kHzand48 kHz.0.00 dBcomb loss across220 Hz..882 Hz(with440 Hz,441 Hzand480 Hzunshifted sine tones).Error::InvalidConfig/Error::InvalidEventrejection in Rust and WebAssembly.cargo fmt --check,cargo clippy --locked --lib -- -D warnings,cargo build --locked --release,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps,cargo package --locked,RUSTDOCFLAGS="-D warnings" npm run check:wasm,npm run verify:packand the Rust1.88MSRV build (#120).Automated PR initiated by user @byteland-app via Stitch Loop.