andamp
Kotlin, C++ · Google Play · open source · mattijsf/andamp
Andamp renders the player, equalizer and playlist from real skin files, in a 275 pixel wide virtual space scaled by a whole number with nearest-neighbor filtering. Behind the skin is a real media player.
git clone https://github.com/mattijsf/andamp.gitcd andampgit submodule update --init --recursive./gradlew installDebugHow it fits together
Section titled “How it fits together”The queue mixes tracks from the phone and from sources. The UI never touches a backend directly.
- 10-band EQ
- effect rack
- output
The effects are a graph; a Lua plug-in shows up as one more effect.
Design notes
Section titled “Design notes”Music sources are separate apps
Section titled “Music sources are separate apps”Anything that is not on the phone is a source: a separate Android app that Andamp binds and drives over AIDL. No registration, no list of approved authors, no key. When a source is uninstalled its rows stay in the playlist, marked as missing.
An effect is one Lua file
Section titled “An effect is one Lua file”The script declares its parameters and builds a graph of operations; Andamp compiles that into the effect rack. The listener adds the file through the system file picker. The author has nothing to build, sign or publish.
plugin { id = "nl.mattix.andamp.example.gain", name = "Gain", version = "1.0.0",}
local level = param.number { id = "level", name = "Level", min = 0, max = 2, default = 1,}
function build(g, ctx) local out = {} for ch = 0, ctx.channels - 1 do out[ch] = g.mul(g.input(ch), level) end return outendA gate before every push
Section titled “A gate before every push”Most of this code is written with AI assistance, so nothing is taken on trust. A pre-push hook runs the same gate every time: formatting, static analysis, the unit tests and a golden screenshot comparison. A new playback backend has to pass the same contract test as the existing ones.
./gradlew gate # format, detekt, the JVM tests, the goldensNo trackers, no cookies. This site has had forty other designs: see them all.