LilyPondDimension¶
-
class
abjad.lilypondfile.LilyPondDimension.
LilyPondDimension
(value=0, unit='cm')¶ A LilyPond file
\paper
block dimension.>>> abjad.LilyPondDimension(2, 'in') LilyPondDimension(value=2, unit='in')
Use for LilyPond file
\paper
block attributes.Attributes Summary
__format__
Formats LilyPond dimension. unit
Gets unit of LilyPond dimension. value
Gets value of LilyPond dimension. Special methods
-
__format__
(format_specification='')¶ Formats LilyPond dimension.
>>> dimension = abjad.LilyPondDimension(2, 'in') >>> print(format(dimension)) 2\in
Returns string.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
Read-only properties
-
unit
¶ Gets unit of LilyPond dimension.
>>> dimension = abjad.LilyPondDimension(2, 'in') >>> dimension.unit 'in'
Returns
'cm'
,'in'
,'mm'
or'pt'
.
-
value
¶ Gets value of LilyPond dimension.
>>> dimension = abjad.LilyPondDimension(2, 'in') >>> dimension.value 2
Returns number.
-