This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Documentation

Orpheus is complete and tested: a green unit and widget suite, a clean analyzer, and every release build produced and verified by CI on every pull request.

Where to start

Overview — what Orpheus is, what it deliberately does not do, and the decisions behind both.

Architecture — how it is put together: the layering, the domain models, and the flows that matter, drawn as diagrams generated from the source rather than kept as pictures.

Specifications — the normative documents. Every use case, requirement and business rule this application is built to.

Downloads — the current release, for each platform.

Changelog — what changed in each release.

Contributing — building it from source, running the tests, and how a release is made.

1 - Overview

What Orpheus is, what it refuses to be, and why.

The problem

A person with music on disk has two bad options.

A streaming client does not play their files. It plays a catalog somebody else curates, requires an account, requires the network, and stops working the day a licence lapses. The record they bought is not in it.

A desktop music player plays their files and stops at the edge of the desk. The same library is unreachable from the phone in their pocket.

Orpheus is the third option: one player, the owner’s own files, the same interface on Windows, Linux and Android.

What it does

Reads a library from folders you chooseRegisters one or more folders, walks them, reads the tags out of every audio file and pulls out the cover art. Nothing is indexed that you did not point it at.
Browses by artist, album, song and genreIn rows or as a wall of sleeves, with a breadcrumb back out of whatever you drilled into. Genres have a tab of their own: a record is listed under every genre its tracks carry, and playing a genre plays only the tracks tagged with it.
Plays a track, a record, an artist, or everything shuffledWith a queue you can see and jump around in, repeat, and a resume point per track.
Shows what is playing everywhereA persistent bar across the bottom, and a full player with the record’s own sleeve as large as the window allows.
Draws the music itselfThe bars on the player are the spectrum of the recording, measured from its own samples by the engine that plays it.
Keeps playing on AndroidFrom a notification and the lock screen — and stops for a phone call, and for headphones pulled out of the socket.
Shows the words, in time with the musicYour own files first; a lookup for the tracks that have none.
Selects several songsTouch and hold a song, or Ctrl-click or Shift-click it, in any list of songs, and tick the ones you want — then edit their tags together, wherever they come from. A song’s own menu is on its ⋮ button or a right-click.
Keeps playlistsAdd songs, a selection, an album or an artist from their ⋮ menus, and play the result in the order you arranged it, shuffled, or from any song. Give a playlist a cover of your own or let it show its albums’ covers, export it to .m3u, delete it without touching a song. A song whose file has gone stays in the list, greyed out and skipped. Playlists live in Orpheus’s own data, never in your music folders.
Keeps two playlists for youFavourites lately and All-time favourites sit at the top of Playlists and fill themselves as you listen: the songs you have played most in the last 30 days, and the songs you have played most ever, up to 50 each. Play, shuffle, export or copy them into a playlist of your own; they cannot be edited. Show auto playlists in the preferences hides them, and your plays are still counted.
Exports your dataPreferences → Your data → Export my data (JSON)… saves your library, playlists, auto playlists, play history and statistics to one JSON file you choose, to read in any tool. It only reads, and writes only that file. The layout is documented and versioned.
Backs up and restores OrpheusBack up Orpheus (ZIP)… adds your playlists’ cover pictures and your preferences to that data, in one ZIP. Restore from a backup… reads it, or an exported JSON, on this device or another: it shows the music folders the backup names so you can point Orpheus at your music, scans, matches the backup’s songs to your library by path and then by tags, and lets you Merge, Skip or Replace the playlists, the play history and the preferences separately. Merge is the default and loses nothing; Replace says what it removes first; a part either side could not read is not written over. Your music files are never touched.
Fixes tags, from MusicBrainz or by handAutofill a record from MusicBrainz, or edit one track’s tags and cover yourself — or, from an album’s or an artist’s ⋮ menu, the shared tags of all its songs at once; fields they disagree on show as mixed and are left alone unless you type in them. Only what you confirm is written.
Fixes the tags of many songs at onceAutofill tags… on an artist, a genre, a playlist, a selection, or the whole library from the Music tab’s ⋮ menu. Orpheus says how many songs and records that is and about how long it will take, then looks them up on MusicBrainz in the background. The records it is sure of are written without asking, replacing their current tags; the doubtful ones are kept, with the reason, for you to check in the usual review. You can stop it and keep what was written.
Says what you actually listen toTotal plays, and the most played tracks, artists, records and genres — counted from your own listening and nobody else’s.
Adapts to the windowA rail down the side on a desktop, a bar across the bottom on a phone.
Light and dark, English and Brazilian Portuguese

What it deliberately does not do

It changes your files only when you ask. No renaming, no moving, no deleting, no transcoding. The one change it ever makes to an audio file is to its tags, from an autofill whose every change you saw and confirmed, an autofill of many songs that you started knowing it writes the matches it is sure of without asking, or an edit you made by hand — and it refuses a file another program changed since it was read. Besides that, it writes a .lrc next to a track whose words it looked up, a new file and never a replacement for one you wrote.

Almost no network. No streaming, no scrobbling, no telemetry, no analytics, no crash reporting, no cover art fetched unless you ask. There are three exceptions: the lyrics lookup and, on Windows and Linux, the check for a newer release (Keeping it up to date), both of which can be turned off, and the MusicBrainz and Cover Art Archive lookups an autofill makes when you start one.

That last promise is enforced rather than asserted. The Android package declares an exact set of permissions, and CI reads them back out of the built package and fails the build on any permission not on that list — including one merged in by a dependency.

No accounts, no sync, no cloud. One person, one machine, one library. Nothing Orpheus sends identifies you or persists between requests: no account, no key, no identifier of any kind.

No library management. Organising and de-duplicating a music collection is a different program. This one reads what is there, and fills in tags only when you ask it to.

What leaves the machine for the words

For a track with no words on your machine — no .lrc beside it, no SYLT frame, no lyrics tag — and only while you leave the lookup on, Orpheus asks a lyrics service for them using that track’s artist and title, with its record and length where the tags give them.

It sends nothing else: not the file’s name, not its path, not your library, not what else is on the machine. A track whose tags do not give both an artist and a title is not looked up at all, because a lookup on a title alone is a guess between every recording that shares the name.

See the lyrics flow for exactly how that is ordered.

How it is built

Flutter, one source tree, three targets. The playback engine is libmpv through media_kit — the one engine in its class that covers Windows, Linux and Android with the same API and the same codec range, without transcoding anything.

Tags are read in pure Dart, which matters more than convenience: it is the one component that would otherwise need a native build per target, and a reader that cannot run in a test is a reader whose parsing nobody checks.

There is no database. The catalog is a JSON document, read once and held for the run — a library of tens of thousands of tracks is a few megabytes of tags, and every screen in the music area needs all of it to group by.

2 - Architecture

The layering, the domain models, and the rule every feature follows.

The shape of it

Orpheus is organised by feature, and each feature by layer. There is no models/, services/, widgets/ split — a change to how lyrics work touches one directory, not four.

flowchart TD
    P["presentation<br/><small>widgets, screens</small>"]
    A["application<br/><small>controllers, state</small>"]
    D["domain<br/><small>models, interfaces</small>"]
    DA["data<br/><small>files, tags, network</small>"]
    DI{{"core/di/providers.dart<br/><small>the single composition root</small>"}}

    P --> A
    A --> D
    DA -.implements.-> D
    DI -.binds.-> DA
    DI -.binds.-> A

    classDef pure fill:#4a6fa5,stroke:#2c4368,color:#fff
    classDef edge fill:#7a5c9e,stroke:#4a3560,color:#fff
    classDef root fill:#3f6b4f,stroke:#264530,color:#fff
    class D pure
    class DA edge
    class DI root

The rule that matters: domain has no Flutter and no IO. It is models and interfaces. data implements those interfaces at the outward edges — the filesystem, the tag reader, the playback engine, the network. Nothing in domain knows any of them exist.

That is what makes the whole test suite run without a real audio engine, a real filesystem or a real network: every outward dependency is an interface bound in one place, and a test overrides the binding.

The features

FeatureWhat it owns
libraryRegistering folders, scanning them, the catalog, cover art
playbackThe queue, the engine, the player screen, the spectrum bars
lyricsFinding a track’s words, and reading along with them
statsThe play threshold, the history, and the rankings
shellThe frame: navigation, the playback bar, preferences

The library model

What a scan produces, and what every screen in the music area reads from.

