Skip to content

tf2: add waveform trim editor and damage-pitch tester to Sounds - #307

Merged
rndaom merged 2 commits into
mainfrom
rndaom/tf2-sounds-polish
Dec 6, 2026
Merged

rndaom merged 2 commits into
mainfrom
rndaom/tf2-sounds-polish

Conversation

@rndaom

@rndaom rndaom commented Dec 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a waveform trim editor to TF2 Sounds for custom, comfig.app, and GameBanana hit and kill sounds, with draggable start/end trim handles, one-click -36 dB silence auto-trim, and reset.
  • Share WaveformTrimEditor between TF2 and Deadlock via apps/desktop/src/components/ui/WaveformTrimEditor.tsx.
  • Slice trimmed TF2 audio in Rust (prepare_hitsound_wav_shaped) with short edge fades (1.5 ms fade-in, 4 ms fade-out) before optional boost and TF2 engine-ready WAV preparation; add additive trim_start_ms and trim_end_ms fields to HitsoundEntry and regenerate contract fixtures.
  • Add an interactive damage-pitch and repeat-delay tester (Chip 15, Shot 65, Crit 150, and Rapid burst obeying tf_dingalingaling_repeat_delay) directly under Pitch and repeat timing, using TF2's damage-to-pitch formula and live trimmed audio playback.
  • Update CHANGELOG.md, docs/ARCHITECTURE.md, and docs/guide/sounds.md.

Verification

  • pnpm check, pnpm test, and pnpm --filter @execs/desktop build
  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace --locked
  • Checked the TF2 Sounds pane in headless Chromium (?preview=settings-sounds), including selecting a library clip, auto-trimming silence on the waveform, and testing the damage-pitch controls with zero console errors.

@rndaom
rndaom merged commit d977f45 into main Dec 6, 2026
11 checks passed
@rndaom
rndaom deleted the rndaom/tf2-sounds-polish branch December 6, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant