Repository navigation
feat!: use patch structures for configurations and events - #64
Closed
google-labs-stitch[bot] wants to merge 3 commits into
Closed
google-labs-stitch[bot] wants to merge 3 commits into
google-labs-stitch[bot] wants to merge 3 commits into
Conversation
- Add Copy patch types and builders for all stages. - Merge validated patches in Processor::new and update_config. - Add non-destructive patch variants to ControlEvent. - Change ResynthesisConfig::random_seed to u32. - Serialize Wasm frame counts as JavaScript numbers. - Add all seven HarmonyScale modes to CorrectionScale. - Export updateConfig, noteMaskFromKeyScale and parseMidiBytes in Wasm.
- Keep the asynchronous Wasm import in src/index.ts. - Pass the frame count and active configuration in Processor::validate. - Update the ResynthesisPatch::harmony_gain documentation for mono mode.
- Merge release 0.3.1 and the CI workflows from main. - Keep the formant and pitch updates from main.
Contributor
|
Closing as superseded by #122 (for partial config patches) and #61 (for scalar events). This PR bundles breaking random_seed (u64 -> u32) and processedFrames (bigint -> number) changes that break downstream consumers, and validates partial patches against ProcessorConfig::default() instead of the active config. |
byteland-app
deleted the
stitch/feat/config-and-event-patches-jm1-35acd4fd-8752-417a-bf02-45c806951c9b
branch
November 25, 2026 08:06
Contributor
Author
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 shared
*Patchstructures, JSON-safe numbers, unified scale modes and WebAssembly helpers across the Rust, WebAssembly and TypeScript APIs.Copy*Patchtypes (ProcessorPatch,CorrectionPatch,ResynthesisPatch,HarmonyPatch,PitchPatch,FormantPatch,PunchPatch,WarmPatch,AlienPatchandReverbPatch) withOption<T>fields,new(),with_*builders,From<*Patch> for *Configandmerge_patchon all configuration structures.ProcessorPatchinProcessor::newandnew Tunelet, and addProcessor::update_configandTunelet.updateConfigwith atomic stack validation before state changes.ResynthesisConfig::random_seedandResynthesisPatch::random_seedtou32, removetsify(large_number_types_as_bigints)and serializeprocessedFramesinFeedbackandTelemetryasnumbersaturated atNumber.MAX_SAFE_INTEGER.Patch,ResynthesisPatch,PunchPatch,WarmPatch,AlienPatchandReverbPatchvariants toControlEvent, and simulate sequential merges on a stack copy inValidatedEvents::new.CorrectionScalewith all sevenHarmonyScalemodes, implementFrom<HarmonyScale> for CorrectionScaleandHarmonyScale::note_mask, and exportnoteMaskFromKeyScaleandparseMidiBytesin the WebAssembly and TypeScript entry points.Verification
cargo build --locked --releasecargo fmt --checkcargo clippy --locked --lib -- -D warningscargo doc --locked --no-depsnpm run buildJSON.stringifysupport,HarmonicMinorB4(71.0) pitch tracking andparseMidiBytesvalidation.Automated PR initiated by user @byteland-app via Stitch Loop.