> 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-starten-von-songs.md).

# 启动歌曲时的 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>

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

（例如，MySong.pdf -> MySong\_start.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-starten-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.
