Abjad model of a chord:
abjad> Chord([4, 13, 17], (1, 4))
Chord("<e' cs'' f''>4")
Return chord instance.
Note
Inherited from leaftools.Leaf
Read-only fingered pitches:
abjad> staff = Staff("<c''' e'''>4 <d''' fs'''>4")
abjad> glockenspiel = instrumenttools.Glockenspiel()(staff)
abjad> instrumenttools.transpose_notes_and_chords_in_expr_from_sounding_pitch_to_fingered_pitch(staff)
abjad> f(staff)
\new Staff {
\set Staff.instrumentName = \markup { Glockenspiel }
\set Staff.shortInstrumentName = \markup { Gkspl. }
<c' e'>4
<d' fs'>4
}
abjad> staff[0].fingered_pitches
(NamedChromaticPitch("c'"), NamedChromaticPitch("e'"))
Return tuple of named chromatic pitches.
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf
Read-only tuple of marks attached to component.
Note
Inherited from componenttools.Component
Note
Inherited from leaftools.Leaf
Read-only reference to LilyPond grob override component plug-in.
Note
Inherited from componenttools.Component
Note
Inherited from componenttools.Component
Note
Inherited from leaftools.Leaf
Note
Inherited from componenttools.Component
Note
Inherited from componenttools.Component
Read-only reference LilyPond context setting component plug-in.
Note
Inherited from componenttools.Component
Read-only sounding pitches:
abjad> staff = Staff("<c''' e'''>4 <d''' fs'''>4")
abjad> glockenspiel = instrumenttools.Glockenspiel()(staff)
abjad> instrumenttools.transpose_notes_and_chords_in_expr_from_sounding_pitch_to_fingered_pitch(staff)
abjad> f(staff)
\new Staff {
\set Staff.instrumentName = \markup { Glockenspiel }
\set Staff.shortInstrumentName = \markup { Gkspl. }
<c' e'>4
<d' fs'>4
}
abjad> staff[0].sounding_pitches
(NamedChromaticPitch("c'''"), NamedChromaticPitch("e'''"))
Return tuple of named chromatic pitches.
Read-only reference to unordered set of spanners attached to component.
Note
Inherited from componenttools.Component
Note
Inherited from leaftools.Leaf
Get read-only tuple of note heads in chord:
abjad> chord = Chord([7, 12, 16], (1, 4))
abjad> chord.note_heads
(NoteHead("g'"), NoteHead("c''"), NoteHead("e''"))
Set chord note heads from any iterable:
abjad> chord = Chord([7, 12, 16], (1, 4))
abjad> chord.note_heads = [0, 2, 6]
abjad> chord
Chord("<c' d' fs'>4")
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf
Get read-only tuple of pitches in chord:
abjad> chord = Chord([7, 12, 16], (1, 4))
abjad> chord.written_pitches
(NamedChromaticPitch("g'"), NamedChromaticPitch("c''"), NamedChromaticPitch("e''"))
Set chord pitches from any iterable:
abjad> chord = Chord([7, 12, 16], (1, 4))
abjad> chord.written_pitches = [0, 2, 6]
abjad> chord
Chord("<c' d' fs'>4")
Append note_head_token to chord:
abjad> chord = Chord([4, 13, 17], (1, 4))
abjad> chord
Chord("<e' cs'' f''>4")
abjad> chord.append(19)
abjad> chord
Chord("<e' cs'' f'' g''>4")
Sort chord note heads automatically after append and return none.
Clear chord:
abjad> chord = Chord("<e' cs'' f''>4")
abjad> chord
Chord("<e' cs'' f''>4")
abjad> chord.clear()
abjad> chord
Chord('<>4')
Return none.
Extend chord with note_head_tokens:
abjad> chord = Chord([4, 13, 17], (1, 4))
abjad> chord
Chord("<e' cs'' f''>4")
abjad> chord.extend([2, 12, 18])
abjad> chord
Chord("<d' e' c'' cs'' f'' fs''>4")
Sort chord note heads automatically after extend and return none.
Note
Inherited from leaftools.Leaf
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
True when id(self) equals id(arg).
Return boolean.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception
Note
Inherited from abctools.AbjadObject
Note
Inherited from __builtin__.object
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Abjad objects by default do not implement this method.
Raise exception.
Note
Inherited from abctools.AbjadObject
Note
Inherited from componenttools.Component
True when id(self) does not equal id(arg).
Return boolean.
Note
Inherited from abctools.AbjadObject
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf
Note
Inherited from componenttools.Component
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf
Note
Inherited from leaftools.Leaf