# MIDI device(s) with Obsidian Onyx

## 1. Add an Onyx element

On the **Elements** section, click the **Add** button to add an Onyx element to the project:

* **Lighting > Obsidian > Onyx**

### Enable the Element

Click the toggle buttons on the element to enable it.

2\. Add MIDI device element

Use the **Add** button again to add your MIDI device element through **External Control > MIDI**. Currently, RD/ShowCockpit has out-of-the-box support for multiple MIDI devices - [check out the complete compatibility list here](https://showcockpit.com/site/docs/).

{% hint style="info" %}
If your device is not listed, you will need to use the **Generic MIDI** driver and map your device controls manually.&#x20;
{% endhint %}

When using a specific MIDI device driver, you can skip to Step 4.

### Set Element Options

After adding the element, make sure that the correct device is selected under both Input Device and Output Device options.

### Enable the Element

Finally, click the toggle button on the MIDI device element to enable it.

## 3. Learn MIDI Controls (Generic MIDI only)

In case you selected the **Generic MIDI** driver, now you need to "teach" this driver what controls (faders, buttons and encoders) your device has. For the officially supported MIDI devices, controls are automatically mapped, so you can skip to the next step.

Double-click the **Generic MIDI** element to open its window - you will start by mapping the **Faders**. Click on **Enable Learn** on the top-right to start listening to MIDI input.

![](https://3766568293-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LuTyAYhvh-0rGV983Jy%2F-MVgww-RQ-QQk822Uf08%2F-Lub1GCEgZ2P2gLob46Z%2Fgeneric_midi.PNG?alt=media\&token=bd983ffd-87f9-438c-a909-5fe961113efe)

* Move, one-by-one, all **Faders** on your MIDI device. They will be added to the **Faders** list.
* To map the **Buttons**, click on **Buttons** (above the table) and repeat the procedure now for all your device buttons.
* Finally, map your **Encoders** by clicking on **Encoders** and repeat the procedure for all the encoders.

You can now close the **Generic MIDI** window by clicking **Back to Elements** or clicking on any menu button.

## 4. Mapping

Open the **Mapping** section on the Main Menu.

This section is divided into 3 columns, from left to right:

* Functions
* Parameters
* Controls

Select the **Onyx** element on the Functions column and select a function (for example, "Main Playback Fader"). When you select the function, the button will be highlighted and the second column will have the parameters for the function. In this case, you can select which playback fader you want to control.

Select the **Generic MIDI** element on the Controls column, open the Faders list and click on one of the faders to assign the function.

If you now move your fader, the mapped Main Playback Fader on Onyx should act accordingly.

Repeat the process for all desired controls.
