Commit Graph
249 Commits
Author SHA1 Message Date
zarzet a4a476e44e feat(playback): spatial audio switch for the platform spatializer
A Spatial audio switch in Playback settings, on by default, in the Audio
output group of both styles: after Skip silence on Android, after
exclusive output on macOS, and in its own Audio output group on iOS.
Windows and Linux have no row and no search entry. The app renders
nothing; the switch only tells the platform whether it may spatialize.

- media3: a new `setSpatialAudio` call maps to the audio attributes'
  spatialization behavior (auto or never). It applies live: the sink
  reopens its AudioTrack and drops its buffer, so native seeks to the
  current position to decode that audio again instead of skipping it.
- Old Android engine: the fork takes `setSpatialAudio` on its player
  channel (no platform interface change) and sets the behavior on API
  32+ as each source loads, so a change applies from the next song. The
  subtitle says so while the new engine is off.
- iOS and macOS: the Darwin fork sets allowedAudioSpatializationFormats
  (iOS 14, macOS 11) to mono, stereo and multichannel or to none, on the
  current item and every new one.

The subtitle ends with a live status line. Android reads the
Spatializer (available, enabled, head tracker, and canBeSpatialized for
stereo and 5.1) over a new event channel that re-reads on spatializer,
head tracker and device changes and on resume. iOS reports whether the
output port has spatial audio enabled, on route and spatial capability
changes. The line names the direct USB and AAudio paths and macOS
exclusive output, which never reach the system's spatial audio.
2026-11-09 02:41:48 +07:00
zarzet 0a9eac574d Merge branch 'feat/batch-pq' into feat/batch-int 2026-11-08 19:08:14 +07:00
zarzet 0c5183a8c0 feat(playback): one headphone resume choice with three modes
Play when headphones connect and Resume when headphones reconnect become
one setting, `headphoneResume`, with three choices: Off, Reconnect
(resume a pause caused by headphones or Bluetooth going away, within 30
minutes) and Always (the old switch: every connection resumes, a user
pause included, and a disconnect pauses). The row keeps the old title,
describes the current choice under it and draws the choice with the
DESIGN.md component for 2 to 4 short options: `SettingsSegmentedChoice`
(connected M3 Expressive button group) in Material and
`MornyeSegmentedControl` in Mornye. "Reconnect" is short so the three
segments fit one row on a 360 wide phone in both styles and languages.

Migration: a saved `headphoneResume` wins; otherwise
`playOnHeadphonesConnected: true` reads as Always, then
`resumeOnOutputReconnect: true` as Reconnect, else Off. An unknown value
falls back the same way. `toJson` still writes
`playOnHeadphonesConnected` (true only for Always), so a downgrade or a
backup opened by an older build keeps the broad behaviour, and backups
carry the new key through the full settings map.

The choice is offered and applied on Android and iOS phones and tablets
only: desktop and Android TV hide it (search too) and the player treats
it as Off there. The old switch's strings stay for the title and the
Always description; the two strings only the separate switch used are
removed.
2026-11-08 19:05:03 +07:00
zarzet 98f60e065d Merge branch 'feat/batch-ro' into feat/batch-int 2026-11-08 16:50:00 +07:00
zarzet 46db8c84b8 Merge branch 'feat/batch-sw' into feat/batch-int 2026-11-08 16:50:00 +07:00
zarzet 8ebfbd4ed3 feat(playback): resume when headphones reconnect after a route loss
A Resume when headphones reconnect switch in the Automatic playback
group of Playback settings, off by default, on Android and iOS phones
and tablets (hidden on desktop and Android TV, also from search).

When headphones or a Bluetooth output go away while music plays, the
existing becoming-noisy pause now also records when it happened. If a
headphone-type output (wired, USB, Bluetooth A2DP or LE, hearing aid)
connects again within 30 minutes, that pause resumes once. Any other
transport change clears the record: Pause, Play, a skip or new song,
Stop, an audio interruption, a setting change or Cast. A song that was
already paused is never resumed, and the record lives in memory only,
so nothing resumes after the app was killed. Mute and audio focus still
block the resume, as for the other automations.

