BowContactPoint

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.indicators" { graph [label="abjad.indicators"]; node [color=1]; "abjad.indicators.BowContactPoint.BowContactPoint" [URL="../api/abjad/indicators/BowContactPoint.html#abjad.indicators.BowContactPoint.BowContactPoint", color=black, fontcolor=white, label="Bow\nContact\nPoint", target=_top]; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/indicators/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/indicators/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } 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.AbjadValueObject.AbjadValueObject" -> "abjad.indicators.BowContactPoint.BowContactPoint"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.indicators.BowContactPoint.BowContactPoint(contact_point=None)

Bow contact point.

Contact point exactly halfway from frog to tip of bow:

>>> point = abjad.BowContactPoint((1, 2))
>>> abjad.f(point)
abjad.BowContactPoint(
    contact_point=abjad.Multiplier(1, 2),
    )

Contact point 3/5 of the way from frog to tip of bow:

>>> point = abjad.BowContactPoint((3, 5))
>>> abjad.f(point)
abjad.BowContactPoint(
    contact_point=abjad.Multiplier(3, 5),
    )

Contact points are measured from frog to tip as a fraction between 0 and 1.


Attributes Summary

__ge__ Return a >= b.
__gt__ Return a > b.
__le__ Return a <= b.
__lt__ Is true if argument is a bow contact point and this bow contact point is less than argument.
contact_point Gets contact point of bow contact point.
markup Gets markup of bow contact point.
tweaks Are not implemented on bow contact point.

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.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

__ge__(other, NotImplemented=NotImplemented)

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

__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.

__le__(other, NotImplemented=NotImplemented)

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

__lt__(argument)

Is true if argument is a bow contact point and this bow contact point is less than argument.

>>> point_1 = abjad.BowContactPoint((1, 2))
>>> point_2 = abjad.BowContactPoint((1, 2))
>>> point_3 = abjad.BowContactPoint((2, 3))
>>> point_1 < point_1
False
>>> point_1 < point_2
False
>>> point_1 < point_3
True
>>> point_2 < point_1
False
>>> point_2 < point_2
False
>>> point_2 < point_3
True
>>> point_3 < point_1
False
>>> point_3 < point_2
False
>>> point_3 < point_3
False
Return type:bool
(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

contact_point

Gets contact point of bow contact point.

One quarter of the way from frog to point:

>>> point = abjad.BowContactPoint((1, 4))
>>> point.contact_point
Multiplier(1, 4)

Three fifths of the way from frog to point:

>>> point = abjad.BowContactPoint((3, 5))
>>> point.contact_point
Multiplier(3, 5)
Return type:Optional[Multiplier]
markup

Gets markup of bow contact point.

One quarter of the way from frog to point:

>>> indicator = abjad.BowContactPoint((1, 4))
>>> print(format(indicator.markup, 'lilypond'))
\markup {
    \center-align
        \vcenter
            \fraction
                1
                4
    }
>>> abjad.show(indicator.markup) 

Three fifths of the way from frog to point:

>>> indicator = abjad.BowContactPoint((3, 5))
>>> print(format(indicator.markup, 'lilypond'))
\markup {
    \center-align
        \vcenter
            \fraction
                3
                5
    }
>>> abjad.show(indicator.markup) 
Return type:Markup
tweaks

Are not implemented on bow contact point.

Return type:None