Repository navigation
refactor(processor): merge duplicate paths into private helpers - #143
Open
google-labs-stitch[bot] wants to merge 1 commit into
Open
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Add private slice helpers for the six process methods. - Add drain_slice and drain_planar_slices for the six drain methods. - Pass PitchEstimate to Resynthesis::target_note. - Reuse Processor::feedback in Processor::telemetry. - Add Telemetry::active_voice_slice and Processor::apply_stage.
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
Merge duplicate audio-block, drain-tail, pitch-snapshot, voice-slice and stage-event logic into private helpers in
src/processor.rs, and passPitchEstimatetoResynthesis::target_noteinsrc/resynthesis.rssoResynthesis::estimateruns one time in each snapshot.Changes
process_stereo_slice,process_planar_slicesandprocess_mono_slicehelpers aroundProcessor::process_into, and route the sixprocess*methods through them withstd::convert::identity,pcm_from_f32andpcm_to_f32.drain_sliceanddrain_planar_sliceshelpers aroundProcessor::drain_into, and route the sixdrain*methods through them while keepingleft-before-rightlength checks and post-drain zero fills intact.estimate: PitchEstimatetoResynthesis::target_note, and reuseProcessor::feedbackinProcessor::telemetryforprocessed_framesand the five pitch fields.Telemetry::active_voice_sliceforactive_voice_ratiosandactive_voice_gains, with the16-entry upper bound preserved.Processor::apply_stagefor the five stage arms inProcessor::apply.Verification
cargo fmt --check,cargo rustc --locked --lib --release -- -D warningsandRUSTFLAGS="-D warnings" cargo build --locked --releasecargo clippy --locked --lib -- -D warningsandRUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depsnpm run check:wasm,npm run verify:packandcargo package --lockedRUSTUP_TOOLCHAIN=1.88 cargo build --locked --libandRUSTUP_TOOLCHAIN=1.88 cargo build --locked --lib --target wasm32-unknown-unknown --features wasmf32,FeedbackandTelemetryoutputs.Automated PR initiated by user @byteland-app via Stitch Loop.