It reuses the audio_session device inventory that Play when headphones
connect already reads, so no permission is added. That broader switch
resumes on every connection, a user pause included; while it is on, the
new switch is disabled and its subtitle says it is covered. With both
on, the disconnect pause of the broader switch keeps the route-loss
record, so they do not conflict.

The window check is the pure `resumesNoisyPause`; the clock is
injectable for tests.
2026-11-08 16:45:26 +07:00
zarzet 7573e22fee feat(lyrics): romanize lyrics offline
Lyrics in other alphabets now show how they are sung without an AI key
or a network: Korean (Revised Romanization with liaison,
nasalization, lateralization, aspiration and palatalization), Cyrillic
with one standard per language (Russian, Ukrainian, Belarusian,
Bulgarian, Serbian, Macedonian, Kyrgyz, picked from the letters of the
song), Hindi and Punjabi in the plain lyrics spelling with dropped
inherent vowels, Chinese Hanyu Pinyin with phrase readings for
polyphones, and Japanese kana by Hepburn.

Japanese lines with kanji are not romanized offline: a reading
dictionary does not fit the size budget. Those lines, and scripts the
device cannot romanize (Thai, Arabic and others), are what an AI
translation is asked to romanize when it is set up to; otherwise they
show no romanization. A translation no longer asks the AI to romanize
what the device can.

Pinyin comes from a 259 KB gzipped asset built by
scripts/build_pinyin_data.dart from Unihan (Unicode License v3) and
phrase-pinyin-data (MIT); both notices are in the app's licenses. It
loads on a background isolate the first time Chinese lyrics play.

Word-timed lines keep their timing: the line romanizes as a whole, so
sounds that run across words read right, and each word takes its own
part. The romanization is shown, never saved with the song.

