# Quick Reference

> Compact Flow syntax cheat sheet for humans and AI agents.

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

One-page grammar summary covering Flow Notation, Flow Layout, Flow Style, Flow Project, and the envelope.

## Sublanguage Prefixes and Envelope

| Prefix | Sublanguage | Example |
| --- | --- | --- |
| *(none)* | Flow Notation | `5 Vox: r4 E8 G c4 B8 A \| G2. r4` |
| `layout <book>` | Flow Layout | `layout pc break page 25` |
| `style` | Flow Style | `style house "miso"` |
| `project` | Flow Project | `project credit composer Ilse Varnham` |
| `in <N>:` / `in all?:` | Multi-number fan-out | `in 3-12: layout pc small Bass` |
| `link` | Linked parts (authoring layer) | `link cue Nell 15-16 to Tpt1` |
| `then` | Sequential edit boundary | `10 insert 1` / `then` / `12@4 Vln pitch Bb` |
| `#` | Comment or non-edit reply | `# no edit`, `# ask: ...`, `# alt: ... \|\| ...`, `# out of scope: musical_decision \| not_in_flow` |

Comments must occupy their own line. Replies never mix with operations.

## Head Declarations

```text
staff <Id> <name> <clef> [sounds <interval> up|down] [sung]
staff PR+PL Piano treble+bass
staff Dr Drums percussion lines 5
bars 32                          # or: bars 1-8 8A 8B 9-32
pickup 1/4                       # adds bar 0; opening time/key stand at 0
1 time 4/4                       # required (no default)
1 key C                          # required, concert pitch (no default)
```

## Places and Staves

| Token | Meaning |
| --- | --- |
| `9`, `9-12`, `9-` | Bar 9; bars 9–12; bar 9 to end |
| `9@3`, `9@2.5`, `9@2+1/3` | Bar 9 at beat (quarters from 1) |
| `9@n3`, `9@last`, `9@end` | 3rd note, last note, ending barline |
| `Vox`, `Vln1,Vln2`, `all`, `Vln/2` | One staff, list, all staves, voice 2 |

## Pitches, Lengths, and Rhythm

- **Octaves:** `C,,` (oct 2), `C,` (oct 3), `C` (oct 4, middle C), `c` (oct 5), `c'` (oct 6), `c''` (oct 7). Never use digits for octaves.
- **Accidentals:** `#`, `b`, `##`, `bb`, `+`, `#+`, `d`, `bd`; `!` courtesy, `?` bracketed, `^` editorial. Write every sounding accidental on every note.
- **Lengths:** `000` `00` `0` `1` `2` `4` `8` `16` `32` `64` `128` `256` `512` `1024`; dots `.` `..`. Sticky across notes; required at start of every bar, voice, `{ }` group, and first note after `{ }`.
- **Rests and repeats:** `r4` rest, `s4` spacer, `R` whole-bar rest, `%` / `%%` / `%%%%` bar repeats, `%4` beat repeat, `/` beat slashes.
- **Chords & ties:** `<C E G>2` (low to high), `q` repeat chord, `~` tie, `( ... )` slur.
- **Tuplets, grace, voices:** `3:2{C8 D E}` (both numbers required), `{c16 d} c4`, `{/b8} c4`, `<< upper / lower >>`, `c8[ r d]` manual beam.

## Marks and Fields

Attach marks directly after length (`C4-.:mf`). Fields follow bar notes in order: `ch`, `at`, `lyr` (plus `fig`, `rn`, `fn`).

