Show the clips not picked faint over a sound's wave (#357)
Only the picked clip showed in the wave, between its handles. Where the other clips lay could only be read from the strip above, so cutting one next to another meant looking up and down all the time. - Every clip but the picked one is drawn over the wave as a pale tint with a thin edge, as high as the file reaches. - With the sound picked, all its clips are faint. While a drag spans a clip, that one is left out. - Test hook soundTab.faintClips() names the faint clips. Tests: - e2e 34 (melektaus-atx): ALL PASSED, 91 checks (1 extended) - Gate (melektaus-atx): CHECK EXIT 0, 271 files, 4195 tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
852dce5142
commit
95edf9959b
3 files changed
+54
-5
No files matched your search
@@ -39,6 +39,8 @@ export function soundHooks({ state, editor }: HookContext) {
|
||||
pickedClip: () => soundEditor.canvas.pickedClip()?.id ?? null,
|
||||
/** The middle of the clip strip at a second of the file, on screen. */
|
||||
stripAt: (seconds: number) => soundEditor.canvas.stripAt(seconds),
|
||||
/** The clips drawn faint over the wave, by name: all but the picked one. */
|
||||
faintClips: () => soundEditor.canvas.faintClips(),
|
||||
fadeInField: () => ({ ...centreOf(soundEditor.fadeInField), text: soundEditor.fadeInField.value }),
|
||||
fadeOutField: () => ({ ...centreOf(soundEditor.fadeOutField), text: soundEditor.fadeOutField.value }),
|
||||
/** The curve dropdowns show a picture of their curve; the tooltip names it. */
|
||||
|
||||
Reference in new issue
Block a user