19 Commits
Author SHA1 Message Date
re-code a550b31073 feat(lyrics): edit and add translations by hand 2026-11-22 03:34:12 +07:00
zarzet 272b821db0 feat(library): add a Simple audio quality label
A tester asked for a way to hide the audio figures. The Library's Audio quality setting gains Simple: a song shows Hi-Res (24-bit or more) or Lossless for FLAC, ALAC, WAV and AIFF, Dolby for AC-3, E-AC-3 and AC-4, and the format's name for anything else. An unknown format keeps its name, since it may be lossy.

With Simple chosen the format line of the full player shows the same one word in place of format, sample rate and bitrate. It still opens the audio details. The other label modes leave the player as it was.

Dolby names the codec only: the app does not tell Atmos apart in a file.
2026-11-20 20:46:35 +07:00
zarzet 7aa2f37496 chore: remove comments that restate the code
One-line doc comments and inline comments that only repeat the name, the
type or the next statement of what they describe, in the Dart, Kotlin and
desktop runner sources. Comments that state a reason, a constraint, a
unit, a value set or a platform quirk stay. No code changes.
2026-11-17 02:06:37 +07:00
zarzet 064f02b5de perf(player): list an Android song's folder once for its sidecars and cover
Starting a song from a granted Android folder looked for the .mlrc file,
the .lrc file and cover.mp4 with three separate native calls, each
resolving the song's parent again and listing the whole folder to find one
name. Big flat folders paid that three times on every song start.

