nada नाद

Architecture decisions

Why nada is built the way it is: each significant decision as a short record (context, the decision, its consequences), in the ADR format. A decision is never edited away: a later one supersedes it. Sources: docs/adr.

ADR 0001 · Accepted

Record architecture decisions

Decisions about how nada is built (its dependencies, its boundaries, the trade-offs it accepts) were made in conversations and commit messages, where nobody finds them later. A con…

ADR 0002 · Accepted

MPD is the engine; nāda is the interface

A music player needs gapless playback, a library index, a queue that survives restarts, and audio output handling. MPD has done this for twenty years, and Vayu already ran it.

ADR 0003 · Accepted

YouTube songs are stream URLs in MPD's queue

rmpc downloaded YouTube songs before playing them: a delay before every song, and files piling up. But YouTube's stream links expire after a few hours.

ADR 0004 · Accepted

Line up what plays next, like YouTube

Picking every next song by hand breaks listening. YouTube's mixes are good at what comes next.

ADR 0005 · Accepted

A download replaces the stream in place

Saving a song you're listening to shouldn't interrupt it, and the queue shouldn't end up with both copies.

ADR 0006 · Accepted

Vim keys with modes, counts and registers

The people nāda is for edit text with vim. A player with its own key scheme is another thing to learn.

ADR 0007 · Accepted

Lyrics from YouTube Music first, and a failure is not a miss

Most songs showed no lyrics. nāda asked one source, LRCLIB (community-made, thin for Hindi film and Pakistani music), with names guessed from YouTube titles ("ROCKSTAR: Kun Faya Ku…

ADR 0008 · Accepted

One floating search panel instead of a YouTube tab

Searching meant switching to the YouTube tab, typing, and pressing Enter; the library had its own search, the queue another (/ meant something different on each tab). Command palet…

ADR 0009 · Accepted (refines ADR 6)

The Space leader, from one keymap

Every Vayu tool is moving to one key grammar: Normal mode keys you use all the time are one key, and everything else sits under Space as the leader, the same group letters meaning …