Skip to content

feat(effects): cut the picture to black on audio gaps - #1235

Merged
CaYatur merged 1 commit into
mainfrom
feat/audio-chop
Nov 29, 2026
Merged

CaYatur merged 1 commit into
mainfrom
feat/audio-chop

Conversation

@CaYatur

@CaYatur CaYatur commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds Audio Chop (chop) to the layer effect chain and the scene effect chain. When the listened band drops out, that layer or the whole frame goes black in step with the gap and opens again when the sound returns.
  • The gate reads the raw spectrum (or the time-domain level), not the smoothed meters, so a run of short hits still shows the gaps. Adapt follows the song's own loudness. Turn it down to use a fixed threshold. Depth, hold, and edge are adjustable. The picture stays up until the music has actually arrived and then cut. Strobe is unchanged.
  • The new scripts are not loaded by the mode-thumbnail page, so the thumbnail key is unchanged.

Tests

  • npm test: 4801 tests, 4800 passed, 1 skipped.
  • Isolated npm run smoke (--user-data-dir before the app path): [SMOKE] RESULT: PASS, including all 45 GPU effects. chop stayed fully lit on the first loud frame.

How to use

Add Ses Kesiği / Audio Chop under Katman Efektleri or the scene Efekt Zinciri. Choose the listened band (overall, bass, mid, or treble). Leave adapt on for the song's own cuts, or turn it off and set the threshold. Depth 1 is pure black.

Audio Chop follows the raw bass, mid, treble, or overall level. While the
sound is cut, the layer or the whole frame goes black, then opens again
on the next hit. Adapt tracks the song's own loudness. A fixed threshold,
hold, depth, and edge are on the effect. Silence before the first hit
stays visible. Strobe remains the clock flash.

The effect lives in its own scripts so mode thumbnails stay valid.
4801 unit tests. An isolated smoke run passed, including all 45 GPU effects.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
@CaYatur
CaYatur merged commit 356aa70 into main Nov 29, 2026
5 checks passed
@CaYatur
CaYatur deleted the feat/audio-chop branch November 29, 2026 13:47
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