# Keyboard to MIDI

1\. Add the Required Elements

![](/files/-LuZre05DAOf_l7qWNle)

On the Elements section, click the Add button to add the required elements to the project:

* [  External Control > Keyboard and Mouse > Keyboard Keys](https://showcockpit.com/site/docs/?d=41)
* [External Control > MIDI > MIDI Output  ](https://showcockpit.com/site/docs/?d=65)

Click the toggle buttons on the the elements to enable them.

2\. Map Keyboard Keys to MIDI Output

Open the Mapping section and select the desired MIDI Output functions. Start by selecting the MIDI Output element on the left list (functions). Select a desired output (Note On, Control Change, etc.) and tune the parameters.

![](/files/-LuZuLOxLu4jWamflZaq)

Finally select the Keyboard on the right list (controls) and assign the previously selected MIDI Out function to one of the available controls.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.showcockpit.com/showcockpit-for-windows/tutorials/protocol-conversion/keyboard-to-midi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
