# From MIDI Files

## Import Song Text and Chords from MIDI Files <a href="#toc165549792" id="toc165549792"></a>

The import of song texts from MIDI files works the same way as described above for MP3 files ([From MP3 Files](/english/readme/songtexte-und-akkorde-importieren/aus-mp3-dateien.md)).

The only difference is that there is a separate field for selecting a MIDI file.

### Formatting Lyrics from MIDI Files

Starting with version 6.4, SongBook+ can also import formatting information from MIDI lyrics.

This is not an official standard but a definition created by SongBook+, inspired by ChordPro.

The formatting defined here for MIDI files could also be used by SongBook+ if they appeared in ChordPro files.

In the MIDI lyrics, the following tags can be inserted to affect the display in SongBook+:

* {color:x}, to switch to a different color
  * For x, you can use one of the following colors: red, green, blue, yellow, magenta, cyan, black
  * Instead of these colors, you can also use the hexadecimal RGB value of any color in the format #RRGGBB, e.g., #7A67EE
* {bold:on}, to switch to bold text
* {bold:off}, to switch back to non-bold text
* {italic:on}, to switch to italic text
* {italic:off}, to switch back to non-italic text

The tags can be inserted as separate syllables or appended to the front or back of an existing syllable, or even inserted in the middle of a syllable.

The tags can appear anywhere in the text, even in the middle of the text, multiple times in succession, and can be nested arbitrarily.

**Example:**

```
Here comes {color:red}red text, {italic:on}then it becomes italic, {italic:off}not italic anymore, {bold:on}then bold, {italic:on}{color:blue}then bold and italic and in blue,{italic:off}{bold:off}{color:black}then back to normal and in black.
```

Here comes <mark style="color:red;">red text</mark>, *then it becomes italic,* not italic anymore,\_ **then bold**, *<mark style="color:blue;">**then bold and italic and in blue**</mark>,* then back to normal and in black.


---

# 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://docs.songbookplus.com/english/readme/songtexte-und-akkorde-importieren/aus-midi-dateien.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.