classDiagram
    class MusicCatalog {
        +List~MusicEntry~ entries
        +DateTime? scannedAt
        +bool isStale
        +Map~String, MusicEntry~ byPath
        +bool isEmpty
        +entryFor(AudioFile) MusicEntry
        +entryAt(String path) MusicEntry?
    }

    class MusicEntry {
        +AudioFile file
        +TrackMetadata metadata
        +String? albumArtistOfRecord
        +String? album
        +String? artist
        +String? albumArtist
    }

    class AudioFile {
        +String path
        +int sizeInBytes
        +DateTime modifiedAt
    }

    class TrackMetadata {
        +String? title
        +String? artist
        +String? albumArtist
        +String? album
        +List~String~ genres
        +int? track
        +int? disc
        +int? year
        +Duration? duration
        +String? coverId
    }

    MusicCatalog "1" *-- "many" MusicEntry
    MusicEntry "1" *-- "1" AudioFile
    MusicEntry "1" *-- "1" TrackMetadata

Three things in that model are worth explaining, because each exists to fix a real bug rather than to be tidy.

byPath is built once and lazily. The player asks “what is this file?” for every track it opens and every frame the bar draws, and a linear search of the whole library per frame is what that becomes without an index.

isStale marks a catalog read back from a document another version wrote. It is refused rather than half-read, so it holds nothing, and startup scans it whether or not the owner asked for a scan at every launch — otherwise an upgrade that changed the document would leave that owner with an empty library.

albumArtistOfRecord is how a compilation stays one record. Half-tagged libraries are the norm, so where a file carries no album-artist tag the answer is worked out across the whole record rather than falling through to the performer — which is what keeps a rap album with a guest on every track out of the artist list twelve times over.

The outward edges

Every one of these is an interface in domain with an implementation in data and a binding in the composition root. The right-hand column is what a test gets instead.

classDiagram
    direction LR

    class CatalogStore {
        <<interface>>
        +read() Future~MusicCatalog~
        +write(MusicCatalog) Future~void~
        +clear() Future~void~
    }
    class MediaPlayer {
        <<interface>>
        +Stream~PlaybackStatus~ status
        +open(String path, Duration startAt) Future~void~
        +play() Future~void~
        +pause() Future~void~
        +seek(Duration) Future~void~
        +setVolume(double) Future~void~
    }
    class LibraryScanner {
        <<interface>>
        +scan(List~String~ folders) Stream~ScanEvent~
    }
    class MediaSession {
        <<interface>>
    }

    JsonCatalogStore ..|> CatalogStore
    InMemoryCatalogStore ..|> CatalogStore
    MediaKitPlayer ..|> MediaPlayer
    FakeMediaPlayer ..|> MediaPlayer
    IsolateLibraryScanner ..|> LibraryScanner
    ScriptedScanner ..|> LibraryScanner
    AudioServiceMediaSession ..|> MediaSession
    SilentMediaSession ..|> MediaSession

SilentMediaSession is not only a test double. It is the honest answer on the two desktop targets, which have no notification and no lock screen — the Android session sits behind the same interface and is bound only there.

The flows

2.1 - Finding a track's words

The flow that reaches a lyrics service, and the order that governs it.

The order is the feature

It never varies, and every part of it is a rule written down in the specifications rather than a decision made in code:

  1. What this machine holds. A .lrc beside the track, then the track’s ID3 SYLT frame, then its lyrics text tag. Whatever these hold is the answer, and nothing else is asked.
  2. Only then, a lookup — and only if the owner has left it on.
  3. A sheet that came back is written beside the track as a .lrc, so the next launch finds it at step 1 and asks nobody anything.

The sidecar outranks both tags deliberately: it is the one of the three an owner can write, correct and delete with a text editor and no help from this application. Of the two tags, the timed frame outranks the text one, because a file carrying both was written by somebody who put the timed copy in SYLT.

The flow

sequenceDiagram
    autonumber
    actor Owner
    participant Panel as LyricsPanel
    participant Ctrl as LyricsController
    participant Local as FileLyricsSource
    participant Remote as LrclibLyricsSource
    participant Side as FileLyricsSidecar

    Owner->>Panel: presses the lyrics control
    Panel->>Ctrl: build()

    Ctrl->>Local: of(path)
    Note over Local: .lrc beside it →<br/>SYLT frame →<br/>lyrics text tag
    alt this machine has the words
        Local-->>Ctrl: Lyrics
        Ctrl-->>Panel: Lyrics
        Note right of Ctrl: nothing is asked of anybody
    else nothing here
        Local-->>Ctrl: null
        alt the lookup is turned off
            Ctrl-->>Panel: null
            Note right of Ctrl: nothing leaves the machine
        else the lookup is on
            Ctrl->>Ctrl: build a query from the catalog
            Note over Ctrl: artist + title required;<br/>record and length if tagged
            Ctrl->>Remote: find(query)
            Remote->>Remote: exact match, with the length
            opt no exact match
                Remote->>Remote: search, then rank the candidates
            end
            alt a sheet came back
                Remote-->>Ctrl: RemoteLyrics
                Ctrl->>Side: write(path, text)
                Side-->>Ctrl: landed, or refused
                Ctrl-->>Panel: Lyrics
            else nothing found, or the network refused
                Remote-->>Ctrl: null
                Ctrl-->>Panel: null
            end
        end
    end

    Panel-->>Owner: the words, or "no lyrics for this track"

What leaves, and what does not

The query carries the track’s artist and title, with its record and length where the tags give them. That is what is printed on the sleeve.

It does not carry the file’s name, its path, the library, what else is on the machine, or anything that persists between requests — there is no account, no key and no identifier of any kind. The service needs none, which is why it was the one chosen.

A track whose tags do not give both an artist and a title is not looked up at all. A lookup on a title alone is a guess between every recording that shares the name, and a file tagged that poorly is exactly the one whose words would come back belonging to somebody else’s song.

Choosing between answers

The exact endpoint is asked first, with the length — which is what separates the studio take from the live one, since the two share a title and an artist and share nothing about when a line is sung.

Where that misses, a search follows, and its candidates are ranked here rather than taken in the order they arrive:

flowchart LR
    A[candidates] --> B{timed?}
    B -->|yes| C[+4]
    B -->|no| D[+0]
    C --> E{length within 2s?}
    D --> E
    E -->|yes| F[+2]
    E -->|no| G[+0]
    F --> H{artist matches exactly?}
    G --> H
    H -->|yes| I[+1]
    H -->|no| J[+0]
    I --> K[highest score wins]
    J --> K

Getting that ranking wrong is not a cosmetic failure — it puts somebody else’s words on the owner’s track.

Nothing here is ever a failure

A 404, a timeout, a captive portal, a body that is not the JSON it claimed, a refused write: every one of them ends at the panel saying this track has no words. That is where the owner already was, and it is not a thing they can act on. A lookup is a convenience over a track that already had nothing.

The sidecar

The .lrc written beside the track is the only file Orpheus ever writes into a music folder, and the rules around it are what keep that defensible:

  • One file, in the folder the track is already in. The audio file is not even opened.
  • Never a replacement for a .lrc that is already there — that file is the owner’s answer, and this only ever fills a gap.
  • Written through a temporary file and renamed into place, so a process killed mid-write leaves either no sidecar or a whole one, never half of one the parser would read as truncated.
  • A refusal is reported, not thrown. Read-only mounts, network shares and Android’s scoped storage all refuse it, and none of them is a reason to withhold words the panel already has in hand.

On Android that refusal is the ordinary outcome rather than the exception: scoped storage grants read access to media and nothing that would let a process write next to the file it just read. The words show for the session; the saving is lost.

2.2 - Scanning a library

Why a re-scan of an unchanged library is nearly free.

What a scan is

A scan walks the folders the owner registered, reads the tags out of every audio file it finds, extracts cover art, and writes the result as a single JSON document beside the settings. That document is the library: it is read once at launch and held in memory for the run.

Everything expensive about that is avoided wherever it can be, because on a library of eleven thousand tracks the naive version makes every launch stutter.

sequenceDiagram
    autonumber
    participant App as ScanController
    participant Iso as scan isolate
    participant FS as filesystem
    participant Tags as tag reader
    participant Store as JsonCatalogStore

    App->>Store: read()
    Store-->>App: the catalog from last time
    Note over App: on screen before a scan starts

    App->>Iso: scan(folders, previous catalog)

    loop each registered folder
        Iso->>FS: walk it
        loop each file
            Iso->>FS: stat the file
            alt same size and timestamp as last scan
                Note over Iso: tags carried over
            else new, or rewritten
                Iso->>Tags: read tags and cover
                Tags-->>Iso: TrackMetadata
            end
        end
    end

    Iso-->>App: ScanEvent stream (progress, then the catalog)

    alt the scan changed something
        App->>Store: write(catalog)
    else nothing added, removed or retagged
        Note over App,Store: not rewritten —<br/>encoding megabytes to<br/>produce the file already there
    end

