notetools.NaturalHarmonic

Inheritance diagram of abjad.tools.notetools.NaturalHarmonic.NaturalHarmonic.NaturalHarmonic

class abjad.tools.notetools.NaturalHarmonic.NaturalHarmonic.NaturalHarmonic(*args)[source]

Abjad model of natural harmonic.

Initialize natural harmonic by hand:

abjad> notetools.NaturalHarmonic("cs'8.")
NaturalHarmonic(cs', 8.)

Initialize natural harmonic from note:

abjad> note = Note("cs'8.")
abjad> notetools.NaturalHarmonic(note)
NaturalHarmonic(cs', 8.)

Natural harmonics are immutable.

Read-only Properties

NaturalHarmonic.duration_in_seconds

Note

Inherited from leaftools.Leaf

NaturalHarmonic.fingered_pitch

Read-only fingered pitch of note:

abjad> staff = Staff("d''8 e''8 f''8 g''8")
abjad> piccolo = instrumenttools.Piccolo()(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 { Piccolo }
    \set Staff.shortInstrumentName = \markup { Picc. }
    d'8
    e'8
    f'8
    g'8
}
abjad> staff[0].fingered_pitch
NamedChromaticPitch("d'")

Return named chromatic pitch.

Note

Inherited from notetools.Note

NaturalHarmonic.format

Note

Inherited from leaftools.Leaf

NaturalHarmonic.leaf_index

Note

Inherited from leaftools.Leaf

NaturalHarmonic.marks

Read-only tuple of marks attached to component.

Note

Inherited from componenttools.Component

NaturalHarmonic.multiplied_duration

Note

Inherited from leaftools.Leaf

NaturalHarmonic.override

Read-only reference to LilyPond grob override component plug-in.

Note

Inherited from componenttools.Component

NaturalHarmonic.parent

Note

Inherited from componenttools.Component

NaturalHarmonic.preprolated_duration

Note

Inherited from leaftools.Leaf

NaturalHarmonic.prolated_duration

Note

Inherited from componenttools.Component

NaturalHarmonic.prolation

Note

Inherited from componenttools.Component

NaturalHarmonic.set

Read-only reference LilyPond context setting component plug-in.

Note

Inherited from componenttools.Component

NaturalHarmonic.sounding_pitch

Read-only sounding pitch of note:

abjad> staff = Staff("d''8 e''8 f''8 g''8")
abjad> piccolo = instrumenttools.Piccolo()(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 { Piccolo }
    \set Staff.shortInstrumentName = \markup { Picc. }
    d'8
    e'8
    f'8
    g'8
}
abjad> staff[0].sounding_pitch
NamedChromaticPitch("d''")

Return named chromatic pitch.

Note

Inherited from notetools.Note

NaturalHarmonic.spanners

Read-only reference to unordered set of spanners attached to component.

Note

Inherited from componenttools.Component

NaturalHarmonic.suono_reale

Actual sound of the harmonic when played.

Note

Inherited from notetools._Flageolet

Read/write Properties

NaturalHarmonic.duration_multiplier

Note

Inherited from leaftools.Leaf

NaturalHarmonic.note_head

Get note head of note:

abjad> note = Note(13, (3, 16))
abjad> note.note_head
NoteHead("cs''")

Set note head of note:

abjad> note = Note(13, (3, 16))
abjad> note.note_head = 14
abjad> note
Note("d''8.")

Note

Inherited from notetools.Note

NaturalHarmonic.written_duration

Note

Inherited from leaftools.Leaf

NaturalHarmonic.written_pitch

Get named pitch of note:

abjad> note = Note(13, (3, 16))
abjad> note.written_pitch
NamedChromaticPitch("cs''")

Set named pitch of note:

abjad> note = Note(13, (3, 16))
abjad> note.written_pitch = 14
abjad> note
Note("d''8.")

Note

Inherited from notetools.Note

NaturalHarmonic.written_pitch_indication_is_at_sounding_pitch

Note

Inherited from leaftools.Leaf

NaturalHarmonic.written_pitch_indication_is_nonsemantic

Note

Inherited from leaftools.Leaf

Special Methods

NaturalHarmonic.__and__(arg)

Note

Inherited from leaftools.Leaf

NaturalHarmonic.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

NaturalHarmonic.__eq__(arg)

True when id(self) equals id(arg).

Return boolean.

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

NaturalHarmonic.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__mul__(n)

Note

Inherited from componenttools.Component

NaturalHarmonic.__ne__(arg)

True when id(self) does not equal id(arg).

Return boolean.

Note

Inherited from abctools.AbjadObject

NaturalHarmonic.__or__(arg)

Note

Inherited from leaftools.Leaf

NaturalHarmonic.__repr__()[source]
NaturalHarmonic.__rmul__(n)

Note

Inherited from componenttools.Component

NaturalHarmonic.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

NaturalHarmonic.__str__()

Note

Inherited from leaftools.Leaf

NaturalHarmonic.__sub__(arg)

Note

Inherited from leaftools.Leaf

NaturalHarmonic.__xor__(arg)

Note

Inherited from leaftools.Leaf

Table Of Contents

This Page