ColorFingering

class indicatortools.ColorFingering(number=None)

Color fingering.

Example 1. First color fingering:

>>> fingering = indicatortools.ColorFingering(1)
>>> note = Note("c'4")
>>> attach(fingering, note)
>>> show(note) 

Example 2. Second color fingering:

>>> fingering = indicatortools.ColorFingering(2)
>>> note = Note("c'4")
>>> attach(fingering, note)
>>> show(note) 

Color fingerings indicate alternate woodwind fingerings by amount of pitch of timbre deviation.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" [color=1, group=0, label=AbjadValueObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.abctools.AbjadValueObject.AbjadValueObject"; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_indicatortools { graph [label=indicatortools]; "abjad.tools.indicatortools.ColorFingering.ColorFingering" [color=black, fontcolor=white, group=2, label=<<B>ColorFingering</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" -> "abjad.tools.indicatortools.ColorFingering.ColorFingering"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

default_scope Gets default scope of color fingering.
markup Gets markup of color fingering.
number Gets number of color fingering.
__copy__(*arguments) Copies Abjad value object.
__eq__(argument) Is true when all initialization values of Abjad value object equal the initialization values of argument.
__format__([format_specification]) Formats color fingering.
__ge__(other[, NotImplemented]) Return a >= b.
__gt__(other[, NotImplemented]) Return a > b.
__hash__() Hashes Abjad value object.
__le__(other[, NotImplemented]) Return a <= b.
__lt__(argument) Is true if argument is a color fingering and the number of this color fingering is less than that of argument.
__ne__(argument) Is true when Abjad object does not equal argument.
__repr__() Gets interpreter representation of Abjad object.

Read-only properties

ColorFingering.default_scope

Gets default scope of color fingering.

>>> fingering = indicatortools.ColorFingering(1)
>>> fingering.default_scope is None
True

Returns none.

ColorFingering.markup

Gets markup of color fingering.

Example 1. First color fingering:

>>> fingering = indicatortools.ColorFingering(1)
>>> print(format(fingering.markup, 'lilypond'))
\markup {
    \override
        #'(circle-padding . 0.25)
        \circle
            \finger
                1
    }
>>> show(fingering.markup) 

Example 2. Second color fingering:

>>> fingering = indicatortools.ColorFingering(2)
>>> print(format(fingering.markup, 'lilypond'))
\markup {
    \override
        #'(circle-padding . 0.25)
        \circle
            \finger
                2
    }
>>> show(fingering.markup) 

Returns markup.

ColorFingering.number

Gets number of color fingering.

Example 1. First color fingering:

>>> fingering = indicatortools.ColorFingering(1)
>>> fingering.number
1

Example 2. Second color fingering:

>>> fingering = indicatortools.ColorFingering(2)
>>> fingering.number
2

Returns positive integer.

Special methods

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

ColorFingering.__format__(format_specification='')

Formats color fingering.

Set format_specification to ‘’, ‘lilypond’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

>>> fingering = indicatortools.ColorFingering(1)
>>> print(format(fingering))
indicatortools.ColorFingering(
    number=1,
    )

Returns string.

ColorFingering.__ge__(other, NotImplemented=NotImplemented)

Return a >= b. Computed by @total_ordering from (not a < b).

ColorFingering.__gt__(other, NotImplemented=NotImplemented)

Return a > b. Computed by @total_ordering from (not a < b) and (a != b).

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

ColorFingering.__le__(other, NotImplemented=NotImplemented)

Return a <= b. Computed by @total_ordering from (a < b) or (a == b).

ColorFingering.__lt__(argument)

Is true if argument is a color fingering and the number of this color fingering is less than that of argument.

>>> fingering_1 = indicatortools.ColorFingering(1)
>>> fingering_2 = indicatortools.ColorFingering(1)
>>> fingering_3 = indicatortools.ColorFingering(2)
>>> fingering_1 < fingering_1
False
>>> fingering_1 < fingering_2
False
>>> fingering_1 < fingering_3
True
>>> fingering_2 < fingering_1
False
>>> fingering_2 < fingering_2
False
>>> fingering_2 < fingering_3
True
>>> fingering_3 < fingering_1
False
>>> fingering_3 < fingering_2
False
>>> fingering_3 < fingering_3
False

Returns true or false.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.