# Flow Layout

> Per-book breaks, spacing, nudges, visibility, condensing, and turn warnings in Flow.

Canonical page: [https://docs.score.miso.fm/flow/layout/](https://docs.score.miso.fm/flow/layout/)

Flow Layout controls hand-set engraving overrides for a single book (`<book>` = a book ID such as `pc` or `Tpt1`, or `score` for the full score). Layout lines never change musical content.

Every line begins with `layout <book>` and addresses bars by their bar numbers.

## Breaks and Line Keeping

Control where systems, pages, and multi-bar rests break, or lock bars onto a single line.

```text
layout score break line 11
layout Tpt1 break page 25
layout pc break blank 41
layout Tpt1 break rest 17
layout score break none 11
layout Vln1 nobreak 9-12
layout Vln1 nobreak 9-12 -
```

| Command | Effect |
| --- | --- |
| `layout <book> break line <A>` | Start a new system at bar `A` (to break *after* bar 10, write `break line 11`). |
| `layout <book> break page <A>` | Start a new page at bar `A`. |
| `layout <book> break blank <A>` | Insert a blank page carrying only `V.S.` before bar `A`'s page so the next page turn falls cleanly. |
| `layout <book> break rest <A>` | Split a multi-bar rest before bar `A`. |
| `layout <book> break none <A>` | Remove any manual break at bar `A`. |
| `layout <book> nobreak <A>-<B> [-]` | Keep bars `A` through `B` on one line; append `-` to remove. |

## Spacing and Nudges

Adjust vertical gaps or nudge individual marks in staff spaces. Pass `0` (for `space`) or `0 0` (for `nudge`) to revert to automatic placement.

```text
layout score space staff Vln2 2.5
layout pc space line 17 1.5
layout Tpt1 nudge dyn Tpt1 12@3 0.5 -1
layout score nudge tempo 17 0 1.2
```

- **Vertical spacing:** `layout <book> space staff <P> <n>` adds `n` staff spaces above staff `P`. `layout <book> space line <A> <n>` adds `n` staff spaces above the system containing bar `A`.
- **Mark nudges:** `layout <book> nudge <kind> [<P>] <A>[@beat] <right> <up>` offsets a mark in staff spaces. `tempo` and `mark` take no part; `text all` targets system text; `nudge` does not accept `cue`.

## Visibility (`hide` / `show`)

Hide or restore marks and empty staves in a specific book without altering other books.

```text
layout pc hide chords K1R 17
layout pc show chords K1R 17
layout pc show staff K1L 5-8
layout score hide staff Tpt1 1-16
```

- **Marks:** `layout <book> hide|show <kind> [<P>] <A>[@beat]`. Valid kinds: `dyn`, `hairpin`, `text`, `tempo`, `mark`, `chords`, `patch`, `cue` (`hide` does not accept `hairpin`; `tempo` and `mark` take no part).
- **Empty staves:** `layout <book> show|hide staff <P> <A>[-<B>] [-]`. By default, multi-staff books show only staves with music on each system. Use `show staff` to keep an empty staff visible (such as a resting left hand under `TACET`), or `hide staff` to omit it where it has nothing to play. Append `-` to remove the override.

## Condensing and Small Staves

```text
layout score condense Fl1,Fl2 1-24
layout score condense Fl1,Fl2 1-24 -
layout pc small Bass
layout pc small -
```

- **Condensing:** `layout <book> condense <P>,<Q> <A>-<B> [-]` merges parts `P` (upper) and `Q` (lower) onto one staff across bars `A`–`B`. Labels (`a2`, `1.`, `2.`) follow the notes automatically. Append `-` to uncondense.
- **Cue-sized staves:** `layout <book> small <P>,<P>` draws those staves and everything on them at the house style's small-staff size (for example, a bass cue staff in a conductor's book). `layout <book> small -` clears all small staves in that book.

## Page Turn Warnings

Override the turn warning printed at the bottom of the page ending with bar `A`, regardless of the surrounding rests.

```text
layout pc turn 6 V.S.
layout pc turn 108 V.S.\n(Play)
layout pc turn 108 -
```

Use `\n` to start a second line inside the warning text. Pass `-` to remove the manual turn warning.

## Text Appearance (`look`)

Override how words of a specific role render at a place in one book, layered over the house style's default look for that role.

```text
layout pc look state K1 18 below arrows
layout Tpt look text Tpt 12 "shake" below
layout pc look state K1 18 -
```

- **Syntax:** `layout <book> look <role> <P>|all <A>[@beat] ["<words>"] <look> ...`
- **Available looks:** `above`, `below`, `box`, `circle`, `noframe`, `italic`, `upright`, `arrow` (points to the note), `arrows` (points to both staves), `hook` (ends a spanner line with a hook).
- **Disambiguation:** Include `"<words>"` when multiple words of the same role stand at that bar (`//` denotes a line break inside the text). Pass `-` as the look to remove the override.

## Stems and Tuplets

Override automatic stem direction or tuplet bracket/number appearance for a book.

```text
layout Vox stem Vox 1-3@2.5 up
layout Vox stem Vox 1-3@2.5 -
layout Fl tuplet Fl 12@1 bracket ratio
layout Fl tuplet Fl 12@1 -
```

- **Stems:** `layout <book> stem <P>[/v] <A>[@beat][-<B>[@beat]] up|down|-`. Applies to notes in that voice starting in the range (end inclusive; omitting `@beat` covers the whole bar).
- **Tuplets:** `layout <book> tuplet <P>[/v] <A>[@beat] bracket|nobracket|ratio|nonumber ... | -`. `ratio` prints `3:2`; `nonumber` hides the numeral; `-` restores house defaults.
