mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-30 17:52:33 +01:00
The old shift_up/shift_down/shift_limit cues were synthesized DC-motor whines and read as "pretty bad". Replace them with cues derived from the click used in the September 2026 promotional video: a layered click (an ElevenLabs Sound Effects v2 body + a synthetic 15ms mid transient), processed with ffmpeg into three distinct WAVs — up pitched ~4 semitones and trimmed to 0.28s, down at original pitch and full 0.48s length, and limit built from two dry mid transients (0/90ms) with no body. All three stay mono/16-bit/44.1kHz/~-14dBFS for the winmm backend and phone-speaker use case. Added test/assets/shift_sound_assets_test.dart, a pure-Dart RIFF/WAVE parser that checks format, duration bounds, peak level, and that up/down remain distinguishable — it fails red against the old files (down was 0.18s) and passes against the new ones. Replaced assets/sounds/generate.py (the old synthesis script) with assets/sounds/README.md documenting provenance and the exact ffmpeg commands to regenerate from the source click, which lives outside this repo in the marketing project's asset store. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>