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

# Polecenia MIDI przy zamykaniu utworów

## Wysyłanie MIDI Stop po zatrzymaniu utworu <a href="#toc165549817" id="toc165549817"></a>

W ustawieniach SongBook+ możesz skonfigurować, czy po zatrzymaniu utworu powinien zostać wysłany komunikat MIDI Stop.

## Wysyłanie dodatkowych konfigurowalnych poleceń MIDI <a href="#toc165549818" id="toc165549818"></a>

Za pomocą przycisku „Akcje przy zatrzymaniu” w oknie edycji utworu możesz zdefiniować dowolne polecenia MIDI, które mają być wysłane po zatrzymaniu utworu.

Opis znajdziesz w [Polecenia MIDI przy otwieraniu utworów](/polski/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md).

## Wysyłanie takich samych poleceń MIDI dla wszystkich utworów <a href="#toc165549819" id="toc165549819"></a>

W ustawieniach MIDI w „MIDI” -> „MIDI-Makros” -> „Makros przy obsłudze utworów” możesz wybrać wcześniej zdefiniowane makro MIDI, które zostanie wysłane po zatrzymaniu każdego utworu. Możesz również określić, czy makro to ma być wysyłane, nawet jeśli utwór zawiera własne „Akcje przy zatrzymaniu”.

Opis znajdziesz w [Polecenia MIDI przy otwieraniu utworów](/polski/readme/midi-features-verwenden/midi-befehle-beim-offnen-von-songs.md).

## Wysyłanie zawartości pliku MIDI po zatrzymaniu utworu <a href="#toc165549816" id="toc165549816"></a>

SongBook wysyła zawartość pliku MIDI, gdy utwór zostanie **zatrzymany**, jeśli istnieje plik .mid o tej samej nazwie co plik .pdf, rozszerzony o „\_stop.mid”.

(np. MySong.pdf -> MySong\_stop.mid)

Dozwolone są tylko pliki MIDI typu 0 (pojedyncza ścieżka). Wszystkie polecenia są wysyłane jednorazowo bez uwzględniania timingu. Tym samym nie można wysyłać muzyki, a jedynie polecenia do konfiguracji otoczenia.


---

# 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/polski/readme/midi-features-verwenden/midi-befehle-beim-schliessen-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.
