Flutter MIDI 16kb
Livepub.dev
A lightweight Flutter plugin that provides MIDI playback using the TinySoundFont synthesizer. Ideal for piano apps, educational apps, and other music-related projects where you need custom SF2 soundfonts.
View on pub.dev ↗Project Journey
Building a responsive piano app requires instantaneous, zero-latency audio playback. Existing Flutter audio plugins were either bloated, relied on heavy web-based audio engines, or couldn't efficiently parse custom SF2 (SoundFont) files entirely offline.
The goal was maximum efficiency and minimal app footprint. Instead of reinventing the audio wheel in Dart, I wrapped the highly respected, lightweight TinySoundFont C/C++ synthesizer. I built a native bridge to allow Flutter apps to load custom .sf2 files from the device's temporary directory and trigger precise MIDI notes with velocity.
Bridging low-level C/C++ audio synthesis with Dart via platform channels while guaranteeing zero-latency response for multi-touch inputs. Managing memory allocation safely when loading binary SoundFont data into the synthesizer, ensuring the app wouldn't crash during rapid, polyphonic chord playback.
A hyper-lightweight, open-source MIDI playback plugin that works entirely offline. It keeps app bundle sizes incredibly small while delivering realistic instrument sounds, solving the core audio infrastructure problem for Empyreal Keys and other Flutter music apps.