Fermata

class indicatortools.Fermata(command='fermata')

Fermata.

Example 1. A short fermata:

>>> score = Score([Staff([Note("c'4")])])
>>> fermata = indicatortools.Fermata(command='shortfermata')
>>> attach(fermata, score[0][0])
>>> show(score) 

Example 2. A fermata:

>>> score = Score([Staff([Note("c'4")])])
>>> fermata = indicatortools.Fermata()
>>> attach(fermata, score[0][0])
>>> show(score) 

Example 3. A long fermata:

>>> score = Score([Staff([Note("c'4")])])
>>> fermata = indicatortools.Fermata('longfermata')
>>> attach(fermata, score[0][0])
>>> show(score) 

Example 4. A very long fermata:

>>> score = Score([Staff([Note("c'4")])])
>>> fermata = indicatortools.Fermata('verylongfermata')
>>> attach(fermata, score[0][0])
>>> show(score) 

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.Fermata.Fermata" [color=black, fontcolor=white, group=2, label=<<B>Fermata</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.Fermata.Fermata"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

command Gets command of fermata.
default_scope Gets default scope of fermata.
list_allowable_commands() Lists allowable commands:
__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 Abjad object.
__hash__() Hashes Abjad value object.
__ne__(argument) Is true when Abjad object does not equal argument.
__repr__() Gets interpreter representation of Abjad object.
__str__() Gets string representation of fermata.

Read-only properties

Fermata.command

Gets command of fermata.

Example 1. Fermata:

>>> fermata = indicatortools.Fermata()
>>> fermata.command
'fermata'

Example 2. Long fermata:

>>> fermata = indicatortools.Fermata('longfermata')
>>> fermata.command
'longfermata'

Returns string.

Fermata.default_scope

Gets default scope of fermata.

Example 1. Fermata:

>>> fermata = indicatortools.Fermata()
>>> fermata.default_scope
<class 'abjad.tools.scoretools.Score.Score'>

Example 2. Long fermata:

>>> fermata = indicatortools.Fermata('longfermata')
>>> fermata.default_scope
<class 'abjad.tools.scoretools.Score.Score'>

Fermatas are score-scoped by default.

Returns score.

Class & static methods

static Fermata.list_allowable_commands()

Lists allowable commands:

Example 1. All allowable commands:

>>> commands = indicatortools.Fermata.list_allowable_commands()
>>> for command in commands:
...     command
... 
'fermata'
'longfermata'
'shortfermata'
'verylongfermata'

Returns tuple of strings.

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.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

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

Fermata.__str__()

Gets string representation of fermata.

Example 1. Fermata:

>>> str(indicatortools.Fermata())
'\\fermata'

Example 2. Long fermata:

>>> str(indicatortools.Fermata('longfermata'))
'\\longfermata'

Returns string.