midi_player 0.2.0 copy "midi_player: ^0.2.0" to clipboard
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

6
likes
130
pub points
50%
popularity

Publisher

verified publisherteplyakov.me

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on midi_player