The two savings

An unchanged file is carried over, not read. Every scan stats every file — the one at startup included — and a file with the same size and the same timestamp as last time keeps the tags the catalog already holds, so only the files that are new or were rewritten go to the tag reader. The stat is the cheap part, and it is what makes a file a tagger rewrote in place show up: that changes the file’s own timestamp and not its folder’s, and it is the change an owner makes most.

The catalog is not rewritten when nothing changed. A scan that added, updated and removed nothing carries every entry over from the stored document, so writing it back encodes several megabytes to produce a file identical to the one on disk.

Off the interface’s isolate

Encoding and decoding happen on an isolate. This costs more work in total — spawning is not free, and the entries are copied back — and the point is where the work lands. The interface’s isolate pays for the message rather than for the parse, and goes on drawing through it.

Startup is never gated on a scan

The library from the last scan is on screen before a new scan is started. A first launch shows an empty library and an invitation to add a folder; every launch after that shows what was there last time, and the scan updates it underneath.

Cover art

Covers are cached by the hash of their own bytes, in a directory beside the catalog. That makes the cache proportional to distinct pictures rather than to files — a twelve-track album contributes one picture, not twelve — and it means two records that happen to share artwork share one cached file.

2.3 - Playing something

The states a player can be in, including the two that are about failure.

The queue

Anything playable produces a queue: a track, a record, an artist, or the whole library shuffled. The queue knows what kind of thing it came from, which is what lets the player say what is playing rather than only which file.

classDiagram
    class PlaybackQueue {
        +List~AudioFile~ tracks
        +QueueKind kind
        +String? label
        +int index
    }
    class QueueKind {
        <<enumeration>>
        track
        album
        artist
        playlist
    }
    class QueueRepeat {
        <<enumeration>>
        off
        all
        one
        +next() QueueRepeat
    }
    class AudioPlaybackState {
        +PlaybackQueue queue
        +AudioStage stage
        +PlaybackStatus status
        +QueueRepeat repeat
    }

    AudioPlaybackState *-- PlaybackQueue
    AudioPlaybackState *-- QueueRepeat
    PlaybackQueue *-- QueueKind

label is carried but never worded here. The domain has no localized strings, so what an unnamed record is called is a presentation decision made once, on the way to the screen.

The stages

stateDiagram-v2
    [*] --> idle

    idle --> starting: something is played
    starting --> playing: the engine opened it
    starting --> offeringResume: a resume point exists
    offeringResume --> playing: resume, or start over
    playing --> idle: stopped

    starting --> allFailed: every track refused to decode
    allFailed --> starting: something else is played
    allFailed --> idle: stopped

    note right of offeringResume
        A resume point is per track,
        and it is offered rather than
        applied — landing mid-song
        with no explanation is worse
        than asking.
    end note

    note right of allFailed
        Not "an error". A queue whose
        every file is unplayable is a
        state the screen has to show,
        and a single bad file is
        skipped rather than fatal.
    end note

The stage worth noticing is allFailed. A single file that will not decode is skipped and the queue moves on — a corrupt track in the middle of a record should not end the record. It is only when nothing in the queue could be opened that the player has something to say, and then it says it rather than sitting silently on a stopped transport.

Position, and what it costs

The engine reports its position several times a second. Everything that follows the music is driven from that one stream: the progress bar, the spectrum bars, and the lyric line that is lit.

The lyric lookup for “which line is being sung at this moment” is a binary search rather than a walk, for exactly that reason — it is asked on every position report for as long as a track plays.

The spectrum bars

The bars on the player are not decoration and not a random animation. They are the spectrum of the recording, measured from its own samples by the same engine that plays it, analysed once per track and cached against a key carrying the file’s path, length and modification time.

Until that analysis lands — the second or so after a track starts, and forever for a file that could not be decoded — a stand-in is drawn, derived deterministically from the track’s path so it is stable rather than jittering between frames.

flowchart LR
    A[track opens] --> B{analysed before?}
    B -->|yes| C[read the cached spectrum]
    B -->|no| D[draw the stand-in]
    D --> E[decode and measure, off the interface isolate]
    E --> F[cache it]
    F --> C
    C --> G[bars follow the music]
    D --> G

Keeping playing on Android

A foreground service is the only way Android lets a process keep making noise once it is no longer on screen. Orpheus asks for it with the type that says what for — mediaPlayback — and the notification and lock-screen controls come with it, carrying the sleeve and the transport buttons.

Audio focus arrives through the same seam: the phone call that should pause playback, and the headphones pulled out of the socket that should too.

Both sit behind the MediaSession interface, with a silent implementation bound on the two desktops — which have no such thing, and where a silent answer is the honest one rather than a stub.

3 - Specifications

The normative documents this application is built to.

Orpheus is specified before it is built. Every use case is written down, agreed and numbered before it is implemented, and the documents below are normative — where this site and a specification disagree, the specification is right.

They live in the repository rather than being copied here, so there is one copy of each and no chance of the two drifting apart.

Start here

DocumentWhat it holds
VisionStakeholders, positioning, and the F-xx features
System RequirementsThe FR-<AREA>-xx and NFR-xx requirements, the data model, and traceability
Use Case SpecificationThe UC-xx use cases, their flows, and their AF-xx alternatives
Business RulesThe domain entities and the BR-xx rules
Data exportThe layout of the file Export my data (JSON)… writes and of the ZIP Back up Orpheus (ZIP)… writes: every field, how songs are referenced, how a restore reads them, and how they are versioned

How it is built and checked

DocumentWhat it holds
Development WorkflowThe branch pattern, issue lifecycle, and Definition of Done
Testing SpecificationHow tests are written, named and run
Technology StackThe single source of truth for every technology and version
Operations & InfrastructureLayout, storage, startup, permissions, logging, and the IR-xx requirements

Context

DocumentWhat it holds
Project OverviewWhat it is, who it is for, and how success is measured
WorkflowHow one use case is delivered, step by step
BrainstormThe original free-form notes the project grew from

The promises that are checked, not asserted

Three of the rules in those documents are enforced by CI rather than trusted:

The Android package asks for exactly the permissions it declares. The workflow reads them back out of the built package — the merged manifest, not the one in the repository — and fails on anything not on the list. That is where a permission wanted by a dependency would otherwise arrive unannounced.

No test reaches outside its process. Not to the developer’s own preferences, their application-support folder, their listening statistics, the native audio engine, a platform media service, a music folder, or the network. Every one of those is an interface bound in one composition root, and every one is overridden in the test harness.

The analyzer is clean, with no known-warnings list. The moment there is one, warnings stop being read.

4 - Changelog

Notable changes in each release.

All notable changes to Orpheus are recorded in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

1.8.3 - 2026-11-25

Fixed

  • On Linux, playing a song no longer crashes the application on systems whose libmpv runs its scripts on LuaJIT, as Arch’s (and so Omarchy’s) does. The window closed at the first song clicked, more often with an audio device that fails to open, such as a USB headset’s receiver left plugged in with the headset off. Flutter’s engine carries an unwinder of its own under the system’s names, and LuaJIT was handed it in place of the system’s; the application now loads the system’s first. Since 1.7.2, from Flutter 3.50.

1.8.2 - 2026-11-24

Fixed

  • On Linux with an NVIDIA graphics card, the window shows the whole application again, under Wayland and X11 alike. Since 1.7.2 the window showed only the application’s top-right quarter, drawn into its bottom-left quarter, with the rest black. This was the problem seen on Omarchy, which 1.8.1 did not fix: it came from Flutter 3.50.0, which draws differently on NVIDIA’s driver, and Flutter 3.50.1 fixes it.

Changed

  • Orpheus is built with Flutter 3.50.1.

1.8.1 - 2026-11-24

Fixed

  • On Linux under Wayland, the window’s contents no longer come out at the wrong size when the window’s display scale changes after it opens, as it did on Hyprland (Omarchy) at launch, and as it does anywhere the window moves between monitors of different scales. The application was drawn twice its size with only its top-left corner showing, or shrunk into that corner. Since 1.7.2, from Flutter 3.50’s Wayland renderer.

1.8.0 - 2026-11-23

Added

  • Keep playing when the queue ends. Preferences → Playback → When the queue ends chooses between stopping, as before, and carrying on with random songs by the same artist, of the same genre or from the whole library — one at a time, following the song that just played, and leaving out what is already in the queue while anything else is left. Repeat still wins, and next on the last song plays one too. The choice is kept in a backup.

Changed

  • The shuffle beside the Music tab’s views follows where you are: inside an artist it shuffles the artist, and inside a record the record. At the top of Artists, Albums or Songs it still shuffles everything, and under a genre the same rule applies one level down.

