MidiInReader is a Prefab, available with the Pro version, that you can use to read Midi events from your Midi keyboard connected to your computer (Windows 10 or MacOs). Moreover, without any scripting, you can play audio directly with the MPTK. Synth.
Equally important, by script, you can process each Midi Events to do … what you want to do !
Only one MidiInReader is allowed by project. There is no sense to have more than one !
The prefab MidiInReader is based on “MIDI Jack” from Keijiro Takahashi. It’s a MIDI input plugin for Unity.
- Read Midi Events: Midi events from the keyboard are read.
- Log Midi Events: log information about events in console.
- Send To MPTK Synth: midi events are played in real time with the internal MPTK synth.
- On Event Input Midi: be notified when a new event is read from your keyboard. Trigger a method in your script and do … what you want to do !