FlutterMidiPlugin class

Inheritance
  • Object
  • PlatformInterface
  • FlutterMidiPlugin

Constructors

FlutterMidiPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

changeSound({required ByteData? sf2, String name = 'instrument.sf2'}) Future<String?>
Needed so that the sound font is loaded On iOS make sure to include the sound_font.SF2 in the Runner folder. This does not work in the simulator.
inherited
handleMethodCall(MethodCall call) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
playMidiNote({required int midi}) Future<String?>
Play a midi note from the sound_font.SF2 library bundled with the application. Play a midi note in the range between 0-256 Multiple notes can be played at once as seperate calls.
inherited
prepare({required ByteData? sf2, String name = 'instrument.sf2'}) Future<String?>
Needed so that the sound font is loaded On iOS make sure to include the sound_font.SF2 in the Runner folder. This does not work in the simulator.
inherited
stopMidiNote({required int midi}) Future<String?>
Use this when stopping the sound onTouchUp or to cancel a long file. Not needed if playing midi onTap.
inherited
toString() String
A string representation of this object.
inherited
unmute() Future<String?>
Unmute the device temporarly even if the mute switch is on or toggled in settings.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void