# MIDI Commands When Stopping Songs

## Send MIDI Start When a Song is Stopped <a href="#toc165549812" id="toc165549812"></a>

In the SongBook+ settings, you can configure whether MIDI Start should be sent when a song is stopped.

## Send Other Configurable MIDI Commands <a href="#toc165549813" id="toc165549813"></a>

With the "Actions When Stopping" button in the song's edit window, you can define any MIDI commands to be sent when the song starts.

For a description, please refer to [midi-befehle-beim-offnen-von-songs](https://docs.songbookplus.com/english/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs "mention").

## Send the Same MIDI Commands for All Songs <a href="#toc165549814" id="toc165549814"></a>

In the MIDI settings under "MIDI" -> "MIDI Macros" -> "Macros When Operating Songs," you can select a previously defined MIDI macro that will be sent when every song is started. You can also specify whether it will be sent even if the song already contains its own "Actions When Starting."

For a description, please refer to [midi-befehle-beim-offnen-von-songs](https://docs.songbookplus.com/english/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs "mention").

## Send the Contents of a MIDI File When a Song is Stopped <a href="#toc165549811" id="toc165549811"></a>

SongBook sends the content of a MIDI file as soon as a song is **stopped** if a .mid file with the same name as the .pdf file, extended with "\_stop.mid," exists.

(e.g., MySong.pdf -> MySong\_stop.mid)

Only MIDI files of type 0 (single track) are allowed. All commands are sent at once without considering the timing. Thus, this cannot be used to send music, only commands to configure the environment.
