> For the complete documentation index, see [llms.txt](https://axongenesis.gitbook.io/timeflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://axongenesis.gitbook.io/timeflow/reference/behaviors/midi/midi-receiver/midijack-setup-legacy-input.md).

# MidiJack Setup (Legacy Input)

How to install and configure MidiJack

{% hint style="info" %}
MidiJack is included by this setup and should not be installed from github or elsewhere. If any other instances of MidiJack exist in the project, they should be removed first before continuing.
{% endhint %}

## Installation

1. Open the Package Manager from the Windows menu.
2. Select Timeflow and scroll down to the samples to locate MidiJack.
3. Click **Import** to install the package.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FNpnrdj5VDR5hu1cAfU7A%2Fimage.png?alt=media&amp;token=279df497-6c41-4f7f-b36f-2a3138738624" alt=""><figcaption></figcaption></figure>

## Finish Setup

To confirm that MidiJack is installed and working, open the MidiJackExample scene.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2FExdVN3pi0T4xYzcBHbQZ%2Fimage.png?alt=media&amp;token=0c37efd5-a329-4d5d-83af-508abfcd613c" 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%2FVeVTe0Gtj0Y4OvGFYzPE%2Fimage.png?alt=media&amp;token=57105963-6447-4793-bf47-06d4f2969ac3" alt=""><figcaption></figcaption></figure>

If you see the warning message displayed below, click **Setup MidiJack** 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&amp;token=8c09db91-26db-4ef2-8c8e-022ea0508f72" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This adds the scripting define symbol **MIDIJACK** to the Player Settings, which enables related features in Timeflow. If this symbol is missing then script compile errors will report that the type or namespace 'MidiJack' cannot be found.
{% endhint %}

If for some reason the auto-setup fails, the scripting define symbol may be added in Project Settings / Player, as shown below.

<figure><img src="https://2067910529-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC3dOuetlQfYgK5FPUKgn%2Fuploads%2F7lj5Fpe7sJM3Dnft25XH%2Fimage.png?alt=media&amp;token=5781e246-08ed-4b32-937d-79084a27bdca" alt=""><figcaption><p>Make sure to press the Apply button</p></figcaption></figure>

After scripts are done recompiling, the warning will go away and you can now start using MidiJack. 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&amp;token=fe3714f2-6adb-4f61-a145-ae044bc9afac" alt=""><figcaption></figcaption></figure>

For further instructions, see the [Midi Receiver](/timeflow/reference/behaviors/midi/midi-receiver.md) page.

{% hint style="info" %}
To uninstall MidiJack, remove the **MIDIJACK** scripting define symbol from Player Settings, and delete the MidiJack samples from the project.
{% endhint %}

{% hint style="info" %}
MidiJack was created by Keijiro \
<https://github.com/keijiro/MidiJack>
{% endhint %}