| Group | Tokens |
| --- | --- |
| Articulations | `-.` `->` `--` `-^` `-!` `-_` `:espr` `:stress` `:unstress` |
| Fingerings | `-1`..`-5` `-T` `-3_4` `-p -i -m -a -c` `-0`..`-9` `-1-3` |
| Dynamics | `:ppp`..`:fff` `:sfz` `:fp` `:sf` `:fz` `:rfz` `:niente` `:dyn="sub. p"` |
| Hairpins & lines | `:<` `:>` closed by `:!`; `:8va`..`:!8va` (`:8vb`, `:15ma`, `:cresc`, `:dim`, `:ped`, `:sost`, `:uc`, `:vib`, `:pm`, `:ring`, `:barre=1`, `:paren`, `:bracket`) |
| Ornaments & tremolo | `:tr[=pitch]` `:turn[=u/l]` `:mordent[=p]` `:prall[=p]` `:gliss` `:arp` `:8` `:16` `:32` `:64` `:32{C2 E}` |
| Pauses & groups | `:fermata` `:breath` `:caesura` `:lv` `:cue{...}` `:opt{...}` `:x{...}` `:nostem{...}` `:spoken{...}` `:box{...}` |
| Fields | `ch Gm7 C7@3`, `at :<@2 :!@4 :f@4`, `lyr walk- ing _ home`, `lyr2 ...`, `lyr/2 ...` |

## Frame Lines and Edit Verbs

```text
# Frame lines
9 time 6/8 | 17 key D | 20 Vc clef tenor | 27 Rd1 instrument Clarinet sounds M2 down
1 tempo Andante q=80 | 30-32 tempo rit. | 1 tempo Swing q=132 swing
17 mark | 18 mark B | 5-8 repeat | 7-8 ending 1 | 16 barline double
33 sign segno | 48 jump D.S. al Coda | 9-12 Tpt pass 2 | 9-12 Vln divisi 2
13 Tpt text harmon mute | 5 text Vamp | 3 Vln expr dolce | 9 Kbd state PLAY

# Edit verbs
12@n2 Tpt add ->                  # add mark; over range draws spanner (3-5 Vln add :<)
9-12 Fl del dynamics              # remove mark, kind, or frame word (17 del key)
9@n3 Tpt pitch eb                 # repitch one note
9@3 Vln dur 4.                    # change duration
12@2.5 Vln put c8 d4.             # overwrite from beat
9-12 Fl clear                     # replace with rests
9-12 Fl copy to Cl                # copy (sounding pitch; also: copy at 17, P8 down)
9-12 Tpt cue to Vox               # insert silent cue notes
21- all transpose M2 up           # transpose notes (and keys if all)
20 Vox respell c# db              # enharmonic respelling
12-15 cut | 10 insert 2 | 13 rename 12A
staff Fl2 Flute treble after Fl | drop Fl2 | bars 40
```

## Layout, Style, and Project Quick Reference

```text
# Flow Layout
layout <book> break line|page|blank|rest|none <A>
layout <book> nobreak <A>-<B> [-]
layout <book> space staff <P> <n> | space line <A> <n>
layout <book> nudge <kind> [<P>] <A>[@beat] <right> <up>
layout <book> hide|show <kind> [<P>] <A>[@beat]
layout <book> show|hide staff <P> <A>[-<B>] [-]
layout <book> condense <P>,<Q> <A>-<B> [-]
layout <book> small <P>,<P> | small -
layout <book> turn <A> <words> | turn <A> -
layout <book> look <role> <P>|all <A>[@beat] ["<words>"] <look>... | -
layout <book> stem <P>[/v] <A>[@beat][-<B>[@beat]] up|down|-
layout <book> tuplet <P>[/v] <A>[@beat] bracket|nobracket|ratio|nonumber... | -

# Flow Style
style house "parts"|"broadway-pc"|"film"|"miso"|"miso-film"|"<custom>"
style <key> <value>
style house <name> extends <house> | style house <name> [kind <kind>] <key> <value>
style book <id> <key> <value>

# Flow Project
project credit title|composer|lyricist|book|arranger|orchestrator|rights <words>
project credit line <n> <words>
project book <id> staves|name|abbr|player|page|kind|divisi|date|version <val>
project player <id> name <words> | instruments <name>, <name>
project numbering fixed|auto
project act at <N>
project next key <key> [<P>,<P>] | time <n>/<d> | -
project numbers next <N> key|time ... | date <N> <YYYY-MM-DD> | short <N> <words>
project date <YYYY-MM-DD> | project version <words>
in <N>|<A>-<B>|all[?]: <notation or layout line>
```