1.7.2 - 2026-11-14

Changed

  • Orpheus is built with Flutter 3.50.0.
  • Dependencies: window_manager 0.5.2 → 0.7.0, which places the desktop window through a native library of its own instead of a Flutter plugin. On Linux it needs libx11-6 and libxi6, which GTK already depends on, so nothing new needs installing.

1.7.1 - 2026-10-29

Changed

  • Releases are built by Jenkins instead of GitHub Actions. The Android package is built and signed on the release agent, and the build stops unless the signing key matches the fingerprint in android/signing-sha256.txt. The release carries one SHA256SUMS.txt for all its files.
  • The documentation site moved from GitHub Pages to https://docs.artur-rios.tech/orpheus.
  • Dependencies: archive 4.2.0 → 4.5.2 and audio_metadata_reader 1.8.0 → 1.8.1.

Fixed

  • Restoring a backup skips a cover stored with zstd compression, as it already skipped bzip2 ones. Orpheus never writes either, and with archive 4.5, which can read zstd, the app no longer built without this.

1.7.0 - 2026-10-21

Added

  • Autofill many songs at once. Autofill tags… is now on an artist’s menu, on a genre’s new ⋮ menu, on a playlist’s menu, in the bar over a selection of songs, and in a new ⋮ beside shuffle in the Music tab, which covers the whole library or, inside a genre, its songs. Choose the tags, and Orpheus says how many songs and records that is, about how long it will take, and that the matches it is sure of are written without asking and replace the current tags. It then looks the records up on MusicBrainz one after another, in the background: a record whose official release has the same title and artist and a track of the same title for every song is written, and every other one is kept, unwritten, with the reason, for you to open in the usual review. A screen and an indicator in the app bar show the progress and what needs you; you can stop it and keep what was written, and a lost connection pauses it. The summary lists what was updated, what needs you, and what was not found, could not be changed, could not be written or was not reached. An album’s own menu keeps its reviewed autofill.

1.6.0 - 2026-10-19

Added

  • A letter bar beside Artists, Albums and Songs. Tap a letter, or drag along the bar, to jump to the first name under it; a large letter follows your finger while you drag. Names starting with a digit or symbol are under #, accents are ignored (Édith is under E), and letters with nothing under them are dimmed. It works with rows and sleeves alike, and under a genre too. Artist and album rows now keep their name to one line.

Fixed

  • Coming back to Artists, Albums or Songs by the breadcrumb returns to where you had scrolled, instead of the top. Each view, and rows and sleeves, keep their own place while Orpheus runs, including when switching between views.
  • Names with accents sort with their plain letter. Ângela is among the As and Édith among the Es in Artists, Albums, Songs, Genres and the rankings, rather than after Z. Equally good search results follow the same order.

1.5.1 - 2026-10-19

Fixed

  • A track whose lyrics had been saved beside it as a .lrc file plays again. Since the words were saved, opening it skipped it as a track that could not be played, and its energy could not be measured either.

1.5.0 - 2026-10-19

Added

  • Browse and play by genre. A new Genres tab, between Music and Queue, lists every genre in the library with its number of tracks and their length, and a No genre group last. Open one to browse the artists, records and songs that carry it, as rows or sleeves, with a breadcrumb back out. A record is listed under every genre any of its tracks carries and opens whole; playing a genre, or shuffling it, plays only the tracks tagged with it, and playing an artist inside a genre plays that artist’s records listed under it. A track with several genres (Rock; Pop) is under each, genres are matched ignoring case and spaces, and the tab remembers where you were apart from Music.
  • A search selector. Under the results, choose All, Songs, Artists, Albums or Genres to match the term against only that kind of tag — a search for Rock under Songs finds titles, not tracks tagged Rock. The choice is kept while Orpheus runs and is All again at the next launch; results stay a list of tracks. Genres are now searched too, ranked after records.
  • Edit the tags of a whole album or artist at once. From an album’s or an artist’s ⋮ menu — or a right-click or a long press — choose Edit tags… to change the artist, album artist, album, track total, disc number and total, year and genre of every song in it, and to replace its cover or remove it. A field the songs disagree on shows as mixed and is left alone unless you type in it; title and track number are not offered for more than one song. Only the fields you change are written, each song measured against its own file. MP3 and FLAC files are written; any other format is listed before you save and skipped, and a song that cannot be written is named with its reason while the others stay written, with Try again for those in use, failed, or changed since they were read. An album or artist with one song opens the one-track editor.
  • Select several songs. In any list of songs — all of them, inside an album or a genre, or search results — touch and hold a song, or Ctrl-click or Shift-click it, to start a selection. Tick boxes take the place of the track number or cover, a tap picks a song instead of playing it, and Shift-click picks a stretch. A bar above the list shows how many are selected, with Select all, a ✕ to stop and Edit tags…; a right-click on a selected song offers the same action as Edit tags of N songs…. Esc, ✕, the system Back on Android, or leaving the list ends the selection, and so does a save that wrote songs.
  • Edit the tags of the selected songs together, even from different albums and artists: the same form as for an album or an artist, over exactly those songs. One selected song opens the one-track editor.
  • Playlists. A new Playlists tab, after Genres, lists them, the most recently changed first, as rows or tiles, with New playlist at the top. Each playlist’s menu — its ⋮ button, a right-click or a touch and hold — has Rename…, Choose cover…, Remove cover (only once it has a cover of your own), Export to .m3u… and Delete…, which asks first and never touches a song. The cover is a JPEG or PNG of your own, or else a mosaic of up to four of its albums' covers.
  • Add to a playlist. Add to playlist… is on a song’s menu, in the bar and the right-click menu of a selection, and on an album’s and an artist’s ⋮ menu. Pick a playlist, or New playlist… first in the list; the songs go at the end, and a message says Added N songs to X. Songs a playlist already holds are asked about — Add anyway, Skip those or Cancel — and a playlist may hold a song more than once.
  • Open a playlist to Play or Shuffle it, or tap a song to play from there. Drag a song’s handle to reorder, and use Remove from playlist on a song’s menu or on a selection, which here counts each copy of a song on its own and also offers Add to playlist… and Edit tags…. Back ends a selection, then closes the playlist. A song whose file the library no longer has stays in the playlist, greyed out and labelled Missing, and is skipped when it plays, so an unplugged drive does not empty a playlist.
  • Export a playlist to .m3u. Export to .m3u… writes an extended M3U in UTF-8 to the file you choose, and nothing else; the name is made safe for Windows.
  • Playlists are kept in playlists.json in Orpheus’s own data, never in your music folders, and every change is written atomically. A document Orpheus cannot read, or that another version wrote, is kept aside as playlists.json.bad-<time> and never overwritten; if it cannot be set aside, the Playlists tab shows an error and nothing is saved over it.
  • Auto playlists. An Auto playlists section at the top of the Playlists tab, above Your playlists, holds two playlists Orpheus keeps from what you listen to: Favourites lately, the songs you have played most in the last 30 days, and All-time favourites, the songs you have played most ever. Each holds up to 50 songs, most plays first and the more recently played first among equals, and a song the library does not hold is left out. Until at least 10 songs have a play recorded with its date in the last 30 days, Favourites lately is the songs played in the last 30 days by their total plays and says Getting to know your recent listening. They fill themselves as you listen. Open one to Play or Shuffle it, tap a song to play from there, or select songs to Add to playlist… or Edit tags…; its menu has Add to playlist…, which copies every song into a playlist of your own, and Export to .m3u…. They cannot be reordered, edited, renamed or deleted, and are never written to playlists.json.
  • Show auto playlists in the preferences, on by default. Off, the section is hidden and an open auto playlist closes; your plays are still recorded, so turning it back on finds the lists as your listening has made them.
  • Each play is now recorded with its date, and a song keeps the dates of its plays from the last 90 days. That is what Favourites lately is worked out from; the statistics screen shows the same numbers as before.
  • Export my data. Export my data (JSON)…, under Your data in the preferences, saves your library, playlists, both auto playlists, play history and statistics to one JSON file, in a place you choose; the suggested name is orpheus-data-<yyyy-MM-dd>.json. Songs are listed with their path, tags and length, the playlists with the details saved for each song, and the play history with songs the library no longer holds. It waits for the library, the playlists and the play history to load and does not freeze the window while it builds the file. It only reads: the one thing it writes is the file you chose. If the playlists or the play history cannot be read, or the library is being rebuilt after an upgrade or because its catalog could not be read, that section is empty, the file’s problems says why, and Orpheus says Exported, but some data could not be read; if the library fails to load, nothing is exported. The result is shown under the button. The layout is documented and versioned in docs/data-export.md. It holds no cover images, audio or preferences; Restore from a backup… can read it back, as below.
  • Back up and restore. Back up Orpheus (ZIP)…, under Your data, saves one ZIP, suggested as orpheus-backup-<yyyy-MM-dd>.zip, that holds the data of Export my data (JSON)… exactly as it writes it, the cover picture of every playlist that has one, and your preferences with your music folders; the update you chose to skip is left out. About these exports shows what each file holds, and each says in a line what it is for. Like the export, a backup waits for the library, the playlists and the play history, does not freeze the window, only reads, and says Backed up, but some data could not be read when a source or a cover picture could not be; the layout is documented and versioned in docs/data-export.md.
  • Restore from a backup…, under Your data, reads a backup ZIP or an exported JSON, and says This isn’t an Orpheus backup or, for a file from a newer Orpheus, update first. For a ZIP it first shows the music folders the backup names, each found on this device or not, and yours: Choose folders… sets the whole set, and Continue applies it, which changes your music folders now, and scans the library with progress; cancelling later keeps them. Then it shows what the file holds and, separately for the playlists, the play history and the preferences, offers Merge, Skip or Replace, Merge to begin with. Merge never loses anything here: playlists are told apart by name and get the songs and cover they lack, each song keeps the higher play count, the later last play and the dated plays of both, and a preference still at its default takes the backup’s. Skip adds only what is wholly new. Replace says first what it removes. Songs are matched to your library by path, with a folder moved from the backup’s one music folder to yours, and then by title, artist, album and length within 2 seconds when exactly one song answers; one that cannot be matched keeps the backup’s path. A part the backup could not read is not offered, a part this device could not read is left alone, each part is written whole or not at all, and a part that fails does not stop the others. A summary says what was restored and what was not, including a playlist whose cover picture was too large (over 20 MB) to read, and a cover picture over that size is not accepted when you choose one. If something unexpected stops a restore after the music folders were changed, the screen says they stay changed. Your music files are never changed. From a JSON, the preferences and the covers are not restored, and it says so.

