Skip to content
pubscout

flutter_midi_pro

4.0.17, released 2 weeks ago by melihhakanpektas.com

SoundFont (.sf2) synthesizer plugin for Flutter to load soundfonts and play MIDI notes.

$ flutter pub add flutter_midi_pro
Source repository

What it does

The flutter_midi_pro plugin allows you to load SoundFont (.sf2) files, change instruments, and play notes with MIDI commands. It supports expression features like pitch bend, aftertouch, master gain, and effects such as reverb and chorus.

AI-written summary of version 4.0.17, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to synthesize audio using SoundFont (.sf2) files in your Flutter app.
  • You want to play MIDI files or trigger individual notes and chords programmatically.
  • You need to build a virtual piano, synthesizer, or MIDI player.

Skip it when

  • You only need to play standard background audio tracks or simple sound effects without SoundFont synthesis.

Strengths

  • Loads multiple SoundFonts at once and plays notes across 16 MIDI channels per soundfont.
  • Supports full expression surface including pitch bend, aftertouch, and control change messages.
  • Built-in effects support such as reverb and chorus.

Weaknesses

  • Windows, Linux, and Web support are not currently documented as supported.
  • MIDI file playback features are currently Android-only.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Requires calling `init()` before using any methods. Android binaries are downloaded automatically on the first build.

import 'package:flutter_midi_pro/flutter_midi_pro.dart';

final midiPro = MidiPro();
await midiPro.init();
final soundfontId = await midiPro.loadSoundfontAsset(assetPath: 'assets/soundfont.sf2', bank: 0, program: 0);
midiPro.playNote(sfId: soundfontId, channel: 0, key: 60, velocity: 127);

Alternatives

Packages that do the same job and could replace flutter_midi_pro.

Works with

Packages commonly used together with flutter_midi_pro: ones it builds on, ones built on it, and its own family.