Skip to content

Add an option to receive the raw MIDI packets as received from the device without buffering #111

@intonarumori

Description

@intonarumori

I have a use case where I need access to the raw MIDI packets sent by a MIDI device.
Specifically I’d like to circumvent the part of the platform code where the library buffers data to wait for every part of a SysEx transfer to be received first before forwarding it to Flutter.

I'm working with samplers from the `80s where not all parts of the MIDI specifications was formalized, so it's crucial to be able to access incoming data without any buffering.

I've implemented a solution with the following goals in mind:

  • Since this is a very specific, advanced use case it should not affect existing code using the library
  • I've added a flag to enable "raw MIDI data receiving", which by default is set to false
  • When enabled it forwards every MIDI packet as received without processing of buffering it first

I've implemented this by modifying the platform interface and added the platfrom specific implementation for iOS here:
#110
InvisibleWrench/flutter_midi_command_platform_interface#2

Let me know what you think, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions