Hi Seán,
What way are you thinking about the rest in relation to other notes?
It seems like the program that abjad tries to interface with - i.e. Lilypond, basically creates an internal representation
of everything (notes, rests, durations, dynamics, markup) as one big Scheme list. This makes the nodes in this list
very easy to interchange.
The approach in abjad is similar, but you would first define the rest and note objects and then combine them
into a container in a separate step.
```python
import abjad
erest = "r8"
r = abjad.Rest(erest)
maker = abjad.NoteMaker()
notes = maker(
[0, 2, 4, 5, 7, 5, 4, 9, 2, 7],
[(1, 8), (1, 8), (1, 8),
(3, 16), (1, 32), (1, 32),
(1, 8), (1, 8), (1, 8)]
)
voice = abjad.Voice([r, notes])
staff = abjad.Staff([voice])
abjad.lilypond(staff)
```
This will output a chunk of lilypond code that you can drop in to any valid lilypond score
```sh
"\\new Staff\n{\n \\new Voice\n {\n r8\n c'8\n d'8\n e'8\n f'8.\n g'32\n f'32\n e'8\n a'8\n d'8\n g'8\n }\n}"
```
all the best,
Adam