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.
One core, every app
Section titled “One core, every app”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.
Where the music comes from
Section titled “Where the music comes from”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.
What stays on your device
Section titled “What stays on your device”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.
From a file to sound
Section titled “From a file to sound”When a song plays, the core does these steps:
- It fetches the song, and the next song before it is due.
- It decodes the file: MP3, FLAC, AAC, Vorbis, ALAC or Opus.
- It applies the sound settings you turned on: the equalizer, effects, volume leveling, a plugin’s sound.
- It blends the song into the next one with AutoMix or a crossfade, or joins the two gaplessly.
- 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.
Read on
Section titled “Read on”- How nori saves battery: bursts, offload, and why a feature that is off uses nothing.
- How AutoMix works: measuring songs and planning a mix.
- How remote control and jams work: which device plays, and what goes between them.
- How plugins work: the sandbox, and what a plugin can add.
For the code, see the architecture in the developer docs.