# Slurs, ties, and lines

## Two endpoints make one slur

A trailing connector opens at its note. A leading connector closes at its
note. Leave interior notes unmarked.

```scorescript
4D5~ E ~F G
```

This is one slur from D through E to F. `D~ E~ F` means adjacent spans,
not one three-note slur. A lone trailing `~` can connect to the next node.

## Ties require adjacent matching pitches

When adjacent endpoint notes have the same pitch, `~` makes a tie.

```scorescript
2C5~ 2C | 1D
```

A later matching pitch with sounding notes between the endpoints is a slur,
not a tie. For a chord, put a member tie on the member that continues:

```scorescript
2[C5~ E G] 2[C F A]
```

A trailing `~~` ties forward and opens a slur at the same node:

```scorescript
4C5~~ C D ~E
```

The first two C notes tie; the whole C-to-E passage has one slur.

## Hairpins

`<` is crescendo and `>` diminuendo. Open after the first node and close
before the destination. A destination can also open the next hairpin.

```scorescript
4C5(p)< D <E(mf)> >F(p)
```

An open hairpin can end at the next dynamic. If it has no destination, the
current engine warns and leaves a short local mark; it does not establish
an intentional crescendo through the rest of the piece. Write the intended
end explicitly for a finished score.

## Glissando

A slash after a node connects it to the next node. It needs no closing slash.

```scorescript
2C5/ 2G'
```

Compare `/8C5 4D`: the leading slash makes a grace note instead.

## Bracketed lines

The dots picture the continuation: `[word..]` opens, `[..word]` closes.
The closer ends the line on the preceding node. In the examples below, E is
the last covered note and F is outside the line. The first note after an
ottava closer is no longer under that octave line.

```scorescript
[ped..] 4C4 D E [..ped] F
```

```scorescript
[8va..] 4C5 D E [..8va] F
```

```scorescript
[8vb..] 4C4 D E [..8vb] F
```

The related two-octave forms are `[15ma..]` and `[15mb..]`. `(loco)` can
close an ottava. Inspect the pitches and output when using octave lines;
do not add another manual octave change to compensate for the same sign.

```scorescript
[tr..] 4C5 D E [..tr] F
```

Tempo transitions use `[rit..]`, `[rall..]`, or `[accel..]` with `[...]`
as a close. `[a tempo]` restores the indicated tempo context.

```scorescript
[rit..] 4C5 D E [...] F | [a tempo] 1C
```

## Custom lines

Custom lines have no supported compact engraving form. The older
`span custom-line` statement can reach the resolved score, but the current
renderer does not draw it. Substituting an arbitrary word in `[word..]` does
not create a custom line. Use the named supported lines above; quoted text can
print an instruction but does not draw an extending line.
