<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Orpheus</title><link>https://docs.artur-rios.tech/orpheus/</link><description>Recent content on Orpheus</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://docs.artur-rios.tech/orpheus/index.xml" rel="self" type="application/rss+xml"/><item><title>Finding a track's words</title><link>https://docs.artur-rios.tech/orpheus/docs/architecture/lyrics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/orpheus/docs/architecture/lyrics/</guid><description>&lt;h2 id="the-order-is-the-feature"&gt;The order is the feature&lt;/h2&gt;&#10;&lt;p&gt;It never varies, and every part of it is a rule written down in the&#10;specifications rather than a decision made in code:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;What this machine holds.&lt;/strong&gt; A &lt;code&gt;.lrc&lt;/code&gt; beside the track, then the track&amp;rsquo;s ID3&#10;&lt;code&gt;SYLT&lt;/code&gt; frame, then its lyrics text tag. Whatever these hold is the answer,&#10;and nothing else is asked.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Only then, a lookup&lt;/strong&gt; — and only if the owner has left it on.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;A sheet that came back is written beside the track&lt;/strong&gt; as a &lt;code&gt;.lrc&lt;/code&gt;, so the&#10;next launch finds it at step 1 and asks nobody anything.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The sidecar outranks both tags deliberately: it is the one of the three an owner&#10;can write, correct and delete with a text editor and no help from this&#10;application. Of the two tags, the timed frame outranks the text one, because a&#10;file carrying both was written by somebody who put the timed copy in &lt;code&gt;SYLT&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Scanning a library</title><link>https://docs.artur-rios.tech/orpheus/docs/architecture/library/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/orpheus/docs/architecture/library/</guid><description>&lt;h2 id="what-a-scan-is"&gt;What a scan is&lt;/h2&gt;&#10;&lt;p&gt;A scan walks the folders the owner registered, reads the tags out of every audio&#10;file it finds, extracts cover art, and writes the result as a single JSON&#10;document beside the settings. That document is the library: it is read once at&#10;launch and held in memory for the run.&lt;/p&gt;&#10;&lt;p&gt;Everything expensive about that is avoided wherever it can be, because on a&#10;library of eleven thousand tracks the naive version makes every launch stutter.&lt;/p&gt;</description></item><item><title>Playing something</title><link>https://docs.artur-rios.tech/orpheus/docs/architecture/playback/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/orpheus/docs/architecture/playback/</guid><description>&lt;h2 id="the-queue"&gt;The queue&lt;/h2&gt;&#10;&lt;p&gt;Anything playable produces a queue: a track, a record, an artist, or the whole&#10;library shuffled. The queue knows what kind of thing it came from, which is what&#10;lets the player say &lt;em&gt;what&lt;/em&gt; is playing rather than only which file.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;classDiagram&#10; class PlaybackQueue {&#10; &amp;#43;List~AudioFile~ tracks&#10; &amp;#43;QueueKind kind&#10; &amp;#43;String? label&#10; &amp;#43;int index&#10; }&#10; class QueueKind {&#10; &amp;lt;&amp;lt;enumeration&amp;gt;&amp;gt;&#10; track&#10; album&#10; artist&#10; playlist&#10; }&#10; class QueueRepeat {&#10; &amp;lt;&amp;lt;enumeration&amp;gt;&amp;gt;&#10; off&#10; all&#10; one&#10; &amp;#43;next() QueueRepeat&#10; }&#10; class AudioPlaybackState {&#10; &amp;#43;PlaybackQueue queue&#10; &amp;#43;AudioStage stage&#10; &amp;#43;PlaybackStatus status&#10; &amp;#43;QueueRepeat repeat&#10; }&#10;&#10; AudioPlaybackState *-- PlaybackQueue&#10; AudioPlaybackState *-- QueueRepeat&#10; PlaybackQueue *-- QueueKind&lt;/pre&gt;&#10;&lt;p&gt;&lt;code&gt;label&lt;/code&gt; is carried but never worded here. The domain has no localized strings,&#10;so what an unnamed record is &lt;em&gt;called&lt;/em&gt; is a presentation decision made once, on&#10;the way to the screen.&lt;/p&gt;</description></item><item><title>Specifications</title><link>https://docs.artur-rios.tech/orpheus/docs/specifications/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/orpheus/docs/specifications/</guid><description>&lt;p&gt;Orpheus is specified before it is built. Every use case is written down, agreed&#10;and numbered before it is implemented, and the documents below are normative —&#10;where this site and a specification disagree, the specification is right.&lt;/p&gt;&#10;&lt;p&gt;They live in the repository rather than being copied here, so there is one copy&#10;of each and no chance of the two drifting apart.&lt;/p&gt;&#10;&lt;h2 id="start-here"&gt;Start here&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Document&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;What it holds&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Vision%20Document.md"&gt;Vision&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Stakeholders, positioning, and the &lt;code&gt;F-xx&lt;/code&gt; features&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/System%20Requirements%20Document.md"&gt;System Requirements&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The &lt;code&gt;FR-&amp;lt;AREA&amp;gt;-xx&lt;/code&gt; and &lt;code&gt;NFR-xx&lt;/code&gt; requirements, the data model, and traceability&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Use%20Case%20Specification%20Document.md"&gt;Use Case Specification&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The &lt;code&gt;UC-xx&lt;/code&gt; use cases, their flows, and their &lt;code&gt;AF-xx&lt;/code&gt; alternatives&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/initial/Business%20Rules.md"&gt;Business Rules&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The domain entities and the &lt;code&gt;BR-xx&lt;/code&gt; rules&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/data-export.md"&gt;Data export&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The layout of the file &lt;em&gt;Export my data (JSON)…&lt;/em&gt; writes and of the ZIP &lt;em&gt;Back up Orpheus (ZIP)…&lt;/em&gt; writes: every field, how songs are referenced, how a restore reads them, and how they are versioned&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="how-it-is-built-and-checked"&gt;How it is built and checked&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Document&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;What it holds&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Development%20Workflow%20Document.md"&gt;Development Workflow&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The branch pattern, issue lifecycle, and Definition of Done&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Testing%20Specification%20Document.md"&gt;Testing Specification&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;How tests are written, named and run&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Technology%20Stack%20Document.md"&gt;Technology Stack&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The single source of truth for every technology and version&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/requirements/Operations%20%26%20Infrastructure%20Document.md"&gt;Operations &amp;amp; Infrastructure&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Layout, storage, startup, permissions, logging, and the &lt;code&gt;IR-xx&lt;/code&gt; requirements&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="context"&gt;Context&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Document&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;What it holds&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/initial/Project%20Overview.md"&gt;Project Overview&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What it is, who it is for, and how success is measured&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/initial/Workflow.md"&gt;Workflow&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;How one use case is delivered, step by step&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://github.com/artur-rios/orpheus/blob/main/docs/initial/Brainstorm.md"&gt;Brainstorm&lt;/a&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The original free-form notes the project grew from&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="the-promises-that-are-checked-not-asserted"&gt;The promises that are checked, not asserted&lt;/h2&gt;&#10;&lt;p&gt;Three of the rules in those documents are enforced by CI rather than trusted:&lt;/p&gt;</description></item></channel></rss>