Instrument marks
================

Creating instrument marks
-------------------------

Use context tools to add instrument marks:

<abjad>
flute_staff = Staff("c'8 d'8 e'8 f'8")
violin_staff = Staff("c'8 d'8 e'8 f'8")
staff_group = scoretools.StaffGroup([flute_staff, violin_staff])
score = Score([staff_group])
contexttools.InstrumentMark('Flute ', 'Fl. ')(flute_staff)
contexttools.InstrumentMark('Violin ', 'Vn. ')(violin_staff)
</abjad>

Instrument marks appear as context settings in LilyPond input:

<abjad>
f(score)
</abjad>

Instrument marks appear as instrument names in notational output:

<abjad>
show(score)
iotools.write_expr_to_ly(score, 'example-1') <hide
</abjad>
