Skip to main content

flutter_midi_engine 0.3.0 copy "flutter_midi_engine: ^0.3.0" to clipboard
flutter_midi_engine: ^0.3.0 copied to clipboard

MIDI synthesizer plugin for Flutter. Play MIDI notes with built-in General MIDI sounds or SF2 soundfonts on Android, iOS, macOS and the web.

0.3.0 #

  • Added web support. Notes play through SpessaSynth, an SF2/SF3/DLS synthesizer running in an AudioWorklet, bundled with the plugin as web-only assets (no CDN). loadSoundfont('') uses the same built-in soundfont as iOS. All 16 channels have their own instrument and channel 9 plays drums.
  • loadSoundfontFromAsset now works on the web (it passes the bytes directly instead of writing a temporary file).
  • Added FlutterMidiEnginePlatform.loadSoundfontBytes.
  • Added Swift Package Manager support for iOS and macOS (#5). Fixes the "plugin does not support Swift Package Manager" warning. CocoaPods still works.

0.2.1 #

  • Android: loadSoundfont('') now works. Before, it returned false because the empty path was checked as a file, so the example app never started.
  • Docs: Android can't load soundfont files and always uses the built-in Sonivox sounds. The README and API docs said otherwise.
  • Docs: removed SF3 and FluidSynth mentions, updated the implementation guide for macOS and the bundled iOS soundfont, and wrote a README for the example app.

0.2.0 #

  • Requires Flutter 3.50 / Dart 3.14.
  • Added macOS support (macOS 10.15+). Uses Apple's AUSampler like iOS. loadSoundfont('') loads the General MIDI sounds built into macOS, and audio follows the default output device when it changes.
  • iOS: loadSoundfont('') now works. It loads a small soundfont bundled with the plugin (generated by tool/generate_soundfont.py, MIT). Before, the example app never started on iOS.
  • iOS: changeProgram now loads the chosen preset from the soundfont.
  • Android: supports 16 KB memory page sizes, required by Google Play (#2). Switched to io.github.nikita36078:mididriver:v1.30 (same API, from Maven Central), so the JitPack repository is no longer needed.
  • Plugin no longer applies the Kotlin Gradle Plugin. Fixes the "plugins that apply Kotlin Gradle Plugin (KGP)" warning (#3).
  • Example app: moved to AGP 9.3.1, Kotlin 2.4.20, Gradle 9.5.0 and iOS 15.0.
  • Example app: migrated from package:flutter/material.dart to package:material_ui.

0.1.5 #

  • Fixed audio routing on headset/Bluetooth connect & disconnect. Audio now follows the active output device instead of cutting out:
    • Android: registers an AudioDeviceCallback and restarts the MIDI driver when output devices are added/removed so its AudioTrack re-binds to the new route.
    • iOS: configures the AVAudioSession for playback (with Bluetooth A2DP and AirPlay) and observes route-change and interruption notifications, restarting the audio graph so the RemoteIO unit picks up the new device.
  • Hardened iOS support: the audio session is now configured and activated at startup, and recovers automatically after interruptions (e.g. phone calls).
  • Added support for Flutter 3.44 and Dart 3.12
  • Migrated the Android build to built-in Kotlin support (Flutter 3.44 breaking change). The kotlin-android plugin is now only applied on AGP 8 and earlier, so the plugin builds against both AGP 8 and AGP 9 / built-in Kotlin
  • Replaced the deprecated kotlinOptions/buildscript Kotlin classpath with the kotlin { compilerOptions { ... } } DSL and bumped the Kotlin JVM target to 17
  • Bumped Android compileSdk to 36 and minSdk to 24
  • Bumped the minimum iOS deployment target to 13.0
  • Fixed placeholder metadata (homepage, author, version) in the iOS podspec

0.1.3 #

  • Fixed iOS build issue with AudioUnitSetProperty CFURL parameter
  • Resolved Swift compiler error: '&' may only be used to pass an argument to inout parameter

0.1.2 #

  • Fixed Android MidiDriver API compatibility issues
  • Updated to use MidiDriver.getInstance() instead of constructor
  • Added comprehensive example app with interactive piano keyboard
  • Example includes instrument selection, volume control, and visual feedback
  • Improved Android build stability

0.1.1 #

  • Fixed Android build issue with mididriver dependency
  • Added JitPack repository for Android native library
  • Updated mididriver to version 1.25

0.1.0 #

  • Initial release of Flutter MIDI Engine
  • SF2 and SF3 soundfont support on Android and iOS
  • Full 16-channel MIDI playback
  • Program changes (128 instruments per soundfont)
  • Note on/off with velocity control
  • Volume and pan control per channel
  • Audio effects (reverb and chorus)
  • Pitch bend support
  • Control change messages
  • All notes off and reset controllers
  • Asset loading support for soundfonts
  • iOS unmute functionality
  • Web platform stub implementation
  • Comprehensive API documentation
  • Example app with piano keyboard
6
likes
150
points
265
downloads

Documentation

Documentation
API reference

Publisher

verified publisherbrewnbeer.com

Weekly Downloads

MIDI synthesizer plugin for Flutter. Play MIDI notes with built-in General MIDI sounds or SF2 soundfonts on Android, iOS, macOS and the web.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, path_provider, plugin_platform_interface, web

More

Packages that depend on flutter_midi_engine

Packages that implement flutter_midi_engine