All Projects → keijiro → Minis

keijiro / Minis

Licence: other
Minis: MIDI Input for New Input System -- A plugin that adds MIDI input support to Unity's new Input System

Projects that are alternatives of or similar to Minis

Vfxminisexamples
Unity examples showing how to control VFX graphs with MIDI devices
Stars: ✭ 122 (-42.99%)
Mutual labels:  unity, unity3d, midi
Midianimationtrack
SMF (.mid) file importer for Unity Timeline
Stars: ✭ 243 (+13.55%)
Mutual labels:  unity, unity3d, midi
Asynccapturetest
Non-blocking screen capture example with asynchronous GPU readback
Stars: ✭ 191 (-10.75%)
Mutual labels:  unity, unity3d
Fluent State Machine
Fluent API for creating state machines in C#
Stars: ✭ 195 (-8.88%)
Mutual labels:  unity, unity3d
Delight
Delight is an open source component-oriented framework for Unity.
Stars: ✭ 201 (-6.07%)
Mutual labels:  unity, unity3d
Unitysingleton
The best way to implement singleton pattern in Unity.
Stars: ✭ 185 (-13.55%)
Mutual labels:  unity, unity3d
Deadsimple Pixel Perfect Camera
An exceedingly easy-to-use pixel perfect orthographic camera script for 2D scenes in Unity. Punch in a few specs and you've got a working pixel perfect camera. It's that easy.
Stars: ✭ 186 (-13.08%)
Mutual labels:  unity, unity3d
Lomenui
Stylish UI package for Unity engine.
Stars: ✭ 199 (-7.01%)
Mutual labels:  unity, unity3d
Unitylive2dextractor
Unity Live2D Cubism 3 Extractor
Stars: ✭ 183 (-14.49%)
Mutual labels:  unity, unity3d
Wfcmaze
WFC (Wave Function Collapse) with Unity
Stars: ✭ 212 (-0.93%)
Mutual labels:  unity, unity3d
Nice Lua
基于xlua的MVVM框架,支持Addressables, 统一渲染管线等Unity新特性
Stars: ✭ 207 (-3.27%)
Mutual labels:  unity, unity3d
Klakhap
HAP video player plugin for Unity
Stars: ✭ 209 (-2.34%)
Mutual labels:  unity, unity3d
Videolabtest
OP-Z videolab examples
Stars: ✭ 186 (-13.08%)
Mutual labels:  unity, unity3d
Oxide.rust
Rust game extension for the Oxide modding framework
Stars: ✭ 185 (-13.55%)
Mutual labels:  unity, unity3d
Isaura
An attempt at making a aura thingie with a isoline shader.
Stars: ✭ 187 (-12.62%)
Mutual labels:  unity, unity3d
Unityanime4k
Anime4K upscaler for Unity
Stars: ✭ 183 (-14.49%)
Mutual labels:  unity, unity3d
Unity Shaders
✨ Shader demo - More than 300 examples
Stars: ✭ 198 (-7.48%)
Mutual labels:  unity, unity3d
Vfxgraphtestbed
My testbed for Unity VFX Graph
Stars: ✭ 209 (-2.34%)
Mutual labels:  unity, unity3d
Kinobinary
Binary image effect for Unity
Stars: ✭ 180 (-15.89%)
Mutual labels:  unity, unity3d
Vfxpyro
Fireworks particle effect with Unity VFX Graph
Stars: ✭ 181 (-15.42%)
Mutual labels:  unity, unity3d

Minis: MIDI Input for New Input System

gif gif

Minis (MIDI Input for New Input System) is a Unity plugin that adds MIDI input device support to Unity's new Input System.

System Requirements

  • Unity 2019.3 or later
  • 64-bit desktop platforms (Windows, macOS, Linux)

On Linux, ALSA (libasound2) must be installed on the system.

How To Install

This package uses 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.minis": "1.0.9"

After changes, the manifest file should look like below:

{
  "scopedRegistries": [
    {
      "name": "Keijiro",
      "url": "https://registry.npmjs.com",
      "scopes": [ "jp.keijiro" ]
    }
  ],
  "dependencies": {
    "jp.keijiro.minis": "1.0.9",
    ...

How To Use

Input Controls

When Minis is installed to a project, MIDI control elements appear under "Other" > "MIDI Device". You can also use the "Listen" button to select a control.

gif

TIPS - There is a small known issue where the listener only reacts to notes with high velocity (higher than 63). You may have to press a key strongly.

The MIDI Notes are shown as button controls with names like "Note C4". These controls work as pressure-sensitive buttons. These button values are normalized as values between 0.0 to 1.0.

The MIDI Controls (CC) are shown as axis controls with names like "Control 10". These axis values are normalized as values between 0.0 to 1.0.

For further usage of the new Input System, please see the Input System manual.

MIDI Channels

Minis treats each MIDI channel as an individual device. MIDI devices are dynamically added to the Input System when it detects a MIDI message from a new channel.

TIPS - It means that the Input System can't detect a MIDI device until it sends a message. You may have to prompt the user to press a key to activate the device.

When multiple MIDI interfaces are connected to the system, channels under these interfaces are also treated as individual devices. For instance, if you have connected two MIDI interfaces to a computer, you can use up to 32 input devices at the same time (as each interface can handle up to 16 channels).

MIDI Device Assigner

inspector

MIDI Device Assigner is a small utility that assigns a MIDI device to PlayerInput. You can specify a MIDI channel and a product name as a search condition. It assigns a found device to a PlayerInput instance that exists in the same GameObject.

Scripting Examples

This repository contains some examples showing how to use Minis from C# scripts.

DeviceCallback.cs - This script shows how to define a callback to get notified on MIDI device additions and removals.

DeviceQuery.cs - This script shows how to search MIDI devices by a pattern matching with a product name and a channel number.

NoteCallback.cs - This script shows how to define a callback to get notified on MIDI note-on/off events.

Frequently Asked Questions

Does it support MIDI out?

No, but the backend (RtMidi) supports MIDI out. You can use the output functionality by directly accessing it. Please check the RtMidi for Unity repository that contains a MIDI out sample script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].