MIDI Plugin for Mobile, Desktop, and WebGL.
This asset add MIDI functions to your apps, such as transeiving MIDI events, playing/recording MIDI sequence and import/export SMF midi files.
Avaliable on the Unity Asset Store!
Features
Can connect with BLE MIDI(iOS, Android, OSX, Linux, WebGL), USB MIDI(Android, UWP, OSX, Linux, Windows, WebGL), Network MIDI(except for WebGL) devices.
Transfer all MIDI 1.0 events with MIDI devices.
Transfer MIDI Polyphonic Expression(MPE) messages. (experimental)
Can implement apps for all available platforms with the same script interface.
MIDI event sending with wrapped C# functions.
MIDI event receiving with Unity Event System.
MIDI sequencer feature enables playing / recording SMF sequence, also has SMF reading / writing features.
Supports Inter App MIDI connections(virtual MIDI) for iOS/MacOS/Linux/Android
WebGL Demo
This asset's sample scene with WebGL platform build.
This demo site can handle USB/Bluetooth MIDI devices, and show received events from them.
The default sample data is specified as below. You can change to another URL(https scheme required). Prelude and Fugue in C minor BWV 847 Music by J.S. Bach
The MIDI, audio(MP3, OGG) and video files of Bernd Krueger are licensed under the cc-by-sa Germany License.
This means, that you can use and adapt the files, as long as you attribute to the copyright holder
Name: Bernd Krueger
Source: http://www.piano-midi.de
The distribution or public playback of the files is only allowed under identical license conditions.