mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
feat(playback): Semitones strategy, 2-decimal speed label, advanced fine steps (#1084)
* feat(playback): varispeed-by-semitones strategy and 2-decimal speed label Adds a fourth playback-rate strategy "Varispeed (semitones)" — a frontend lens over varispeed where the user dials the pitch change directly in semitones (±12 st, 0.1 step) and speed = 2^(st/12). Engine contract is unchanged: the store maps it to the existing "varispeed" Rust strategy via engineStrategy(), and switching between the two varispeed lenses at the same speed no longer restarts the track. Also widens the speed readout to two decimals (formatSpeedLabel → toFixed(2)) so every 0.05 slider step is visible (1.05×, 1.10×, 1.15×), addressing the feedback on issue #531 that the label looked stuck between steps. Includes new i18n keys and updated hint across all 9 locales, plus Vitest coverage for the new helper, label formatting, and the no-restart lens switch. * refactor(playback): shorten Semitones strategy label, add per-strategy tooltips Renames the fourth strategy to a concise "Semitones" (was "Varispeed (semitones)") across all 9 locales, and lets the four strategy buttons share the row width so they fit on one line in Settings while still wrapping in the narrow player popover. Each strategy button now has a short hover tooltip explaining how it is built (incl. the 2^(st/12) and 12 × log2(speed) maths). * feat(playback): advanced fine-step precision for speed/pitch sliders Adds an opt-in "Fine adjustment" toggle in Settings → Audio (visible only in Advanced mode) that shrinks the playback-rate slider steps to 0.01× for speed and 0.01 st for pitch/semitones, with the pitch readout widening to two decimals to match. Default behaviour (0.05× / 0.1 st) is unchanged. The preference is UI-only (persisted, not sent to the engine) and also applies to the player-bar popover and wheel. Addresses the finer-precision request on issue #531 without cluttering the default UX. * docs: changelog and credits for playback speed follow-up (PR #1084)
This commit is contained in:
@@ -435,12 +435,20 @@ export const settings = {
|
||||
playbackRateStrategy: 'Strategie',
|
||||
playbackRateStrategySpeed: 'Snelheid',
|
||||
playbackRateStrategyVarispeed: 'Met toon',
|
||||
playbackRateStrategyVarispeedSemitones: 'Halve tonen',
|
||||
playbackRateStrategyPreserve: 'Toonhoogte',
|
||||
playbackRateStrategySpeedTip: 'Verandert het tempo; de toonhoogte wordt automatisch gecorrigeerd.',
|
||||
playbackRateStrategyVarispeedTip: 'Snelheid en toonhoogte veranderen samen, zoals bij tape. Toonhoogte uit snelheid: 12 × log2(snelheid).',
|
||||
playbackRateStrategyVarispeedSemitonesTip: 'Zoals « Met toon », maar rechtstreeks in halve tonen ingesteld. Snelheid = 2^(ht/12).',
|
||||
playbackRateStrategyPreserveTip: 'Instelbaar tempo plus een handmatige toonhoogteverschuiving (±12 ht).',
|
||||
playbackRateSpeed: 'Snelheid',
|
||||
playbackRatePitch: 'Toonhoogte',
|
||||
playbackRateDerivedPitch: 'Toonhoogteverschuiving door snelheid: {{value}}',
|
||||
playbackRateDerivedSpeed: 'Snelheid uit halve tonen: {{value}}',
|
||||
playbackRateFineStep: 'Fijnafstelling',
|
||||
playbackRateFineStepDesc: 'Kleinere schuifregelaarstappen: 0,01× voor snelheid en 0,01 ht voor toonhoogte.',
|
||||
playbackRateAutoPitch: 'De toonhoogte wordt automatisch gecorrigeerd.',
|
||||
playbackRateHint: '« Snelheid » behoudt de natuurlijke toonhoogte. « Met toon » verandert de toonhoogte met de snelheid. « Toonhoogte » voegt een handmatige verschuiving toe. Meer CPU dan « Met toon ». Niet voor radio, previews of Orbit.',
|
||||
playbackRateHint: '« Snelheid » behoudt de natuurlijke toonhoogte. « Met toon » verandert de toonhoogte met de snelheid. « Met toon (halve tonen) » stelt die verandering rechtstreeks in halve tonen in. « Toonhoogte » voegt een handmatige verschuiving toe. Meer CPU dan « Met toon ». Niet voor radio, previews of Orbit.',
|
||||
playbackRateNeutral: 'Bij 1,0× en zonder toonverschuiving is afspelen normaal.',
|
||||
playbackRateOrbitPaused: 'Niet actief tijdens Orbit-sessies — afspelen blijft 1,0× voor sync.',
|
||||
playbackRateOrbitPausedShort: 'Orbit: 1,0× voor sync.',
|
||||
|
||||
Reference in New Issue
Block a user