> For the complete documentation index, see [llms.txt](https://docs.songbookplus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.songbookplus.com/italiano/readme/songtexte-und-akkorde-importieren/aus-midi-dateien.md).

# Da file MIDI

## Importare testi e accordi da file MIDI <a href="#toc165549792" id="toc165549792"></a>

L'importazione dei testi da file MIDI funziona allo stesso modo descritto sopra per i file MP3 ([Da file MP3](/italiano/readme/songtexte-und-akkorde-importieren/aus-mp3-dateien.md)).

L'unica differenza è che esiste un campo separato per selezionare un file MIDI.

### Formattazione dei testi dai file MIDI

A partire dalla versione 6.4, SongBook+ può anche acquisire informazioni di formattazione dai testi MIDI.

Non si tratta di uno standard ufficiale, ma di una definizione propria di SongBook+, sviluppata in linea con ChordPro.

La stessa utilizzata per i file MIDI verrebbe adottata da SongBook+ anche se presente nei file ChordPro.

Nei testi MIDI possono essere inserite le seguenti marcature per influenzare la visualizzazione in

SongBook+:

* {color:x}, per passare a un altro colore
  * Per x può essere utilizzato uno dei seguenti colori: red, green, blue, yellow, magenta, cyan, black
  * In alternativa a questi colori, è possibile inserire il valore RGB esadecimale di un colore qualsiasi nel formato #RRGGBB, ad esempio #7A67EE
* {bold:on}, per passare al grassetto
* {bold:off}, per tornare al testo non in grassetto
* {italic:on}, per passare al corsivo
* {italic:off}, per tornare al testo non in corsivo

Le marcature possono essere inserite come sillaba a sé stante, oppure aggiunte all'inizio o alla fine di una sillaba esistente, o anche nel mezzo di una sillaba.

Le marcature possono apparire ovunque, anche nel mezzo del testo, anche più di una di seguito e possono essere annidate in qualsiasi modo.

**Esempio:**

```
Qui inizia {color:red}testo rosso, {italic:on}poi diventa corsivo, {italic:off}non più corsivo, {bold:on}poi grassetto, {italic:on}{color:blue}poi grassetto e corsivo e in blu,{italic:off}{bold:off}{color:black}poi di nuovo normale e in nero.
```

Qui inizia <mark style="color:red;">testo rosso</mark>, *poi diventa corsivo,* non più corsivo\_,\_ **poi grassetto**, *<mark style="color:blue;">**poi grassetto e corsivo e in blu**</mark>,* poi di nuovo normale e in nero.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.songbookplus.com/italiano/readme/songtexte-und-akkorde-importieren/aus-midi-dateien.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
