# 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 Commands When Opening Songs](/english/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md).

## 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 Commands When Opening Songs](/english/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md).

## 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.


---

# 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/midi-befehle-beim-stoppen-von-songs.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.
