# MIDI

> Be sure that you are in the "Songwriting" mode of the app.&#x20;

To export a MIDI file swipe up the sheet at the bottom of the screen and tap on the icon highlighted below.

If you don't see it, you must scroll the list of icons horizontally.

<div align="left"><img src="/files/-LzBs2gQdhjZLsoH0ay8" alt=""></div>

👉 In the following sheet, tap "MIDI".

<div align="left"><img src="/files/-LzBtfV9GADSa8pN-url" alt=""></div>

👉 Tap on "Share MIDI file".

<div align="left"><img src="/files/-LzBtoYgnLRdp90MmLez" alt=""></div>

You can change the file name, add a suffix (Date & time) to the file. Also, you can set which extension you would like to export `.mid` (Default) or `.midi`

{% hint style="info" %}
Note that the app is creating automated inversions for a MIDI file if this [**setting is activated in the "Musical preferences"**](/settings/musical-preferences/auto-voice-leading.md).&#x20;
{% endhint %}

{% hint style="warning" %}
If the **export is failing**, check the file name for incompatible letters. \
Watch out for letters like: `/ ? % * : | " < > .`
{% endhint %}


---

# 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://guide.tonaly.app/export/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.
