Note

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.core" { graph [label="abjad.core"]; node [color=1]; "abjad.core.Component.Component" [URL="../api/abjad/core/Component.html#abjad.core.Component.Component", label=Component, shape=oval, style=bold, target=_top]; "abjad.core.Leaf.Leaf" [URL="../api/abjad/core/Leaf.html#abjad.core.Leaf.Leaf", label=Leaf, shape=oval, style=bold, target=_top]; "abjad.core.Note.Note" [URL="../api/abjad/core/Note.html#abjad.core.Note.Note", color=black, fontcolor=white, label=Note, target=_top]; "abjad.core.Component.Component" -> "abjad.core.Leaf.Leaf"; "abjad.core.Leaf.Leaf" -> "abjad.core.Note.Note"; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/core/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjad.core.Component.Component"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.core.Note.Note(*arguments)

Note.

>>> note = abjad.Note("cs''8.")
>>> abjad.show(note) 

Attributes Summary

from_pitch_and_duration Makes note from pitch and duration.
note_head Gets and sets note-head.
written_duration Gets and sets written duration.
written_pitch Gets and sets written pitch.

Special methods

(Leaf).__copy__(*arguments)

Shallow copies leaf.

Returns new leaf.

(Component).__format__(format_specification='')

Formats component.

Returns string.

(Component).__illustrate__()

Illustrates component.

Returns LilyPond file.

(Component).__mul__(n)

Copies component n times and detaches spanners.

Returns list of new components.

(Component).__repr__()

Gets interpreter representation of leaf.

Returns string.

(Component).__rmul__(n)

Copies component n times and detach spanners.

Returns list of new components.

(Leaf).__str__()

Gets string representation of leaf.

Returns string.


Class & static methods

static from_pitch_and_duration(pitch, duration)

Makes note from pitch and duration.

>>> note = abjad.Note.from_pitch_and_duration('C#5', (3, 16))
>>> abjad.show(note) 

Read/write properties

note_head

Gets and sets note-head.

>>> note = abjad.Note("cs''8.")
>>> note.note_head
NoteHead("cs''")
>>> abjad.show(note) 
>>> note.note_head = 'D5'
>>> note.note_head
NoteHead("d''")
>>> abjad.show(note) 
Return type:NoteHead
written_duration

Gets and sets written duration.

>>> note = abjad.Note("cs''8.")
>>> note.written_duration
Duration(3, 16)
>>> abjad.show(note) 
>>> note.written_duration = (1, 16)
>>> note.written_duration
Duration(1, 16)
>>> abjad.show(note) 

Returns duration

Return type:Duration
written_pitch

Gets and sets written pitch.

>>> note = abjad.Note("cs''8.")
>>> note.written_pitch
NamedPitch("cs''")
>>> abjad.show(note) 
>>> note.written_pitch = 'D5'
>>> note.written_pitch
NamedPitch("d''")
>>> abjad.show(note) 

Returns named pitch.

Return type:NamedPitch