scamp.spanners.StartPhrasingSlur
- class scamp.spanners.StartPhrasingSlur(label: Any = 0, **formatting)[source]
Bases:
Spanner
Phrasing slurs are an additional type of slur available in LilyPond useful for creating long, overarching slurs that can have smaller, regular slurs inside of them. In MusicXML export, no distinction is made here: instead phrasing slurs are just rendered as slurs, albeit slurs that are kept from interfering with other slurs via a unique label. Basically, just use regular slurs for articulation and phrasing slurs for longer phrasing and don’t worry about those details, and it’ll work out fine.
Methods
to_abjad
()Converts this to an abjad indicator.
Converts this to a pymusicxml spanner type.
Inherited Methods
Returns a copy of this object by serializing to and from JSON.
Dump this object as a JSON string.
json_loads
(s)Load this object from a JSON string.
load_from_json
(file_path)Load this object from a JSON file with the given path.
save_to_json
(file_path)Save this object to a JSON file using the given path.
Attributes
- START_MID_OR_STOP = 'start'
- FORMATTING_SLOTS = {}
- duplicate() T
Returns a copy of this object by serializing to and from JSON.
- get_abjad_direction()
- json_dumps() str
Dump this object as a JSON string. This uses a custom encoder that recognizes and appropriately converts any attributes that are object inheriting from SavesToJSON.
- classmethod json_loads(s: str) T
Load this object from a JSON string. This uses a custom decoder that looks for a “_type” key in any object/dictionary being parsed and converts it to the class specified (assuming it a subclass of SavesToJSON).
- Parameters:
s – a string representing this object in JSON format
- classmethod load_from_json(file_path: str) T
Load this object from a JSON file with the given path. This uses a custom decoder that looks for a “_type” key in any object/dictionary being parsed and converts it to the class specified (assuming it a subclass of SavesToJSON).
- Parameters:
file_path – path for loading the file
- save_to_json(file_path: str) None
Save this object to a JSON file using the given path. This uses a custom encoder that recognizes and appropriately converts any attributes that are object inheriting from SavesToJSON.
- Parameters:
file_path – path for saving the file