Skip to content

How nori works

Every nori app runs the same core on your device. The core fetches music from your server or a service, turns it into sound and hands that sound to your speaker or headphones.

How a song reaches your ears

nori’s core is one program, and every app carries the same copy. It makes every decision: what plays next, how two songs mix, which lyrics fit the song, which settings apply to this output. Each app only draws its screens and talks to its operating system. So a feature behaves the same in every app.

Each profile plays from one place: a Navidrome, Subsonic or OpenSubsonic server, octo-fiesta in front of one, or YouTube Music or SoundCloud through a plugin.

Your server keeps the library, playlists, favorites and covers, and it streams each song. nori has no server and no account of its own: Privacy and network lists every request it makes.

nori keeps what it needs to open fast and to play without a connection:

  • an index of your library
  • covers, the stream cache and your downloads
  • AutoMix’s measurements of each song
  • your settings, sound profiles and listening history

Pages and search answer from the index at once. When the server’s answer differs, it replaces theirs.

When a song plays, the core does these steps:

  1. It fetches the song, and the next song before it is due.
  2. It decodes the file: MP3, FLAC, AAC, Vorbis, ALAC or Opus.
  3. It applies the sound settings you turned on: the equalizer, effects, volume leveling, a plugin’s sound.
  4. It blends the song into the next one with AutoMix or a crossfade, or joins the two gaplessly.
  5. It writes about ten seconds of music ahead into the output, then sleeps.

On Android, when nothing changes the sound, the phone’s audio chip can decode the song itself. That is offload, and it saves the most battery.

For the code, see the architecture in the developer docs.