crossfade-exclusion-heuristics

Installation
SKILL.md

Crossfade exclusions

A crossfade is a default, not a law. Three exclusions earn their place; each is a small predicate consulted at the trigger point, and each has a way of being written that quietly does nothing.

val shouldCrossfade =
    crossfadeEnabled && hasNextMediaItem() &&
        !isCurrentTrackVideo() && !isNextTrackVideo() &&
        !isCurrentTrackTooShortForCrossfade() && !isWithinAlbum()

Every one of these must also be present on the other path that starts a fade — see guard-on-every-trigger-path; a predicate on one path only is dead code with no symptom.

Traps

Installs
2
GitHub Stars
35
First Seen
6 days ago
crossfade-exclusion-heuristics — maxrave-dev/kotlin-footguns