> 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/zhong-wen/readme/midi-features-verwenden/midi-befehle-beim-stoppen-von-songs.md).

# 停止歌曲时的 MIDI 命令

## 停止歌曲时发送 MIDI Stop <a href="#toc165549812" id="toc165549812"></a>

在 SongBook+ 设置中，您可以配置是否在停止歌曲时发送 MIDI Stop。

## 发送其他可配置的 MIDI 命令 <a href="#toc165549813" id="toc165549813"></a>

在歌曲的编辑窗口中，使用“停止后的操作”按钮，您可以定义在停止歌曲时发送的任意 MIDI 命令。

详细描述请查看 [打开歌曲时的 MIDI 指令](/zhong-wen/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md)。

## 对所有歌曲发送相同的 MIDI 命令 <a href="#toc165549814" id="toc165549814"></a>

在“MIDI 设置”中的“MIDI宏” -> “播放歌曲时的宏” -> “停止后的操作”中，您可以选择一个预先定义的 MIDI 宏，该宏将在停止每首歌曲时发送。同时可以进一步设置，即使歌曲已经包含“停止后的操作”，是否仍然发送此宏。

详细描述请查看 [打开歌曲时的 MIDI 指令](/zhong-wen/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md)。

## 歌曲停止时发送 MIDI 文件的内容 <a href="#toc165549811" id="toc165549811"></a>

当一个歌曲被**停止**时，如果存在一个 .mid 文件与 .pdf 文件同名，并扩展为“\_stop.mid”，SongBook 会发送该 MIDI 文件的内容。

（例如 MySong.pdf -> MySong\_stop.mid）

仅允许类型 0（单声道）的 MIDI 文件。所有命令将一次性发送，而不考虑时间顺序。因此不能发送音乐，只能发送用于配置环境的命令。


---

# 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/zhong-wen/readme/midi-features-verwenden/midi-befehle-beim-stoppen-von-songs.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.