Lyrics settings get Romanize lyrics (it starts as the AI romanization
switch was, so whoever turned that off is not shown romanization) and
Romanization as main line, which shows the romanized text as the line
with the original under it; a word-timed line whose romanization has no
timing keeps its original as the main line.
2026-11-08 16:39:19 +07:00
zarzet 24e31c0312 feat(queue): lock the queue against accidental edits
A lock toggle in the queue header of both styles, also in the Queue
section of Playback settings (where search finds it), saved as the
`queueLocked` setting. While it is on, the queue UIs offer no drag
handles (Material's long-press drag included) and no swipe to remove,
and a reorder that still arrives is ignored. Tapping a song still plays
it, and adding songs from elsewhere (Add to queue, Play next, Autoplay,
a paired device) still works. Neither queue UI has a Clear action, so
there was none to block.

Material: an M3 Expressive toggle icon button (`ExpressiveIconButton`,
selected state) before the Autoplay, Repeat and Shuffle toggles of the
Up next header, in the phone sheet and the desktop inspector. Mornye: a
44 pt icon toggle at the end of the Continue Playing title row, filled
while locked like the queue's mode buttons, on phones and desktop.

The lock covers this device's queue UI only; edits a paired phone sends
to the computer's queue are not blocked by the computer's lock.
2026-11-08 16:37:45 +07:00
zarzet 9dd2188aa1 feat(queue): add songs without queueing duplicates
A No duplicates in queue switch in a new Queue section of Playback
settings, off by default. While it is on, Add to queue, Play next and
adding many songs move an entry already coming up instead of queueing a
second copy, and a batch adds each song once, in its order. The song
playing and the songs before it are never touched, so they can be
queued again.

Identity is where a song plays from (`queueIdentityKey`), not its id or
tags: one file has different ids in the Library, the download history
and a plain path, while a FLAC and an MP3 copy share their tags and are
both meant to be queued. A `file://` URI counts as its path, a SAF
document is matched by provider and document id so a folder-tree URI of
it matches too, and `network://` sources (NAS, Subsonic, a paired
device) and CUE tracks name one song each. Stream URLs compare as is:
one with a fresh token never matches, which keeps a copy rather than
merging two songs.

Every path that adds to the queue goes through `enqueue` and
`enqueueAll`, so Link follows the playing device's own setting: songs a
phone queues on the computer, and a computer queueing a phone's songs
there. Autoplay already leaves out songs coming up and is unchanged.
The moved entry is removed without marking it dismissed for Autoplay,
and the shuffle order and play history follow the removal.
2026-11-08 16:33:35 +07:00
zarzet 6d346534ac feat(library): swipe a song row to play it next or add it to the queue
On phones and tablets a sideways swipe on a library song row runs the
same Play next and Add to queue actions the row's menus offer: toward
the end of the row plays next, toward its start queues last, swapped in
right-to-left layouts. The row follows the finger, ticks at the commit
point, runs the action on release and springs back with a snackbar.

The drag must be at least twice as wide as tall, touches at the screen
edges stay with the system back gestures, and rows inside a draggable
pager or carousel keep the page swipe. Selection mode, desktop and
Android TV have no swipe. Screen readers get both actions as custom
actions on the row. A Library setting, on by default, turns it off.
2026-11-08 16:28:55 +07:00
zarzet 0b390d60c6 feat(playback): skip silence on the new Android engine
A Skip silence switch in Playback settings, off by default, shown on
Android phones and tablets under the new playback engine. It works only
through media3: while that engine is off the switch is disabled and its
subtitle says why. Changes apply live through a new `setSkipSilence`
call on the media3 channel, sent after `create` and on every change.

media3 skips silence in its audio processor chain, which it bypasses
for float PCM, and it asks every decoder for float once the sink takes
float output. While the setting is on, the renderer therefore asks
decoders for 16-bit PCM and refuses to reuse a decoder set up for the
other mode, so hi-res sources lose their low bits while it is on (the
subtitle says so). A decoder already running keeps its mode: turning
it on mid-song starts skipping from the next song, turning it off
stops at once.

Interplay:
- AutoMix: suspended while AutoMix is on. AutoMix times its fade start
  and beat matching on the clock from analysed file positions, which
  skipping would outrun. The subtitle says so.
- Gapless: `queueNext` stays on the same player, so the trailing and
  leading silence around the handoff is skipped too; the 30 s lead
  leaves the queue call far ahead of the end.
- Position, duration, synced lyrics: media3 reports media time, which
  jumps forward over a skipped passage, so lyrics stay in sync and the
  duration is unchanged.
- Scrobbling and listening statistics count listened wall time, so a
  song with long silences counts slightly less time; the thresholds are
  far from that.
2026-11-08 16:23:27 +07:00
zarzet 3c20cac699 feat(files): remove the folders a deleted song leaves empty
Deleting songs from the app left their album and artist folders behind,
so people had to clean them up with a file manager. The song's own .lrc
and .mlrc files stayed too, which kept those folders from being empty.

Deleting a song now also deletes its .lrc and .mlrc files, unless
another song in the folder has the same name. Settings > Files >
Existing Files gains Remove Empty Folders, on by default: once a song is
gone, the folders it leaves empty are removed, up to but never including
the download folder or a Local Library folder, and never a storage,
volume or home folder or a folder right inside one, such as Music or
Download. A folder still counts as empty when it only holds system index
files, Mornye's cover.mp4 or lyrics files of songs that are gone.
Folders are removed while the download queue is idle, so a download
never loses the folder it writes into.

Every place that deletes a song from the library goes through this:
the library and album screens, song details, Duplicate Review and
Mornye Link. Android storage access folders work through two new
platform calls that find a song's folders before it is deleted and list
a folder. Network songs and CUE tracks are only deleted, as before.
2026-11-08 02:43:14 +07:00
zarzet 2beb2b2cf6 feat(link): hide a device's songs while it is not connected
A paired device's songs need it connected, so the Library now hides
them once it has been disconnected for 10 s and shows them as soon as
it connects again: a phone's songs on the desktop, a computer's songs
on a phone. The device's Library source is marked unavailable, which
the visible library view already hides, and its status reads "Not
connected". In a phone's background no grace runs; resuming starts a
fresh one, so an iPhone dropping the link on purpose changes nothing.

Other network sources keep their state through outages, reconnect
scans skip network sources (Link refreshes its own songs), and a
connecting device may rescan before the availability write lands.

A "Hide songs while disconnected" switch on the phone's Link page and
the desktop's Phones section turns it off; it is on by default.
2026-11-08 02:42:18 +07:00
zarzet 7f6d8436c3 feat(extensions): check the store in the background and auto-update
The Store tab badge stayed at zero until the tab was opened, because
only the tab loaded the store. The shell now checks the store after
startup (once extensions are ready) and again on returning to the
foreground when the last check is older than six hours. Nothing runs
without a saved registry URL, and failures are only logged.

A new App setting, on by default, then updates every installed and
enabled extension whose store update this app version can run. Updates
go one at a time through the store's serialized path, wait for the
download queue to be idle, keep the old version on failure without
retrying that version this session, and end with one short notice.
Background failures stay off the Store and Extensions screens.
2026-11-08 02:21:02 +07:00
zarzet b99f863d2f feat(lyrics): translate the lyrics of downloaded songs
A translation was saved only after the player had shown it, so a song
downloaded and played offline had none. Settings > Lyrics > AI
Translation gains Translate Downloads, off by default because every
download is a request on the user's API key.

While it is on, each finished download's lyrics are translated into the
chosen language (or the second language when they are already in it),
one song at a time, and saved as Save Translation to File does: into the
song's lyrics or a .mlrc file next to it, as Save To chooses. The result
lands in the translation cache at once, so the player shows it before it
is written. Song files are written once the download queue is idle,
because finishing an album rewrites its earlier files for ReplayGain.
Lyrics that already carry a translation, songs without lyrics and
network songs are left alone; a song that fails is logged and skipped.
2026-11-08 01:14:32 +07:00
zarzet d7c6462cc7 feat(home): let the user pick the Home shortcuts
The four Material Home shortcuts were fixed. A long press or right-click
on a tile now opens Change shortcut, a choice sheet of nine shortcuts
(Shuffle library, Equalizer, Listening statistics, Network storage,
Loved, Wishlist, Favorite Artists, New releases and Mornye Link), and
Reset shortcuts. Picking one already on Home swaps the two, so the same
sheet also reorders. The choice is saved in settings, so backups keep
it, and unknown names fall back to the defaults. The first shortcut keeps
the emphasized fill.
2026-11-08 01:00:08 +07:00
zarzet 48a859cc32 feat(settings): turn the new playback engine on by default
Android now plays ordinary songs through the media3 engine unless the
user turns the beta switch off. The subtitle now tells users to turn it
off when songs fail to play or sound wrong, instead of suggesting they
try it.
2026-11-08 00:35:41 +07:00
zarzet 8e16a1d5eb feat(player): play ordinary Android sources through media3 when enabled 2026-11-08 00:17:44 +07:00
zarzet 9379513549 fix(player): keep the lyric line opt-in and in sync
Follow-up to the lyric line under the track title (PR #847).

- The setting is off by default; Lyrics settings and settings search turn
  it on, with localized English and Indonesian strings.
- Opening the player no longer probes unresolved SAF documents for the
  line. It shows once playback publishes the resolved source, as before.
- The line follows audio_service's extrapolated position, the playback
  speed and the lyrics timing offset, like the desktop mini player. The
  timer targets the next line's start with the 80 ms lead applied, so it
  no longer fires zero-delay timers before each line, and it stops while
  paused, buffering, seeking or offstage.
- With the setting off nothing subscribes to playback.
- A translated line shows as plain text; word timing applies only to the
  original line.
- Text uses the theme's body style, the chevron mirrors in right-to-left
  layouts, alignment is directional and reduced motion skips the fade.
- The line reads as one Lyrics button to screen readers.
- Drops the unrelated Android lint opt-out and .gitignore entry, and uses
  generic test data. New tests cover the default, the offset, timing,
  seeking, and the player waiting for a resolved source.
2026-11-07 21:02:30 +07:00
PrathxmOp 0b51c40620 feat(player): add real-time synchronized lyrics preview under track header
- Render interactive single-line synced lyric preview under title and artist
- Support word-by-word real-time karaoke sweep with WordTimedLyricLine
- Interpolate playback clock with microsecond precision and schedule line boundary timers to eliminate line switch delays
- Auto-inspect embedded lyrics on Now Playing screen without requiring opening lyrics page
- Add playerShowLyricSnippet setting toggle
- Add comprehensive widget tests and disable release lint checks in android
2026-11-07 20:49:26 +07:00
zarzet 1521620246 feat(autoplay): add a randomness setting and rotate suggestions
Autoplay now remembers which songs it played or suggested, across
restarts, as hashed fingerprints only (no paths, URLs or metadata),
so related songs rotate instead of repeating. A new Autoplay
randomness slider in Playback settings decides how strictly: at the
lowest value repeats return least recent first, higher values widen
the pool and reduce score bias. It works with or without
personalized autoplay, whose description now says that turning it
off stops only preference learning.
2026-11-07 20:12:16 +07:00
zarzet 6c5e727450 feat(lyrics): show the sung line on the lock screen
An opt-in setting replaces the song title in the system media
controls with the current synced lyric line. Only the OS sees it:
the wrapper sits under the media session filter, so Last.fm,
Discord, widgets and Link keep the real title.

Lyrics come from the file and its .mlrc sidecar, never online.
Breaks of 3 s or more show the title, and the title changes at
most twice a second. Android shows lines only while the keyguard
is up and the screen is on; iOS cannot tell, so it shows them
while Mornye is in the background and restates the position first
so Now Playing does not jump back.
2026-11-07 20:12:07 +07:00
zarzet 8fe787a002 feat(convert): let Smart Dither use TPDF HP
Smart Dither only adds dither when lowering bit depth, but it always used
plain TPDF. A new Use TPDF HP switch makes it use high-pass TPDF instead,
in the convert sheet (shown while Smart is selected) and for automatic
FLAC conversion of downloads (under Smart Dither, saved as
autoConvertSmartDitherHighPass). The native Android finalizer, the
Dart FFmpeg path and Mornye Link conversions all honor it; Link sends it
as ditherHighPass, which older desktops ignore. The switch is off by
default, so existing conversions do not change.

The explicit Triangular HP option is now labelled TPDF HP, next to TPDF.
2026-11-07 19:48:04 +07:00
zarzet efe4df0e1f feat(motion): save animated covers as cover.mp4 in album folders
An opt-in Files setting copies a download's animated cover into its
album folder as cover.mp4, so file managers and other players find it.
Only folders that hold one album get it: the folder is planned again
with a marked album name, and flat, artist, playlist and shared Singles
folders are skipped, as is a song kept in a folder other than the
planned one. An existing cover.mp4 is never replaced, for local files,
Android folder access and network storage alike; songs of one album
that finish together write it once.

The player, mini player and album headers now show a cover.mp4 found
beside a local song before the artwork saved for the album. Android
documents are found through a new findSafSibling call and copied into
app storage once per version, since the video player only opens files.
2026-11-07 16:04:21 +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 fe33d6c7c9 feat(audio): add smart dither for file conversion 2026-11-07 01:23:32 +07:00
zarzet b2faa020d6 feat(library): sort album songs by plays or a custom order
Library albums get a sort button with Album Order, Most Played and Custom
Order, saved per album. Playback follows the chosen order. A rank drops
the disc sections, since it cuts across discs.
2026-11-06 20:53:20 +07:00
zarzet 7350f2e50f feat(lyrics): choose the translation language per song
A song already in the target language could not be translated, and
switching the setting for it looped between two languages.

Add a Second Language for songs already in the first, and keep a language
picked in the player with that song, with a Default row to clear it.
2026-11-06 20:53:20 +07:00
zarzet 435eb47074 feat(library): add ascending and descending album year sorting 2026-11-05 22:52:03 +07:00
zarzet 20e5b550d9 chore: neutralize UI terminology and clarify code comments 2026-11-04 22:53:56 +07:00
zarzet f93ccad4ff feat(theme): move a stored red Mornye accent to blue once
Every theme save wrote the accent, so installs that never chose one stored
the old red default and kept it after blue became the default. Move a stored
red to blue once. Red picked afterwards stays.
2026-11-04 20:01:12 +07:00
zarzet 95a2c5660a feat(mornye): pour menus, fold the bar into one glass, desktop artist row
Follow Music more closely across the Mornye style:

- The tab bar folds on a spring and its own glass narrows into the leading
  circle, with the side circles stretching along their travel.
- Context menus open as a drop at the control and pour out, height ahead of
  width, while their rows stay still.
- The desktop artist page puts Latest Release beside Top Songs in one
  snapping sideways row, with album shelves of four covers to the pane.
- The desktop Up Next panel carries only AutoPlay and AutoMix.
- Blue is the default accent; a saved accent stays.
- The desktop capsule's text, artwork radius, icons and seek bar move closer
  to Music.
2026-11-04 19:45:43 +07:00
zarzet 6d017634a9 feat(player): make automatic fullscreen lyrics optional 2026-11-04 04:31:17 +07:00
zarzet 6e07941b35 feat(library): save network songs offline with independent copies 2026-11-03 03:18:14 +07:00
zarzet 48f9f3a050 feat(lyrics): add fast and synced translation modes 2026-11-01 23:46:21 +07:00
zarzet 524ab69511 perf(link): filter remote rows and release published phone catalogs
Exclude network sources in SQLite before catalog paging and isolate mapping. After a successful publish retain only the catalog version and file lookup map, rebuilding song pages only when the desktop needs them.

The reconnect fixture releases 1,001 song records, serves files without a rebuild, and reproduces identical wire pages after remote state loss. Targeted SQL and Link regressions pass; update the old query-plan assertion for the existing Windows alias visibility check.
2026-11-01 21:25:38 +07:00
zarzet 2771a8c902 fix(library): persist the selected song sort order
Restore the last Library sort across launches in both styles, including desktop column sorting. Keep the saved song order when Playlists temporarily falls back from file-size sorting, and tolerate missing or invalid saved values.

Validation: 56 tests passed; 11 focused sort tests passed after the final adjustment; focused analyzer and diff checks clean.

Fixes #776.
2026-11-01 20:10:35 +07:00
zarzet b12f0399bd feat(collections): reorder saved songs in place 2026-11-01 14:13:56 +07:00
zarzet 586f0b781f feat(onboarding): add a What's New tour for 5.3
People updating to 5.3 now see a short tour once, after setup and the
tutorial: an overview, then pages for Mornye Link, Home mixes and
autoplay, the player and lyrics, Library and search, and the speed work.
Android Auto and exclusive output rows appear only where they exist.
Material and Mornye each draw it in their own style; Skip, Back and the
last page all mark it seen, and About can open it again.

New installs mark the tour seen when setup finishes, so only updates
show it. The release key lives in AppInfo.whatsNewRelease.
2026-11-01 00:42:00 +07:00
zarzet 8e24b08fec feat(download): add FLAC quality caps and Opus 160 kbps
Add FLAC auto-conversion with maximum bit depth and sample rate in foreground and Android background downloads. Preserve lower source rates, artwork, metadata and output quality.

Keep 48 kHz available for mixed-source batch conversion and add 160 kbps to manual, batch and automatic conversion.

Validation: 122 Flutter tests and 26 Android JVM tests passed. Analysis of lib and test passed.
2026-11-01 00:06:41 +07:00
zarzet b336075b77 perf(library): match collection history keys once per page data
The visible history membership of an open album, playlist or artist
page rebuilt on every history state change (each completion, each
coalesced index bump, each count refresh) and re-derived, for every
track, the Spotify ID candidates (a set, a lowercase pass and a URI
parse), the trimmed ISRC, the title and artist key and the lookupKey
string. Desktop pages rebuilt the lookupKey list again per build.

The request snapshot now caches its lookupKeys, the visible-membership
notifier derives each track's in-memory index keys once per request,
and it returns its previous set when neither the lookup items (which
own the indexes) nor the persisted keys changed. DownloadHistoryState
exposes its title and artist key and an index read by that key. Album,
playlist and artist pages read the cached keys.

Same sets as before: tests compare against a copy of the old per-track
matching over tricky IDs, ISRCs, case and 300 random rounds. Host, a
1,000-track page with 100 history items: a change of the lookup items
went from about 990 us to 185 us, a count or revision change from
about 990 us to 22 us, and 31 history changes read no track field.
2026-10-31 01:30:13 +07:00
zarzet 152bb36d2e feat(lyrics): let synced lyrics run later or earlier than playback
Audio over Bluetooth reaches the listener late, so synced lyrics ran
ahead of what was heard (#753). Lyrics settings gain Lyrics timing: a
slider from 2 s earlier to 2 s later in 0.1 s steps, saved on release,
with a reset.

The offset moves every line and word of the player's lyrics and the
desktop mini player's, so line focus, word sweeps and countdowns follow
it together. Tapping a line still seeks to where it is sung, and a
long-pressed line opens sharing with its own time.
2026-10-29 23:58:23 +07:00
zarzet d58565d287 feat(library): suggest songs under albums, singles and playlists
Albums, singles and playlists, online and in the Library, end with
"Suggested songs": up to ten songs like the ones above that the collection
does not hold yet, each with a preview, an add button and a click or tap
that downloads it. On a user playlist the add button adds the song there
and it leaves the suggestions; elsewhere it opens the playlist picker.
Phones list the songs as rows, desktop in the page's song table.

Suggestions come from a new optional extension method, getRelatedTracks,
which extensions declare with the relatedTracks capability: it takes up to
three of the collection's songs and returns songs in the shape of search
results. The extension most seeds came from is preferred so it can use
their IDs. Without such an extension, the first metadata provider is
searched by the collection's artists. A refresh button starts from other
songs, and loaded suggestions stay for ten minutes.
2026-10-29 02:23:07 +07:00
zarzet 8368e96a68 feat(lyrics): romanize non-Latin lyrics with the AI translation
Lyrics in Japanese, Korean, Chinese, Arabic and other non-Latin scripts
are hard to sing along to from a translation alone. When a song has
lines outside the Latin alphabet without a provider romanization, the
translation request also asks for one in each language's usual system
(Hepburn, Revised Romanization, Pinyin with tone marks, common
transliteration). It arrives in the same reply, is cached with the
translation and shows as the existing pronunciation line, which the
lyrics menu already hides or shows. Provider romanizations, which may
be word timed, are kept.

A saved translation from before is asked for again only when the
listener taps Translate. An "Add Romanization" switch in AI translation
settings, on by default, stops asking for it.
2026-10-28 20:43:10 +07:00
zarzet a0dd76f55d feat(player): compact player beside idle lyrics
Material's Playback settings gain "Compact player" (off by default). In
portrait, lyrics left idle while playing shrink the player to a smaller
one instead of hiding it: a one-line title and artist with a queue
button, the seek timeline, and the compact expressive transport with the
elapsed and total times beside it. It unfolds in the same spring as the
full controls fold, so the lyrics take the room they leave.

Touches on the compact player (skip, seek, play-pause, the queue button,
a swipe up for the queue) keep it compact; a touch elsewhere brings the
full player back, as before. The queue stays reachable while the app
bar's buttons are faded.
2026-10-27 02:10:27 +07:00
zarzet c2db8ab4b6 feat(player): gapless playback
The next song used to load only after the current one ended, which
left a short silence between songs. With Gapless playback on (the
default), the player loads the next song on a second deck 30 seconds
before the end and starts it the moment the current one completes.

The decks gain setNextDeck. The Android fork links its players with
MediaPlayer.setNextMediaPlayer, so the platform starts the next song
itself; the Darwin fork resumes the linked player first thing in its
end-of-item handler, prerolled when linked. libmpv decks cannot hand
over their output, so on Windows and Linux the loaded deck starts on
the completion event.

AutoMix replaces gapless playback while on, and repeat one, USB
bit-perfect and exclusive output keep the ordinary transition. A queue,
shuffle, repeat or settings change, a pause, a stop or Previous drops
the prepared song; a seek keeps it. Playback settings gain the switch,
which the settings search finds as well.
2026-10-27 00:08:16 +07:00
zarzet 1f12076765 feat(search): recognize songs playing nearby
A microphone button in the empty search field listens to the room and
names the song, on phones and desktop.

- The audio fingerprint and the Shazam request run in Rust behind a new
  recognize_song data job, so every platform shares one path.
- Listening sends the audio so far at 4, 8 and 12 seconds and stops at
  the first match; quiet or short clips are reported instead of sent.
- A match can be played from the library (by ISRC, then title and
  artist), searched in Mornye, or opened in Shazam. Recent matches are
  kept in a local history.
- Android asks for the microphone only when listening starts; iOS and
  macOS gain the microphone usage description and entitlement. The Linux
  package recommends pulseaudio-utils for capture.
2026-10-26 01:33:56 +07:00
zarzet b8672fc27b feat(lyrics): translate lyrics with an AI provider
Translate the current song's synced lyrics into a chosen language with
the user's own API key. OpenAI, OpenRouter, any OpenAI-compatible server,
Gemini and Claude are supported, with a model list, a connection test and
an optional extra instruction.

- Keys live in secure storage per provider, never in the settings JSON.
- Translations are cached apart from the lyrics, keyed by the lyric text,
  target language, provider and model; lyric files are never rewritten.
- Repeated lines go once, timing tags are stripped, malformed batches are
  retried then split, and missing lines stay untranslated.
- Errors map to localized messages; rate limits wait out a short
  Retry-After.
- The player and desktop lyrics menus pick the language and show
  progress; automatic translation is off by default.
2026-10-26 01:33:56 +07:00
zarzet 68f5623009 feat(player): show the cover full screen by default in Material
Until a cover style is chosen, Material now fills the top of the player
with the artwork and Mornye keeps the card. The card option is labelled
Card, since it is no longer the default. A saved choice still applies in
both styles; releases never shipped the setting, so no migration is
needed.
2026-10-26 01:28:44 +07:00
zarzet 457d074b28 feat(lyrics): let Mornye's lyrics blur strength be set
Mornye blurs the lyric lines around the current one at a fixed strength.
Lyrics settings now scale it from off to 150% (default 100%), with a
preview line that blurs as the slider moves. Off skips the filter. The
setting shows only where the device draws the blur (Liquid Glass).
2026-10-26 01:25:47 +07:00