# Minis Setup (New Input System)

Minis (MIDI Input for New Input System) is a free 3rd party plugin for Unity created by Keijiro:

{% embed url="<https://github.com/keijiro/Minis>" %}

{% hint style="info" %}
Be aware that this configuration requires the new Input System. \
<https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/manual/index.html>
{% endhint %}

## How to Install Minis

Please refer to the GitHub repo linked above for complete information on the package. The following steps are required to install it:

1. From the main menu select Edit/Project Settings... and then select Package Manager on the left.
2. Enter the following scoped registry:

```
Name: Keijiro
URL: https://registry.npmjs.com
Scope: jp.keijiro
```

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2F0kXAPvOApOx9EiiycpB6%2Fimage.png?alt=media&#x26;token=d4eeed7f-523e-4332-8844-ae33b7cbf078" alt=""><figcaption></figcaption></figure>

3. Click Save. This will cause scripts to be recompiled.
4. Next, open the Package Manager from the main menu under Windows.
5. Set the Packages mode to **My Registries** and search for 'Minis'.
6. Select Minis on the left and then click the Install button in the lower right corner.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FK8KyHaU7boANY3Xwu17Z%2Fimage.png?alt=media&#x26;token=93b316b5-986d-4e87-952a-d4ec7f52239c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2F0oTIsAYr8zvobf4HqQXI%2Fimage.png?alt=media&#x26;token=4473c784-f57b-4b9b-b822-9626a3dfcde7" alt=""><figcaption><p>In Unity 6, the package can be found under My Registries/Keijiro</p></figcaption></figure>

Depending on your project configuration, you may encounter the following warning:&#x20;

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2F1mr3I79adPrv11xR3RJ9%2Fimage.png?alt=media&#x26;token=e2925b3a-88ff-4c33-9d38-a29ef092b3c1" alt=""><figcaption><p>Select <strong>Yes</strong> to continue.</p></figcaption></figure>

## Import Minis Sample

If you have not done so already, import the Minis package included in the Timeflow Samples. This can be found in the Package Manager under Timeflow.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FVNZ8NMRcPPVDn9NjuM3V%2Fimage.png?alt=media&#x26;token=9fd35fc7-dc4f-446a-95f0-f2303f516c6f" alt=""><figcaption></figcaption></figure>

## Finish Setup

To confirm that Minis is installed and working, open the MinisExample scene.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FOTWZBFIb4yt1AI3pXj2S%2Fimage.png?alt=media&#x26;token=6e4de4d8-3612-4412-945c-c029b0aaebdf" alt=""><figcaption></figcaption></figure>

Then in the Hierarchy window, select the MidiReceiver object and view it in the inspector.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FMQMemZ5iTSlr7LCFtIpr%2Fimage.png?alt=media&#x26;token=4b0412f5-33b1-4d3c-84ba-4b62e8044791" alt=""><figcaption></figcaption></figure>

If you see the warning message displayed below, click **Setup Minis** to complete the installation.&#x20;

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FawLIF7xxLkMui1mklaBX%2Fimage.png?alt=media&#x26;token=8c09db91-26db-4ef2-8c8e-022ea0508f72" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This adds the scripting define symbol **MINIS** to the Player Settings, which enables related features in Timeflow.
{% endhint %}

After scripts are done recompiling, the warning will go away and you can now start using Minis. With a MIDI device connected, enter play mode to test input.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2F6x0yfEz19hk2ICW4cW46%2Fimage.png?alt=media&#x26;token=fe3714f2-6adb-4f61-a145-ae044bc9afac" alt=""><figcaption></figcaption></figure>

For further instructions, see the [](https://axongenesis.gitbook.io/timeflow/reference/behaviors/midi/midi-receiver "mention") page.

{% hint style="info" %}
To uninstall Minis from the project, it can be uninstalled from the Package Manager. You will then need to remove the **MINIS** scripting define symbol from Player Settings, and delete the Minis samples from the project.
{% endhint %}
