midi_player 0.1.1 copy "midi_player: ^0.1.1" to clipboard
midi_player: ^0.1.1 copied to clipboard

PlatformAndroidiOS
outdated

Flutter plugin for playing midi files

midi_player #

A Flutter Plugin to Play midi on iOS and Android uses SoundFont (.sf2) files.

Important notes #

This plugin is still under development. Android code is based on fluidsynth, iOS version is based on build-in iOS AudioUnit and flutter package flutter_midi. Other platforms are planned.

Installation #

  • Add sf2 file and include it in pubspec.yaml
assets:
   - assets/Piano.sf2
  • Load the sound
_midiPlayer.load('assets/FlorestanPiano.sf2');
  • Play midi note
_midiPlayer.playNote(60);
  • Dispose after usage
_midiPlayer.dispose();

TDB #

  • macOS

  • Windows

  • Linux

  • Web