Skip to content
PinetheApplePublic

About

An app

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,423 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kitbag

The open-source everything-app for musicians. Metronome, tuner, song library and player, stem player — one app, plugin-shaped, GPLv3, no caps, no paywalls, ever.

Status: in development, released on GitHub. Every merge to main publishes a signed APK as a GitHub release (latest). It is not on F-Droid: the submission is drafted in metadata/ and has not been sent (SPEC.md §17.1). The earlier Flutter app was removed after the 2026-07-17 audit (SPEC.md §2); only the C++ core carried over.

SPEC.md is the source of truth — scope, contracts, decisions and sequencing. §15 holds the current status.

What it does

  • Metronome — tempo by swipe, tap or numpad; beat lights with accents and groupings; subdivisions, polyrhythms (N against M), tempo ramps, bar muting and count-in; custom click sounds; songs, presets and setlists; practice sessions with a summary and a history you can browse.
  • Tuner — built-in and custom tunings, string-aware detection and an adjustable A4.
  • Songs — import audio files, analysed in the background for tempo, beat grid and meter; a song player with a click on the song's bars, an A-B loop and count-in, a mini-player that keeps the song playing on Home and Songs, and a media notification shared with the metronome. Speed runs from 50% to 100%, is saved per song and shows on the mini-player (#555); the click at a slower speed still needs a device check. Background playback with lock-screen and headset control is in place (#515) but has no device check yet (#237).
  • Stem songs — import StemDeck bundles from a zip, a folder or a StemDeck server; per-stem volume, mute and solo; speed and key; sections and synced lyrics; save the mix as a WAV; setlists, a play-next queue and playing the next song when one ends; background playback with a media notification. A stem song played from a setlist or Up next has Next and Previous on its notification and lock screen (#563); this still needs a phone check.
  • Settings — theme, keep the screen awake, the rig click and per-route latency calibration, turning tools on or off, backup and restore, and moving the data folder to an SD card and back (#500, #519). The card move is checked on the emulator (re-checks for #532 and #548); its phone check is pending.
  • Not built: play along (SPEC.md §8).

Some merged features still need a phone check, tracked in #516 and the open feature issues.

What it looks like

Screenshots from the emulator at SM-M156B size, dark theme then light.

Home Metronome Setlist playing Practice sheet Tuner
Home, dark theme Metronome playing, dark theme Metronome playing a setlist song, dark theme Practice sheet over the metronome, dark theme Tuner, dark theme
Home, light theme Metronome playing, light theme Metronome playing a setlist song, light theme Practice sheet over the metronome, light theme Tuner, light theme
Songs Song player Mini-player Stem songs Stem player
Songs, dark theme Song player, dark theme Mini-player over Songs, dark theme Stem songs, dark theme Stem player, dark theme
Songs, light theme Song player, light theme Mini-player over Songs, light theme Stem songs, light theme Stem player, light theme
Up next Speed and key Setlists Setlist detail StemDeck
Stem player Up next sheet, dark theme Stem player Speed and key sheet, dark theme Setlists, dark theme Setlist with stem songs and metronome songs, dark theme StemDeck connect, dark theme
Stem player Up next sheet, light theme Stem player Speed and key sheet, light theme Setlists, light theme Setlist with stem songs and metronome songs, light theme StemDeck connect, light theme
Settings Data folder Practice history Practice session
Settings, dark theme Data folder sheet, dark theme Practice history, dark theme One practice session, dark theme
Settings, light theme Data folder sheet, light theme Practice history, light theme One practice session, light theme

Install (Android)

The newest signed build is always at https://github.com/PinetheApple/kitbag/releases/latest/download/kitbag.apk, with its checksum alongside. It is built for arm64-v8a only (64-bit ARM phones).

curl -fLO https://github.com/PinetheApple/kitbag/releases/latest/download/kitbag.apk
curl -fLO https://github.com/PinetheApple/kitbag/releases/latest/download/kitbag.apk.sha256
sha256sum -c kitbag.apk.sha256

Then open kitbag.apk on the phone (allow installs from that source), or adb install kitbag.apk. Later releases install over it.

Architecture

  • C++ realtime audio core (native/audio_core) on miniaudio — sample-accurate scheduling, lock-free realtime thread. The durable part. A flat C ABI (include/kitbag_api.h) written so the UI framework is a swappable detail, which it turned out to be.
  • React Native + TypeScript UI, reached via JSI — decided 2026-07-17 (SPEC.md §13). Commands go through a TurboModule; polled realtime reads go through a JSI HostObject. Builds and runs on Android; the 60fps read path is proven on a device (§13.3). Built: everything under "What it does"; play along is not.
  • One package per tool — each tool is a tool-* package, listed in the shell's registry (app-shell/src/home/registry.ts) and shaped after the ToolPlugin contract (SPEC.md §9). First-party only; no public SDK yet.

Android is the only platform built; iOS is planned, not started (SPEC.md §3.4). Web is out of scope: no cross-app media session, no foreground service.

native/audio_core   # C++ engine (miniaudio), CMake
packages/           # React Native app — pnpm workspaces + Turborepo
SPEC.md             # source of truth
design/             # binding design specs (precedence: SPEC.md §12)
legacy/             # Flutter-era media-session code play-along still has to port
docs/               # decisions, tuner spec, research; archive/ is historical
e2e/                # Maestro device flows and their fixture generators
scripts/            # repeatable actions — gates, release, device flows, lint, changelog

Building

Native core

Requirements: CMake ≥ 3.22, Ninja, clang.

cmake -S native/audio_core -B native/audio_core/build -G Ninja -DKITBAG_BUILD_TOOLS=ON
cmake --build native/audio_core/build

./native/audio_core/build/metronome_verify   # renders offline, asserts onsets
./native/audio_core/build/tuner_verify       # tuner on synthetic tones

The verify tools render audio offline and assert against it — no UI, no device. CI and scripts/preflight.sh run every *_verify tool; .github/workflows/ci.yml lists them. This is why the core was testable before the app existed, and it is still the cheapest signal in the project.

App

Requirements: Node (version in .nvmrc), pnpm, Android SDK + NDK.

pnpm install
pnpm -w typecheck && pnpm -w lint && pnpm -w test
bash scripts/preflight.sh   # every CI gate, with auto-fixes

Android builds run from packages/app-shell/android via Gradle; bash scripts/install-on-device.sh builds, installs and launches on a connected device. Anything that touches a screen or the native boundary needs verifying on a real device — the headless gates cannot see a broken JNI chain.

License

GPLv3 — see LICENSE. Native dependencies: miniaudio (public domain), QM-DSP (GPL-2.0-or-later, with kissfft under BSD-3-Clause), Signalsmith Stretch and signalsmith-linear (MIT). Fonts: Space Grotesk and Inter (OFL).

About

An app

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages