Skip to content
pubscout

flutter_midi_command

1.4.0, released 6 weeks ago by invisiblewrench.com

Send and receive MIDI messages between Flutter and physical or virtual MIDI devices.

WASM-ready
$ flutter pub add flutter_midi_command
Source repository

What it does

A Flutter plugin that wraps platform MIDI APIs (CoreMIDI, android.media.midi, ALSA, win32, and Web MIDI) to send and receive MIDI messages. It supports USB, Bluetooth Low Energy (BLE), virtual devices, and network sessions, while including a typed MIDI parser and generator.

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

Use it when

  • Building music applications that need to communicate with hardware keyboards or synthesizers via USB or Bluetooth MIDI.
  • Developing cross-platform music tech tools requiring low-level MIDI message parsing and generation.

Skip it when

  • Your project targets Flutter versions below 3.44.0.
  • You do not need hardware MIDI interaction and only require software audio playback.

Strengths

  • Cross-platform support spanning Android, iOS, web, Windows, macOS, and Linux.
  • Built-in typed MIDI parser and generator supporting running status and interleaved realtime bytes.
  • Supports multiple transports including USB, BLE, virtual devices, and network sessions.

Weaknesses

  • Requires minimum platform and Flutter SDK versions (such as Flutter 3.44.0+).
  • Platform-specific permissions and setup (like Bluetooth or network usage descriptions) must be configured manually by the app owner.

Setup

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

Requires Kotlin and Swift support, configuring platform minimum versions, and setting up native permissions/capabilities for Bluetooth or network sessions depending on the transports used.

import 'package:flutter_midi_command/flutter_midi_command.dart';

final MidiCommand midi = MidiCommand();

Future<void> listDevices() async {
  final devices = await midi.devices;
  print(devices);
}

Alternatives

Packages that do the same job and could replace flutter_midi_command.

Works with

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