One native call now resolves the parent once, reads the song's name once
and finds every wanted name in a single listing, returning uri, size and
modification time for each file that exists. A small Dart lookup shares
that answer between the lyrics sidecar reads and the motion cover lookup
for a few seconds, so one song start lists the folder once while a later
start of the same song asks again. Writing a sidecar or a tag change of
the song forgets the shared answer. Sidecar contents are read by document
uri only for files that exist, with the same 8 MB cap. Name rules are
unchanged and now live in a pure helper with JVM tests.
2026-11-16 16:17:06 +07:00
zarzetandre-code e82f7f2f1b fix(lyrics): read edited SAF songs again instead of their old copy (#859)
Lyrics synced by hand in the editor for a document (SAF) song came back
unsynced after leaving the song and returning to it. The song played from
a cached copy made before the edit: a tag change only retired network
copies, so the next play reused the old copy and the player read the old
lyrics from it.

A tag change now retires the song's playback copies, as ReplayGain edits
already did, and the queue item no longer names the old copy, so probes
read the document until playback makes a fresh copy. The player's lyrics
reload from the changed document itself, and only when its tags were read
before. A copy an edit retires stays on disk until no deck holds it, so a
song that plays, or is about to open its copy, keeps its file.

Ported from PR #859 onto the current metadata listener; the editor save
pinning in that PR is already here as PlayerLyricsEdit.

Co-authored-by: re-code <re-code-dev@proton.me>
2026-11-15 23:33:45 +07:00
zarzet 5da029f162 feat(lyrics): read .lrc files next to songs and bilingual LRC translations
Now Playing, the desktop player and lock screen lyrics read only the
lyrics inside the song file, so a WAV or any song with its lyrics in a
.lrc file beside it showed no lyrics, while the song details card did.
The player now reads that .lrc file when the song holds no lyrics of its
own, for local files, Android folders and iOS alike. The song's own
lyrics still come first. Edits and saved translations of .lrc lyrics go
back into the .lrc file instead of the song.

The song details card also reads the .lrc file of an Android document,
which the lyrics reader cannot reach.

Bilingual LRC files time each translation like the line it translates.
When most moments of a song are such a pair, both lyrics parsers now
show the second line as the first line's translation. A few shared
timestamps, such as simultaneous singers, stay separate lines.
2026-11-11 00:56:24 +07:00
zarzet 305037a907 feat(lyrics): save translations to .mlrc files
Saving a lyrics translation now covers every kind of lyrics:

- Plain lyrics can be translated on request. Each line's pronunciation
  and translation show under it. Automatic translation stays synced-only.
- AI pronunciation is saved too, with its word timing, as x-romaji and
  x-romaji-words tags next to the translation.
- A new .mlrc file next to the song keeps its lyrics with their
  translation and pronunciation and leaves the audio file as it is. It is
  UTF-8 LRC that starts with [x-mlrc:1]. Supplement tags are keyed by
  line time, or by line index for lyrics without timing. TTML is written
  as enhanced LRC with voices and backing vocals. The player reads it next
  to local and Android document songs and lays it over the song's lyrics
  by line text.
- AI Translation settings gain a Files section: Save To picks the song
  file or a .mlrc file, and Save Automatically saves each shown
  translation without a snackbar. TTML and plain lyrics always go to
  .mlrc. Saving into the song file also refreshes an existing .mlrc.
- Android reads and writes the sidecar through new SAF calls, and the
  .lrc sidecar write shares the same code.
2026-11-07 15:19:06 +07:00
zarzet 1df540f90b fix(lyrics): preserve editor track when playback changes
Snapshot the original draft and writable source when opening the lyrics editor, and keep saves bound to that track after playback advances or stops. Disable live timing controls for other tracks and cover file, SAF, and asynchronous save races with regression tests.
2026-11-06 21:33:19 +07:00
zarzet 1bb9c5094d feat(lyrics): edit and sync lyrics from the player
Adds a lyrics editor for the playing track (issue #801). It opens from the
lyrics options button (now also shown over plain lyrics) and from a Write
lyrics action when a track has none: a full-height sheet on phones, a
720dp editor dialog on desktop.

Each line has its time, which plays from there, and an editable text.
Set time gives the selected line the current position and moves to the
next one, so a song can be synced while it plays; -0.1 and +0.1 nudge the
selected line. Lines can be inserted, deleted or cleared of their time
from a row menu, also on right click.

The editor edits the raw LRC, so tags, singer prefixes, backing vocals,
translations and enhanced word timing survive a save; word timing moves
with its line and is dropped from a line whose text changes. An [offset:]
tag is applied to the times. Saving embeds the lyrics in the original
file through the existing player lyrics persistence and shows them at
once. Streams, TTML and network songs that are not SMB or WebDAV stay
read-only.
2026-11-04 01:59:24 +07:00
zarzet 6e07941b35 feat(library): save network songs offline with independent copies 2026-11-03 03:18:14 +07:00
zarzet dac6591c15 fix(link): relay playback artwork and metadata across devices 2026-11-01 21:29:52 +07:00
zarzet 4a53a24366 feat(lyrics): automatically embed online search results 2026-11-01 20:16:59 +07:00
zarzet e30e213ed3 fix(link): refresh playback and details after desktop file changes 2026-10-30 13:12:05 +07:00
zarzet a325cb6ae0 fix(player): read deferred ReplayGain tags in audio info 2026-10-29 23:28:21 +07:00
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00
zarzet dbee3d56cb feat(player): search lyrics online for files without them
The empty lyrics page offers Search online, which asks the enabled lyrics
providers in their configured order. The result is shown in the player
only and never written to the file; a late result is dropped after the
track changes, and a miss says so.
2026-10-18 19:24:39 +07:00
zarzet 40f65d3a4d feat(player): show audio source processing and output details 2026-10-17 16:18:32 +07:00
zarzet 514e229fc8 perf(metadata): parse lyrics and encode ID3 artwork in native workers
Port LRC, enhanced LRC, and TTML parsing plus ID3v2.3 lyrics writing and picture encoding. Keep legacy contracts and deep XML fallback; guard asynchronous player updates against stale track results.
2026-10-06 23:28:20 +07:00
zarzet c22577eb18 refactor(player): separate metadata state and lyrics rendering 2026-10-05 02:31:55 +07:00