RtMidiKlak
RtMidiKlak is another extension for Klak, that provides functionality for receiving and sending MIDI messages from physical/virtual MIDI devices.
I made RtMidiKlak after keijiro's repositories to overcome some troulbes I had with MidiKlak, and to provide MIDI output inside Klak. Many thanks to keijiro for the repositories he made available to us.
System Requirements
- Unity 2019.1 or later
- Windows, macOS or Linux
- Only supports 64-bit architecture
RtMidiKlak has dependency to the following packages. Please import them before installing RtMidiKlak.
How To Install
Since this package depends on jp.keijiro.rtmidi , you need to add it through the scoped registry feature to resolve package dependencies. Please add the following sections to the manifest file (Packages/manifest.json).
To the scopedRegistries
section:
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
To the dependencies
section:
"jp.keijiro.rtmidi": "1.0.3"
After changes, the manifest file should look like below:
{
"scopedRegistries": [
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
],
"dependencies": {
"jp.keijiro.rtmidi": "1.0.3",
...
Then, import RtMidiKlak.unitypackage
Finally, go to Player Settings
( Edit -> Project Settings -> Player
) and make sure Allow 'unsafe' Code
is checked.
How To Use It
RtMidiKlak provides four components -- RtNoteInput , RtKnobInput , RtNoteOut and RtCcOut.
- RtNoteInput - receives MIDI note messages and invokes Unity events with input values (note number and velocity).
- RtKnobInput - receives MIDI CC (control change) messages and invokes Unity events with a single float value.
- RtNoteOut - sends MIDI note messages out.
- RtCcOut - sends MIDI CC (control change) messages out.
Also see [the troubleshooting topics][Troubleshoot] if you meet any problem in using MIDI devices.