attach

topleveltools.attach(indicator, argument, is_piecewise=None, is_annotation=None, name=None, scope=None, synthetic_offset=None)

Attaches indicator to component, selection or spanner argument.

>>> import abjad

Attaches clef to first note in staff:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.attach(abjad.Clef('alto'), staff[0])
>>> show(staff) 

Attaches accent to last note in staff:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.attach(abjad.Articulation('>'), staff[-1])
>>> show(staff) 

Derives scope from the default scope of indicator when scope is none.

Returns none.