# 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 ([aus-mp3-dateien](https://docs.songbookplus.com/english/readme/songtexte-und-akkorde-importieren/aus-mp3-dateien "mention")).

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.
