# 停止歌曲时的 MIDI 命令

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

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

## 发送其他可配置的 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 宏，该宏将在启动每首歌曲时发送。同时可以进一步设置，即使歌曲已经包含“启动时的动作”，是否仍然发送此宏。

详细描述请查看 [打开歌曲时的 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: 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/zhong-wen/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.
