FlutterMidiEnginePlatform class abstract
The interface that platform-specific implementations of flutter_midi_engine must extend.
- Inheritance
-
- Object
- PlatformInterface
- FlutterMidiEnginePlatform
- Implementers
Constructors
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
-
changeProgram(
{required int program, int channel = 0}) → Future< void> -
Change the program (instrument) on a channel
program- Program number (0-127)channel- MIDI channel (0-15) -
loadSoundfont(
String path) → Future< bool> - Load a soundfont file from the given path Supports SF2, SF3, and other compatible formats
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
playNote(
{required int note, int velocity = 64, int channel = 0}) → Future< void> -
Play a MIDI note
note- MIDI note number (0-127)velocity- Note velocity (0-127)channel- MIDI channel (0-15) -
resetAllControllers(
) → Future< void> - Reset all controllers on all channels
-
sendControlChange(
{required int controller, required int value, int channel = 0}) → Future< void> -
Send a raw MIDI control change message
controller- Controller number (0-127)value- Controller value (0-127)channel- MIDI channel (0-15) -
sendPitchBend(
{required int value, int channel = 0}) → Future< void> -
Send a pitch bend message
value- Pitch bend value (-8192 to 8191, 0 is center)channel- MIDI channel (0-15) -
setChorus(
{int voices = 3, double level = 0.5, double speed = 0.3, double depth = 0.8}) → Future< void> -
Set chorus parameters
voices- Number of voices (0-99)level- Chorus level (0.0-1.0)speed- LFO speed in Hz (0.29-5.0)depth- LFO depth (0.0-1.0) -
setPan(
{required int pan, int channel = 0}) → Future< void> -
Set the pan position for a channel
pan- Pan position (0=left, 64=center, 127=right)channel- MIDI channel (0-15) -
setReverb(
{double roomSize = 0.2, double damping = 0.5, double width = 0.5, double level = 0.3}) → Future< void> -
Set reverb parameters
roomSize- Room size (0.0-1.0)damping- Damping amount (0.0-1.0)width- Stereo width (0.0-1.0)level- Reverb level (0.0-1.0) -
setVolume(
{required int volume, int channel = 0}) → Future< void> -
Set the volume for a channel
volume- Volume level (0-127)channel- MIDI channel (0-15) -
stopAllNotes(
) → Future< void> - Stop all currently playing notes on all channels
-
stopNote(
{required int note, int velocity = 64, int channel = 0}) → Future< void> -
Stop a MIDI note
note- MIDI note number (0-127)velocity- Release velocity (0-127)channel- MIDI channel (0-15) -
toString(
) → String -
A string representation of this object.
inherited
-
unloadSoundfont(
) → Future< bool> - Unload the current soundfont and free resources
-
unmute(
) → Future< void> - Unmute the device (iOS specific - allows sound even if device is muted)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterMidiEnginePlatform
-
The default instance of FlutterMidiEnginePlatform to use.
getter/setter pair