Repository navigation
Lull 1.6
Sleep timer
Play for 5–90 minutes, fade out over the last 30 seconds, then pause — the other half of falling asleep to a looping track.
- Set it from the moon button on Now Playing (the title bar counts it down,
Sleep in 24:31) or from Sleep timer in the library's overflow menu, where the entry shows the time left. - The countdown runs in
PlaybackService, so it survives closing the app, and it is measured againstelapsedRealtimeso it counts through device doze rather than stopping with the CPU. - The fade is a raised cosine, which is flat at both ends: it eases in without an audible step and settles onto silence instead of arriving at it still dropping. On a short timer it is capped at half the total.
- It ends on pause, not stop, so the queue and your place in it survive — one tap to carry on.
- A running timer is deliberately not persisted; only the duration you last chose is.
Under the hood
Crossfade and the sleep fade both want the engine volume 25 times a second, so they now contribute independent gains that are multiplied in one place rather than overwriting each other. A crossfade that wouldn't finish before the deadline is skipped outright, so the track you hear last isn't one you never chose to end on.
APK is signed (CN=Lull). minSdk 26 · targetSdk 35 · versionCode 7.