Changed

  • The first launch of this version scans the library once more, even with Re-scan the library at every launch turned off, because the catalog now keeps every genre a file holds and not only the first.
  • A genre containing a / is now one genre in MP3 files, as in every other format: Hip-Hop/Rap is no longer read as Hip-Hop and Rap. An MP3’s ID3v2.4 genre frame now keeps every value it holds, and numeric references such as (17) are still read as the genre they name. Genres are split at ;, | and ,. An MP4 file with several genre atoms still keeps only one.
  • A track with several genres now counts toward each of them in the statistics, and a genre’s share on the story card is of all plays, so the shares can add up to more than 100%.
  • The album row’s autofill button moved into its new ⋮ menu, beside Edit tags….
  • Touch and hold on a song now selects it instead of opening its menu, which is on its ⋮ button and a right-click. Touch and hold on an album or an artist still opens its menu.
  • On a phone, Edit tags… in a selection’s bar is an icon with a tooltip, where the bar is narrower than 480 logical pixels, so the count keeps its room. The bar’s other actions are icons at any width.
  • The play history, play-history.json, is now version 2, and an existing history is migrated: every song keeps its count and its last-played date, and it is never reset. The first time a version-1 history is read, a copy is kept as play-history.json.v1. An earlier release does not read it, but if you install one you can restore it by hand, by renaming it to play-history.json.
  • A play history Orpheus cannot read — not UTF-8 or not JSON, not a play history, or written by another version — is no longer started over and overwritten: it is kept aside as play-history.json.bad-<time>, and a history with a row or date that is not one has the original copied aside under that name before the rest is kept. If it cannot be kept aside, no plays are recorded until the next start, so that nothing is written over it; playback is not affected.

1.4.0 - 2026-10-13

