Note¶
-
class
abjad.core.Note.
Note
(*arguments)¶ Note.
Attributes Summary
from_pitch_and_duration
Makes note from pitch
andduration
.note_head
Gets and sets note-head. written_duration
Gets and sets written duration. written_pitch
Gets and sets written pitch. Special methods
Class & static methods
-
static
from_pitch_and_duration
(pitch, duration)¶ Makes note from
pitch
andduration
.
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
-
static