midi_player 0.2.0 icon indicating copy to clipboard operation
midi_player: ^0.2.0 copied to clipboard

A Flutter plugin to play midi on iOS and Android uses SoundFont (.sf2) 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/Piano.sf2');
  • Play midi note
_midiPlayer.playNote(note: 60);
or
_midiPlayer.playNote(note: 62, velocity: 0.5);
  • Dispose after usage
_midiPlayer.dispose();

TDB #

  • macOS

  • Windows

  • Linux

  • Web

3
likes
120
pub points
59%
popularity

Publisher

verified publisher iconteplyakov.me

A Flutter plugin to play midi on iOS and Android uses SoundFont (.sf2) files

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on midi_player