midi_player

Last updated:

0 purchases

midi_player Image
midi_player Images
Add to Cart

Description:

midi player

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
copied to clipboard

Load the sound

_midiPlayer.load('assets/Piano.sf2');
copied to clipboard

Play midi note

_midiPlayer.playNote(note: 60);
or
_midiPlayer.playNote(note: 62, velocity: 0.5);
copied to clipboard

Dispose after usage

_midiPlayer.dispose();
copied to clipboard
TDB #


macOS


Windows


Linux


Web

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.