# Open Song Remotely via MIDI

SongBook+ can listen for *BankSelect* and *ProgramChange* commands on the MIDI interface and then open a song. These commands are typically used to select an instrument.

A typical application for this is when *ProgramChange* commands are sent from a MIDI style, from a MIDI file being played, or from the keyboard when selecting a registration. SongBook+ then opens the matching text. (A MIDI style may repeatedly send the same *ProgramChange* command without issues).

SongBook+ opens a song when it receives *BankSelect* and *ProgramChange* commands as configured in the "Edit Song Details" window.

Please note that SongBook+ uses values from 0 to 127. If your keyboard instead uses values from 1 to 128, you need to subtract 1 to get the value to set in SongBook+.

<figure><img src="/files/4TrtjIa6YzfpKsXho7Ep" alt=""><figcaption><p>Open Song via MIDI</p></figcaption></figure>

<img src="/files/Ggw6QZu0T1pzyC5HKKjY" alt="" data-size="line">With these settings, the song will be opened when a MIDI device sends the command to select instrument 16 on bank 1 / 5.

<img src="/files/dTdvaLSs3JCD5Wb2e4iX" alt="" data-size="line">Press this button if you want to use a MIDI sequence to learn instead of setting with the dials.

<img src="/files/lyNUBVwPDzexVtrnZQTx" alt="" data-size="line">In the MIDI Monitor window, you can see the following when these commands are received.

{% hint style="info" %}
Please use the built-in MIDI Monitor of SongBook+ to see what is actually being received on the MIDI interface if the songs do not open as expected.
{% endhint %}

For Yamaha and Korg keyboards, there is a simpler way. You can find more about this in this chapter: [Simple Keyboard Control](/english/readme/midi-features-verwenden/einfache-keyboardsteuerung.md)


---

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