This is a line of text. Abjad code follows:

v = Voice(construct.run(8)) v[0].notehead.color = 'red' print v f(v)

Another line of text. More Abjad code follows. Notice that in the second block of Abjad code we can reference objects and variables crated in previous blocks:

Beam(v) show(v) write_ly(v, 'example1')

Here is paragraph 3, and more Abjad code.

pitchtools.diatonicize(v) for leaf in v: print leaf Trill(v[2:]) show(v) write_ly(v, 'example2')

And a final paragraph. Here all the code is hidden:

[hide = True] PianoPedal(v[:]) write_ly(v, "example4")

Now just write_ly(v), hidden.

write_ly(v, "example5")