> 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/portugues/readme/midi-features-verwenden/song-ferngesteuert-uber-midi-offnen.md).

# Abrir uma música remotamente via MIDI

SongBook+ pode escutar comandos *BankSelect* e *ProgramChange* na interface MIDI e, em seguida, abrir uma música. Esses comandos são normalmente usados para selecionar um instrumento.

Uma aplicação típica para isso é que comandos *ProgramChange* sejam enviados de um estilo MIDI, de um arquivo MIDI reproduzido ou do teclado ao selecionar uma registratura. SongBook+ então abre o texto correspondente. (Um estilo MIDI pode enviar repetidamente o mesmo comando *ProgramChange* sem problemas ao repetir).

SongBook+ abre um música quando recebe comandos *BankSelect* e *ProgramChange* conforme configurado na janela “Editar detalhes da música”.

Por favor, note que o SongBook+ utiliza valores de 0 a 127. Se o seu teclado, ao invés disso, utiliza valores de 1 a 128, é necessário subtrair 1 para obter o valor correto a ser configurado no SongBook+.

<figure><img src="/files/UvERE9Se4nbPvK5HVJRv" alt=""><figcaption><p>Abrir música via MIDI</p></figcaption></figure>

<img src="/files/CMRM0hQPeGoX5mi19Sss" alt="" data-size="line">Com essas configurações, a música será aberta quando um dispositivo MIDI enviar o comando para selecionar o instrumento 16 no Banco 1 / 5.

<img src="/files/flAhyhyUZ4Ej1i7FKiWN" alt="" data-size="line">Pressione este botão se desejar ensinar uma sequência MIDI em vez de ajustar com os botões giratórios.

<img src="/files/oyid4DJi4RhzRh8jouNv" alt="" data-size="line">Na janela do Monitor MIDI, você pode ver o seguinte quando esses comandos forem recebidos.

{% hint style="info" %}
Por favor, use o monitor MIDI interno do SongBook+ para ver o que realmente está sendo recebido na interface MIDI, caso a abertura das músicas não funcione como esperado.
{% endhint %}

Para teclados da Yamaha e Korg, há uma maneira mais simples. Para mais informações, consulte este capítulo: [Controle Simples de Teclado](/portugues/readme/midi-features-verwenden/einfache-keyboardsteuerung.md)


---

# 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/portugues/readme/midi-features-verwenden/song-ferngesteuert-uber-midi-offnen.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.
