Repository navigation
refactor: remove dead event simulation and tighten helper visibility - #142
Open
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Remove ParameterControl::apply_to and validate_in_sequence. - Remove the ProcessorConfig argument from ValidatedEvents::new. - Remove the ProcessorConfig argument from Wasm decode_events. - Remove Resynthesis::reset_dwell and the dead dwell resets. - Make the harmony interval validators and remove_glottal private.
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 change removes dead event simulation code, dead dwell resets and extra
pub(crate)visibility across six internal modules. Public Rust exports, WebAssembly bindings, TypeScript declarations, error priority and sample-exact audio outputs do not change.Changes
ParameterControl::apply_toandvalidate_in_sequencefromsrc/events.rs, and callevent.event.validate()directly inValidatedEvents::new.ProcessorConfigargument fromValidatedEvents::newinsrc/events.rsandProcessor::validateinsrc/processor.rs.ProcessorConfigargument fromdecode_eventsand its six callers insrc/wasm.rs.previous_scale_indexandprevious_octaveinResynthesis::reset_audioinsrc/resynthesis.rs.Resynthesis::reset_dwelland setself.dwell = Q14::ZEROat the three guard sites inResynthesis::select_target_ratio.validate_chromatic_intervalsandvalidate_diatonic_intervalsprivate insrc/harmony.rs, and makeFormant::remove_glottalprivate insrc/formant.rs.Verification
cargo fmt --checkcargo rustc --locked --lib --release -- -D warningscargo clippy --locked --lib -- -D warningsRUSTDOCFLAGS="-D warnings" cargo doc --locked --no-depscargo package --lockedRUSTDOCFLAGS="-D warnings" npm run check:wasmnpm run verify:pack1.88builds (cargo build --locked --liband--target wasm32-unknown-unknown --features wasm)/tmpequivalence harness against baselineHEADacross event validation errors,Feedback,Telemetry, formant envelopes andi16/f32PCM outputs, plus Node.js Wasm binding checks across all sixprocess*methodsAutomated PR initiated by user @byteland-app via Stitch Loop.