MusicSpecifier

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_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.7/library/functions.html#object", label=object, target=_top]; } subgraph cluster_tsmakers { graph [label=tsmakers]; node [color=2]; "tsmakers.HashCachingObject.HashCachingObject" [URL="../api/tsmakers/HashCachingObject.html#tsmakers.HashCachingObject.HashCachingObject", label="Hash\nCaching\nObject", target=_top]; "tsmakers.MusicSpecifier.MusicSpecifier" [URL="../api/tsmakers/MusicSpecifier.html#tsmakers.MusicSpecifier.MusicSpecifier", color=black, fontcolor=white, label="Music\nSpecifier", target=_top]; "tsmakers.HashCachingObject.HashCachingObject" -> "tsmakers.MusicSpecifier.MusicSpecifier"; } "builtins.object" -> "tsmakers.HashCachingObject.HashCachingObject"; }

class tsmakers.MusicSpecifier.MusicSpecifier(attachment_handler=None, color=None, comment=None, grace_handler=None, instrument=None, labels=None, minimum_phrase_duration=None, pitch_handler=None, register_handler=None, rhythm_maker=None, seed=None)[source]

A music specifier.

>>> music_specifier = tsmakers.MusicSpecifier()
>>> print(abjad.storage(music_specifier))
tsmakers.MusicSpecifier()

Attributes Summary

__repr__

Return repr(self).

__str__

Return str(self).

attachment_handler

color

comment

grace_handler

instrument

labels

minimum_phrase_duration

pitch_handler

register_handler

rhythm_maker

rotate

seed

transpose

Transposes music specifier.


Special methods

(HashCachingObject).__eq__(expr)

Return self==value.

(HashCachingObject).__format__(format_specification='')

Default object formatter.

(HashCachingObject).__hash__()

Return hash(self).

overridden __repr__()[source]

Return repr(self).

overridden __str__()[source]

Return str(self).


Methods

rotate(rotation)[source]
transpose(expr)[source]

Transposes music specifier.

>>> music_specifier = tsmakers.MusicSpecifier()
>>> transposed_music_specifier = music_specifier.transpose("-M2")
>>> print(abjad.storage(transposed_music_specifier))
tsmakers.MusicSpecifier()

Returns new music specifier.


Read-only properties

attachment_handler
color
comment
grace_handler
instrument
labels
minimum_phrase_duration
pitch_handler
register_handler
rhythm_maker
seed