# 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="https://2961795397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUd6jgszxLuhJfHuCabdk%2Fuploads%2Fgit-blob-b33a5685e6775c9c97ac81066d49400d56d02057%2Fimage%20(46).png?alt=media" alt=""><figcaption><p>Open Song via MIDI</p></figcaption></figure>

<img src="https://2961795397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUd6jgszxLuhJfHuCabdk%2Fuploads%2Fgit-blob-c3c70a66b425e3516a639c4e49a63aca48a7e671%2Fbulletpoint-01.png?alt=media" 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="https://2961795397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUd6jgszxLuhJfHuCabdk%2Fuploads%2Fgit-blob-b699655ac8771463ca5f56be31a596f7f26ed933%2Fbulletpoint-02.png?alt=media" 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="https://2961795397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUd6jgszxLuhJfHuCabdk%2Fuploads%2Fgit-blob-14af25b30b774428b15a988f9f808a4da873c60c%2Fbulletpoint-03.png?alt=media" 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: [einfache-keyboardsteuerung](https://docs.songbookplus.com/english/readme/midi-features-verwenden/einfache-keyboardsteuerung "mention")
