NoteHead

class abjad.NoteHead(client, pitch=None)

Bases: abjad.notehead.interface.NoteHeadInterface

The head of a single note or one of the heads in a chord.

abjad> note = Note(1, (1, 4))
abjad> note.notehead
NoteHead(cs')

The Abjad NoteHead overrides the LilyPond NoteHead grob.

abjad> note.notehead.color = 'red'
abjad> print note.format
\once \override NoteHead #'color = #red
cs'4
format

Read-only format string of notehead.

Todo

appears to not currently be working, or necessary.

abjad> note = Note(1, (1, 4))
abjad> note.nothead.format
"cs'"
formatter

Read-only reference to note head formatter.

abjad> note = Note(1, (1, 4))
abjad> note.notehead.formatter
<_NoteHeadFormatInterface>
pitch

Read / write pitch of notehead.

abjad> note = Note(1, (1, 4))
abjad> note.notehead.pitch = 2
abjad> print note.format
d'4

Previous topic

Note

Next topic

PianoStaff

This Page