Added

  • Edit a track’s tags by hand. From a song’s menu — its ⋮ button, a right-click or a long press — choose Edit tags… to change its title, artist, album artist, album, track and disc numbers and totals, year and genre, and to replace its cover with a JPEG or PNG or remove it. Only the fields you change are written, through the same MP3 and FLAC editors autofill uses, and the library updates without a scan. A file in use can be tried again, and one another program changed since it was read can be reloaded (#53).

1.3.0 - 2026-10-12

Added

  • Autofill tags from MusicBrainz. On a record, or from a track’s menu, choose which tags to fill — title, artist, album artist, album, track and disc numbers and totals, year, genre, and optionally the cover — and Orpheus finds the release, shows every change file by file as old → new, and writes only the ones you leave ticked, into the files and the library. Another release or another search is one tap away. Orpheus now changes audio files for this and nothing else; on Android 11 and later the app asks for all-files access the first time you confirm an autofill (on Android 7 to 10 write access comes with the read permission). MP3 and FLAC files can be written, by Orpheus’s own tag editors, which change only the tags asked for and keep every other byte; other formats are read-only. A file another program changed since it was read is not written, and on Windows the track playing may be refused as in use.

Changed

  • On Windows and Linux the window opens maximized. Un-maximize it and close it, and the next launch opens it where you left it; maximize it again and it opens maximized again. The restore button goes back to the size you last gave it.
  • The scan at startup reads again every track whose file changed since the last scan, so a title, artist or album corrected in a tag editor shows up everywhere the next time Orpheus starts — the library, the player, the queue’s name and the statistics. It used to trust a folder that looked unchanged and keep the old tags until a scan was started by hand. The scan report says how many tracks were updated.
  • A folder added or removed while a scan is running is scanned as soon as that scan finishes, instead of waiting for the next one.
  • Orpheus is now released under the Artur Rios Attribution License instead of the MIT License. It stays free and open source; a copy, fork or product built on it credits the author with a link to artur-rios.tech or github.com/artur-rios. Releases up to 1.2.1 keep the licence they were published under.
  • A beta on Windows or Linux is offered the next beta as well as the release it leads to; a full release is still only ever offered full releases. Versions are compared by full SemVer 2.0.0 precedence.
  • Release process: a pre-release’s -beta.<n> is now part of the version: in pubspec.yaml (1.3.0-beta.1+7), its packages are named with it (orpheus-setup-1.3.0-beta.1.exe), and the release workflow requires the tag to be exactly v followed by that version. See CONTRIBUTING.md, Versioning.

Fixed

  • Not now, Skip this version and Close on the update prompt close it. They used to empty it and leave the application dimmed behind an invisible dialog that swallowed the next click.
  • The update prompt says Downloading while the download runs and Checking only while the download is being verified; the two were the other way round.
  • On Android, playback pauses for a phone call and for another player taking over the sound, and resumes after the call only if it was playing before it.
  • Choosing something that cannot start — a track with a saved position, or a record whose files are all missing — stops what was playing, rather than leaving it playing with no controls.
  • A record whose last track is missing ends normally, or goes round again on Repeat all, instead of reporting that nothing in it could be played.
  • A track resumed from past half way is not counted as a second play; starting a track again with Previous counts its replay; and a very short track heard to the end always counts.
  • Statistics: tracks that share a title are ranked as separate tracks rather than added together; the story’s share of plays is worked out over everything played rather than only the top ten; and tracks no longer in the library are not reported as untagged.
  • A record or artist that is open in the library and gets renamed by a re-scan stays open under its new name.
  • Removing a folder rescans the library again; the folder’s tracks used to stay until the next scan.
  • On Android, the back gesture no longer spends a press clearing a one-letter search that was not showing.
  • A beta on Windows or Linux reported itself as the release it leads to (1.3.0 for v1.3.0-beta.1), so it was never offered that release when it shipped.
  • The Portuguese wording of counts is now correct when a count is zero: the unreadable-files line, the play counts in the rankings and on the story card, the story card’s track count and the untagged-tracks note.
  • A full scan no longer re-reads the tags of every track after a restart and reports the whole library as added. Files that have not changed are carried over, as they are within one session.
  • A change made to a folder while a scan was running is picked up by the next startup scan, rather than kept out of the library until a full scan. A memory card or pen drive’s coarse folder timestamps are allowed for as well.
  • A registered folder that is there but cannot be read is reported as unreachable, with the same help on the Folders screen, instead of being scanned as empty and having its tracks removed from the library without a word.
  • Choosing a track with a saved position while another one is playing offers the right position, and Resume resumes there; it used to drop to 0:00 a moment later and do nothing. The track that was playing ending meanwhile no longer starts the chosen one from the top before you answer.
  • Two scans asked for at once — at startup and from a folder just added — no longer both run, and neither is left hanging.
  • A .lrc file saved in an older single-byte encoding such as Latin-1 is read, instead of being passed over for the track’s tags.
  • A lyrics sheet you save beside a track while a looked-up one is being written is kept; the looked-up one is discarded.
  • The Linux installer’s per-user install goes to ~/.local even when XDG_DATA_HOME is set. It used to put the launcher and the menu entry under ~/.local/share/bin and ~/.local/share/share/applications, where nothing finds them.
  • The Windows installer no longer offers to remove “Orpheus” from a folder that only holds some other program’s uninstaller.
  • The lyrics lookup names the running version of Orpheus to the service, instead of always 1.0.0.
  • The album artist of a FLAC or Ogg file (ALBUMARTIST, or ALBUM_ARTIST) is read. A compilation tagged Various Artists used to be filed under whichever performer had the most tracks on it.
  • A double record whose tracks are only partly tagged with a disc number no longer has its two discs’ tracks interleaved: a track with no disc number is taken as disc 1.
  • Playing an artist queues their records in the order the artist’s page lists them.
  • A cover left half-written by a scan that was interrupted is written again by the next scan, instead of staying cut short.
  • A folder already registered is not added a second time under another spelling — another letter case on Windows, or a link to it.
  • In a lyrics sheet that gives two lines the same time, such as an original and its translation, the lines keep the file’s order and the first of them is lit.
  • On Android, the notification and the lock screen no longer show the previous record’s sleeve with a new track, and a track that stopped while the notification permission was being asked for is no longer posted afterwards as if it were playing.

Security

  • The in-app updater downloads into a new folder of its own rather than a predictable name in the shared temporary directory, so another account on the machine cannot plant or swap the installer that is checked and run.
  • The in-app updater refuses an installer or a checksum list that is not served over HTTPS, and abandons a download that stops arriving instead of waiting for it indefinitely.
  • The command the Linux updater hands over for a system-wide installation is quoted, so a path with a space in it still runs as written.

1.2.2-beta.1 - 2026-09-16

A pre-release built from the diagnose/android-usb-folder branch to diagnose folders on USB drives. It is not part of main.

Added

  • A diagnostic panel on the Folders screen, shown only when a folder could not be reached. It reports what Android lets the application see at every level of the folder’s path, with the error for each, and the storage volumes visible to it. It is deliberately raw and not translated, and is meant to come out again once it has done its job.

1.2.1 - 2026-09-10

Changed

  • On Android, when a folder on a memory card or USB drive is still unreachable after all-files access has been granted, the Folders screen now says what is left to try: close Orpheus and open it again with the drive in place.

1.2.0 - 2026-09-10

Added

  • Android can read a library on a memory card or a drive plugged into the phone. When a registered folder turns out to be unreachable, the Folders screen explains why and offers all-files access, which is asked for at that moment only.
  • A track name too long for the playback bar slides so the whole of it can be read. With reduced motion turned on in the system it stays still and is cut short as before.

Fixed

  • The previous-track button is back on the phone playback bar.
  • A second or later scan in the same session no longer stays on “scanning” forever.
  • The Android playback notification draws its icon, stays available while paused so play resumes from it, and is no longer lost when audio focus cannot be arranged.
  • An unplayable file is skipped once, instead of several error lines each skipping a track and sometimes emptying the queue.

1.1.0 - 2026-09-08

Added

  • The Windows and Linux builds check for a newer release at startup and offer it. Accepting downloads the installer, verifies it against the release’s SHA256SUMS.txt, and runs it; a Linux install under a system prefix gets the sudo command to run instead. On by default, and turned off under Updates in the preferences. Not on Android.
  • A story view of the listening statistics, one fact per card, where any card can be shared or saved as a picture.

1.0.1 - 2026-09-08

Fixed

  • The Android package is signed with the project’s own release key instead of a per-build debug key, so later releases install as updates. Coming from 1.0.0, which was signed with a throwaway key, Android needs the application uninstalled first, and that removes the library, statistics and settings.
  • On a phone, the music area’s view switcher gets a row of its own instead of wrapping its labels mid-word.
  • Closing the application on Windows hides the window at once instead of leaving it on screen while it shuts down.

1.0.0 - 2026-09-07

Added

  • A library read from the folders you register: a scan reads the tags (ID3, Vorbis comments, iTunes atoms, RIFF, APE) and cover art of every audio file, and the catalog is kept beside the application’s settings.
  • Browsing by artist, album and song, in rows or as sleeves, and search across titles, artists and albums.
  • Playback of a track, a record, an artist or the whole library shuffled, with a visible queue, repeat, a resume point per track, a persistent playback bar and a full player. A file that will not play is named and stepped over.
  • Background playback on Android, controlled from the notification and the lock screen, pausing for a phone call and for unplugged headphones.
  • Listening statistics: total plays and the most played tracks, artists, records and genres.
  • Sound bars drawn from the recording’s own spectrum.
  • Synced lyrics from a .lrc beside the track or from the track’s own tags, with an optional online lookup that saves the words as a .lrc beside the track.
  • Light and dark themes, in English and Brazilian Portuguese.
  • Release downloads: a Windows installer, a portable Windows archive, a Linux installer and an Android APK, with SHA256SUMS.txt.

5 - Contributing

Building from source, running the tests, branching and releasing.

This repository lives at https://git.techcraftsmen.net/artur-rios/orpheus. GitHub is a read-only mirror: open pull requests on the git server, not on GitHub. To clone it:

git clone https://git.techcraftsmen.net/artur-rios/orpheus.git

The normative rules for how work is delivered — branches, commits, the issue lifecycle, pull requests and the Definition of Done — are in the Development Workflow Document, and the tests are specified in the Testing Specification Document. This file collects what you need to build, test and release the application.

Prerequisites

  • Flutter 3.50.1, stable channel — the version the project is built and tested against (see the Technology Stack Document).
  • Linux: ninja-build and libgtk-3-dev to build, and libmpv to play (sudo apt install libmpv-dev mpv on Debian and Ubuntu). flutter test needs a C++ compiler, pkg-config and libgtk-3-dev too: it compiles window_manager’s native library, against the GTK, X11 and Xi headers that package brings.
  • Android: a JDK 17 and the Android SDK.
  • Windows: the MSVC toolchain Flutter’s Windows build needs, and Inno Setup for the installer.
  • The icon: Python 3 with Pillow.

Layout

lib/
  core/            themes, spacing, breakpoints, settings, failures, l10n,
                   and the single composition root in core/di/providers.dart
  features/
    library/       folders, scanning, tags, cover and catalog storage
    playback/      the queue, the engine and media-session boundaries, and
                   the music area
    lyrics/        finding a track's words on this machine, and reading along
    stats/         the play threshold, the history, and the rankings
    shell/         the frame: navigation, the playback bar, preferences

tools/             dev.sh / dev.ps1 to run it, verify.sh / verify.ps1 to
                   check it, and the two installer builds
packaging/windows/ the Inno Setup script the installer is compiled from
packaging/linux/   the shell installer the Linux payload is wrapped in
packaging/icon/    the application icon, and the script that draws it

Each feature is domain (no Flutter, no IO), data (the outward edges), application (the controllers), presentation (the widgets). Nothing outward is constructed anywhere but core/di/providers.dart, which is what lets a test override a binding rather than patching a global.

Building and testing

flutter analyze              # must be clean; there is no known-warnings list
flutter test                 # the unit and widget suite
flutter build linux --release
flutter build windows --release
flutter build apk --release

Tests

Tests are named Given-When-Then, one behaviour apiece, and follow the source tree: lib/x/y.dart is tested by test/x/y_test.dart. Nothing in the suite reads the developer’s own preferences, writes into their application-support folder, records against their listening statistics, opens the native playback engine, starts a platform media service, or reaches the network — every one of those is a provider, and every one is overridden by the harness in test/support/test_container.dart.

tools/verify.sh, tools/verify.ps1 and so the checks run the suite as four bundles written by tools/test_bundles.dart: each imports a share of the test files, is compiled once, and runs that share in one process. flutter test compiles one file at a time, so a run of one entry point per test file was mostly compiling. A test may therefore not depend on running in a process of its own: what it changes outside itself, it puts back. flutter test itself still runs each file in its own process, and flutter test test/features/stats is still the quick loop for one area.

Two of the tests are guards rather than assertions about behaviour, and they exist because a rule nobody checks is a comment:

  • test/core/theme/no_colour_literal_test.dart — every colour comes from the theme’s single seed, and nothing outside lib/core/theme/ may declare one.
  • test/core/l10n/catalog_parity_test.dart — both languages stay complete, every message carries a description, and a translation uses the same placeholders as its original.

The scanner and the tag reader are tested against real files in a temporary directory, built by test/support/flac_fixture.dart — a genuine FLAC header with real Vorbis comments and a real embedded picture, small enough to write from a test.

Running it while you work on it

./tools/dev.sh               # Linux and macOS
.\tools\dev.ps1              # Windows

Picks a device, checks what it needs, and starts the application. With no arguments it runs on this host’s desktop; with one device attached and no desktop target, on that one; with several, it refuses and lists them rather than guessing — being handed a phone when you meant the desktop costs more time than typing --device.

The loop is Flutter’s own. While it runs, r hot-reloads, R hot-restarts, q quits — so change the code and see it is one keystroke, not another run of the script. Start it again for the things hot reload cannot carry: a new dependency, a native or platform file, or a change to either .arb catalog (then use --generate).

Flag
--device ID / --androidWhere to run. --android takes the attached device or emulator, whatever its id.
--cleanDelete this application’s own data — the catalog, cover cache, analysed spectra, play history and preferences — so the next start is a first launch. Never touches your music, names exactly what it will delete, and asks first unless --yes. On Android it clears the app’s data on the device.
--generateRegenerate the localizations first.
--testRun the suite first, and stop if it is red.
--profile / --releaseRun the way an owner would get it. Neither has hot reload — that is debug only, and the script says so rather than letting you press r into silence.
--no-runDo everything else and stop.

On Linux it also checks for libmpv up front, because without it playback fails at the first press of play rather than at startup — which is a long way from the cause.

On Windows the first build in a fresh build directory prints Nuget.exe not found, trying to download or use cached version. That is CMake, not this application: permission_handler_windows compiles against the CppWinRT NuGet package and fetches a pinned, checksummed nuget.exe when one is not on PATH. It is a status line rather than a warning — a real failure stops the build with Failed to install nuget package Microsoft.Windows.CppWinRT — and it prints once per clean build directory. winget install Microsoft.NuGet silences it. The plugin itself does nothing on Windows; it arrives as the endorsed Windows implementation of the permission_handler that Android needs, and Flutter builds every plugin registered for a platform whether or not it is used.

tools/dev.ps1 takes the same flags in long form (-Device, -Clean, -Yes).

The icon

The application icon is a lyre — Orpheus’s own instrument — whose strings are the sound bars from the player screen, standing at the uneven heights a level meter stands at.

It is drawn in code, not kept as a binary nobody can edit: a change to the palette, the proportions or the string heights is a diff in one Python file, and every size every platform wants is regenerated from it.

python3 packaging/icon/make_icon.py     # needs Pillow, and nothing else

That writes the Android launcher icons at all five densities — the square one for releases before Android 8, and the adaptive icon’s foreground layer, drawn without its background so the launcher can mask the pair into whatever shape the device uses — the Windows .ico, the Linux window icon, and the 1024px master in packaging/icon/.

The two smallest .ico frames are drawn from separate, simpler artwork. At sixteen and thirty-two pixels the arms and the yoke are a stroke under two pixels wide, which is not a lyre, it is grey fringing; what those frames show instead is what the mark is about — three bars at three heights on their soundbox. An .ico saved from one image is that image downsampled six times, and the two smallest of those are the mush this avoids.

Flutter’s Linux runner ships no icon at all, so linux/CMakeLists.txt installs the PNG beside the bundle’s data and my_application.cc loads it into the window. Beside the bundle rather than into a hicolor theme deliberately: this is the icon of the window this binary opens, which is a different thing from the icon a packaged application registers with the desktop, and only the first is the build’s to decide.

Verifying everything at once

./tools/verify.sh            # Linux and macOS
.\tools\verify.ps1           # Windows

Each runs the analyzer, the suite, and a release build of every target its host can build — then prints one summary saying what passed, what was skipped, and what this operating system could never have done in the first place.

That last distinction is the point of the script. No single machine can build all three targets: Windows binaries need Windows and MSVC, Linux binaries need Linux and GTK. So a run reports three outcomes rather than two —

MeaningUnder --strict
PASSIt ran and it passed.passes
SKIPA toolchain that could have been here was not — no Android SDK, no libgtk-3-dev.fails
n/aThis operating system cannot build that target at all.passes

— because a missing Android SDK is something you can fix, and a Linux machine not producing a Windows binary is not.

Useful flags: --no-build for the fast loop, --only linux|android|windows for one target, --strict for CI. tools/verify.ps1 takes the same ones in long form, plus -Installer.

The linux check (ci/linux.sh, run by Jenkins) and .github/workflows/verify.yml are what make the n/a rows add up to nothing: they run verify.sh --strict on Linux (Linux + Android) and verify.ps1 -Strict on Windows (Windows + the installer, the Windows and the installer job on the GitHub mirror). The linux check also reads the built APK’s permissions back out and fails the build if they are not exactly the nine declared in AndroidManifest.xml — which is the promise at the top of the README, enforced rather than asserted. A deny list would only catch the permissions somebody thought to forbid; pinning the whole set catches the next one whatever it is, including one merged in by a dependency.

The Windows installer

.\tools\build-windows-installer.ps1

Builds the Windows release and compiles packaging\windows\installer.iss into dist\orpheus-setup-<version>.exe. It needs Inno Setup (winget install JRSoftware.InnoSetup); the script looks for ISCC.exe on PATH and in both standard install directories, and takes -InnoSetupPath if it is somewhere else. -SkipBuild reuses an existing release build.

Every push to any branch builds it, which is how a pull request gets its result: the Verify workflow’s Windows job (the GitHub mirror runs it) uploads orpheus-setup-<version>.exe as an artifact, so the latest one is a download away from the run that produced it.

The Linux installer

./tools/build-linux-installer.sh

Builds the Linux release and wraps it in dist/orpheus-installer-<version>.sh — a shell script with the release bundle compressed onto the end of it. --skip-build reuses an existing release build.

A self-extracting script rather than a .deb, a Flatpak or an AppImage, and the reason is what each of those assumes. A .deb assumes apt, which leaves out every distribution that does not use it. A Flatpak assumes Flatpak is set up, and adds a sandbox that would have to be punched through for the one thing this application does — read music folders the owner chose, anywhere on their disk. An AppImage is a portable binary rather than an installation: no launcher entry, no icon.

What the installer does once built is described under Downloads in the README.

Branching and pull requests

feature/<name> ─┐
fix/<name> ─────┴─▶ develop ──▶ release/x.y.z ──▶ main  (tag vx.y.z)
BranchCut fromMerges intoHow
feature/<name>, fix/<name>developdevelopPull request, squash or merge. The branch is deleted on merge.
release/x.y.zdevelopmainPull request, merge commit. Carries no commits of its own.
develop, main——Protected: no direct pushes, no force pushes, no deletion.

develop is the default branch, and nothing is committed to it or to main directly. One branch per issue, named feature/uc-<number>-<short-name> — e.g. feature/uc-14-resume-a-track. Work that is not a use case takes the same pattern without the uc- segment, and a defect fix takes fix/: fix/scan-progress-strip. Names are lowercase: letters, digits, ., _ and -. A release/ branch is a snapshot of develop: a fix for a release lands on develop through a fix/ branch and a new release branch is cut.

The branch-policy check, run by Jenkins, checks all of this on every pull request into develop or main. It, the linux check and the Windows and the installer job, are required checks on both branches. The repository owner can bypass these rules; that is for emergencies, not for routine work.

A pull request is titled after the use case (UC-14 — Resume a track where it stopped), says what was built, which flows and alternative flows are covered and what was deliberately left out, and links its issue so merging closes it. Nothing is merged with a failing analyzer or a failing suite. The full rules, and the Definition of Done, are in the Development Workflow Document.

Commit messages follow Conventional Commits, all lower case, subject in the imperative mood and no longer than 50 characters including the type prefix, e.g. feat: play in the background on android or fix: let go of a finished scan, so the next one runs. The commit type is any of feat, fix, refactor, docs, build, chore, test, ci or perf, whatever the branch is called.

Record every change an owner would notice under ## [Unreleased] in CHANGELOG.md, in the same pull request that makes it.

Versioning

Orpheus follows Semantic Versioning, tagged v<major>.<minor>.<patch>. For an application, what a version number promises is about the owner who installed it: what it does on screen, the library, catalog, statistics and settings it keeps between runs, and whether the next release installs over the one they have.

  • Major — a release that breaks something an owner relies on. A feature is removed, or works so differently that it has to be relearned; the catalog, the play history or the preferences a previous version wrote are no longer read, so a library has to be registered and scanned again or statistics start from nothing; or the release cannot be installed over the previous one, drops a platform, or raises the minimum Android release. Its entry in CHANGELOG.md carries an ### Upgrading from <X>.x to <Y>.0 section saying what to do.
  • Minor — something an owner can do that they could not before, leaving everything they already did working as it did.
  • Patch — a fix, or a screen saying something truer.

A pre-release carries a SemVer pre-release identifier, -beta.<n>: v1.3.0-beta.1 is a pre-release of 1.3.0, comes before it, and is published as a GitHub pre-release. The in-application update check orders versions by SemVer 2.0.0 precedence — 1.3.0-beta.1 < 1.3.0-beta.2 < 1.3.0, build metadata ignored. A stable build asks GitHub for the latest release, which is never a pre-release, so nobody is offered one who did not go looking for it. A build that is itself a pre-release reads the release list instead and is offered the highest version on it: the next beta, then the release it leads to.

The version lives in one place, the version: in pubspec.yaml, as <major>.<minor>.<patch>+<build>, or <major>.<minor>.<patch>-beta.<n>+<build> for a pre-release: v1.3.0-beta.1 is built from 1.3.0-beta.1+7. Both installer scripts read it from there, so their file names carry the pre-release (orpheus-setup-1.3.0-beta.1.exe); Flutter compiles it into the application, which is how a beta knows it is one — built from 1.3.0+7, it would report itself as 1.3.0 and never be offered the 1.3.0 that follows it; and the release build refuses a tag that is not v followed by that version, pre-release included and build number left out. The build number rises with every package that is published, pre-releases included, because Android reads it as versionCode — through flutter.versionCode in android/app/build.gradle.kts — and an update whose code did not rise is not an update as far as the platform is concerned.

The next release’s build number must be 13 or higher. 1.7.0 shipped as build 12, after v1.2.2-beta.1 had shipped an APK built as 1.2.2+6 from the diagnose/android-usb-folder branch, and a phone that installed it holds versionCode 6.

Releasing

A release branch carries no commits of its own, so everything a release changes in the repository lands on develop first, through a normal branch and pull request — feature/release-1.3.0, say, with a chore: release 1.3.0 commit:

  • version: in pubspec.yaml set to the new version — with its -beta.<n> for a pre-release — and the next build number;
  • ## [Unreleased] in CHANGELOG.md renamed to ## [<version>] - <yyyy-mm-dd> above a fresh, empty ## [Unreleased], and the compare links at the bottom updated.

Then:

  1. Cut the release branch from develop and push it:

    git switch develop && git pull
    git switch -c release/1.3.0
    git push -u origin release/1.3.0
    
  2. Open a pull request release/1.3.0 → main. The Branch Policy check refuses it if the branch carries a commit that is not on develop, or if v1.3.0 is already tagged.

  3. When the checks pass, merge it with a merge commit, and delete the release branch.

  4. Tag the merge commit on main and push the tag — only the repository owner can create a v* tag:

    git switch main && git pull
    git tag v1.3.0
    git push origin v1.3.0
    

A pre-release goes the same way — release/1.3.0, with pubspec.yaml saying 1.3.0-beta.1+<build> — and is tagged v1.3.0-beta.1 on the merge commit instead. The next beta, or the stable release that follows, is a new package: pubspec.yaml says 1.3.0-beta.2+<build> or 1.3.0+<build>, with a higher build number, so it goes through develop and a release branch again.

Jenkins does the rest, from the release section of yggdrasil.yml. It refuses a tag whose commit is not on main — so a build from any other branch is never published as a release; v1.2.2-beta.1 predates the rule. ci/release-build.sh refuses a tag that is not v followed by the version in pubspec.yaml, pre-release included — a release whose file names, installer wizard and application each state something different is worth failing a job over. Jenkins publishes the release on the git server and its GitHub copy, with the section of CHANGELOG.md for the notes.

Then four artifacts, each built where it can be — the Windows installer, the portable Windows archive, the Linux installer and the APK, listed under Downloads in the README. The Linux installer and the APK are built on Jenkins’s release agent by ci/release-build.sh. The two Windows files are built by the GitHub Actions workflow .github/workflows/release-windows.yml on the GitHub mirror, which Jenkins dispatches with the tag and whose files it attaches to the release.

The APK is put through the same permission gate the linux check applies (ci/permissions.sh), against the package that actually ships, and the same is done with its signer — see below. The analyzer and the suite are run before anything is built, because a release is not the place to discover the suite is red. Every file of the release (the Windows ones included) is checksummed into one SHA256SUMS.txt by ci/finalize.sh, Jenkins’s release.finalize step, which is the only way somebody can tell that what they downloaded is what was built — both desktop installers are unsigned.

A release that stopped can be finished, and the Windows files rebuilt for a tag, from Jenkins (release-resume and actions-release).

The Android signing key

Android refuses to install an update whose signer changed. A package signed with the debug key would therefore be a package nobody can upgrade to: the runner generates a fresh debug key per run, so every release would carry a different signer, and an owner would meet the next one as App not installed with no way forward but uninstalling — losing the library, the statistics and the settings that an upgrade is supposed to keep.

So the release build signs with a key the project holds, and refuses to build without one.

1. Make the keystore. Once, and never again. keytool ships with the JDK that Android Studio installed, so it is already on your machine.

On Windows, in PowerShell:

keytool -genkeypair -v -keystore orpheus-release.jks -alias orpheus `
  -keyalg RSA -keysize 4096 -validity 10000 -storetype pkcs12

On Linux or macOS:

keytool -genkeypair -v -keystore orpheus-release.jks -alias orpheus \
  -keyalg RSA -keysize 4096 -validity 10000 -storetype pkcs12

It asks for a password, then for a name, an organisation and a country. None of those answers are checked by anything or shown to anyone; the password is the part that matters. Write the password down before you press enter — there is no way to recover it and no way to replace the keystore later.

2. Encode it. The credential holds the file’s bytes as text, because a Jenkins secret text is a string.

On Windows, which has no base64 command — this writes the file and puts the same text on your clipboard, ready to paste:

$encoded = [Convert]::ToBase64String([IO.File]::ReadAllBytes("orpheus-release.jks"))
$encoded | Set-Content -NoNewline keystore.base64.txt
$encoded | Set-Clipboard

On Linux or macOS:

base64 -w0 orpheus-release.jks > keystore.base64.txt

Not certutil -encode: it wraps its output in -----BEGIN CERTIFICATE----- lines, which are not part of the data and will not decode.

3. Give Jenkins four credentials. Manage Jenkins → Credentials → System → Global credentials, kind Secret text, with the ID exactly as written (they are the repository’s releaseCredentials in yggdrasil’s catalog.yaml, and release.build.credentials in yggdrasil.yml binds them to the variables the build reads, shown in the second column):

Credential IDVariableWhat to paste into it
orpheus-android-keystoreORPHEUS_KEYSTORE_BASE64The entire contents of keystore.base64.txt — one long run of letters, digits, + and /, possibly ending in =. Paste what step 2 put on the clipboard, or open the file and select all. Not the .jks itself: a secret is text. Line breaks in it are harmless, the build strips them.
orpheus-android-keystore-passwordORPHEUS_KEYSTORE_PASSWORDThe password you typed at Enter keystore password.
orpheus-android-key-aliasORPHEUS_KEY_ALIASorpheus — whatever followed -alias in the command above.
orpheus-android-key-passwordORPHEUS_KEY_PASSWORDThe same password again. A PKCS12 keystore holds one password for both; keytool warns and ignores a -keypass that differs from the store password, so there is no second password to give.

Then delete keystore.base64.txt — it is the keystore in another form, sitting in the repository directory. .gitignore refuses to commit it, and the .jks beside it, but neither belongs there once the credential is set.

Back the .jks up somewhere that is not this machine, and keep the passwords. Losing it cannot be undone by generating another: every owner who installed a release signed with the old one would have to uninstall first, and their catalog, statistics and settings would go with it. It is the one file in this project that has no copy in the repository and cannot be rebuilt from it.

4. The fingerprint. android/signing-sha256.txt holds the SHA-256 fingerprint of the certificate the releases are signed with (a public value, committed). ci/release-build.sh reads the signer back out of the APK and fails the release unless it is that one, instead of shipping an update nobody can install. It prints Signed with SHA-256 <64 hex characters>; if the key is ever replaced on purpose, put the new fingerprint in the file. ORPHEUS_SIGNING_SHA256 in the environment overrides the file.

Building a signed package locally needs none of that. flutter build apk --release with no key configured falls back to the debug key and works as it always did — that is only ever a package for your own device. To sign locally, put android/key.properties beside the module, which android/.gitignore already refuses to commit:

storeFile=../orpheus-release.jks
storePassword=...
keyAlias=orpheus
keyPassword=...