The app is about 85K lines: device connectivity, first-time setup, syncing, MIDI playback and visualization, library management, audio/video export, and OTA workflows.
The firmware is about 110K lines: MIDI recording + streaming, USB, Bluetooth, Wi-Fi, web APIs, storage, OTA updates, diagnostics, security, peripherals, provisioning, and an embedded web interface.
There’s a lot required to make a full-featured product.
Yeesh, please tell me you didn't write all of that yourself. Which uC is it targeting, and which language?
This seems like an incredibly large codebase. Did you use an existing RTOS or something similar for this product, or was this all hand rolled?