pymusicxml.music_xml_objects.StopGliss¶
-
class
pymusicxml.music_xml_objects.
StopGliss
(number: int = 1)[source]¶ Bases:
pymusicxml.music_xml_objects.Notation
,xml.etree.ElementTree.Element
Notation to attach to a note that ends a glissando
- Parameters
number – this should correspond to the id number of the associated
StartGliss
.
Methods
render
()Renders this component to a tuple of ElementTree.Element.
Inherited Methods
append
(subelement, /)clear
()export_to_file
(file_path[, pretty_print])Exports this musical object (wrapped as a score) to the given file path.
extend
(elements, /)find
(path[, namespaces])findall
(path[, namespaces])findtext
(path[, default, namespaces])get
(key[, default])getiterator
([tag])insert
(index, subelement, /)items
()iter
([tag])iterfind
(path[, namespaces])itertext
()keys
()makeelement
(tag, attrib, /)remove
(subelement, /)set
(key, value, /)to_xml
([pretty_print])Renders this component to MusicXML, adding a version tag, but not wrapping it up as a full score.
view_in_software
(command)Uses the given terminal command to create a score out of this musical object, and open it in music notation software.
Wraps this component in a
Score
so that it can be exported and viewedAttributes
A dictionary containing the element’s attributes
A string identifying what kind of data this element represents
A string of text directly after the end tag, or None
A string of text directly after the start tag, or None
-
render
() → Sequence[xml.etree.ElementTree.Element][source]¶ Renders this component to a tuple of ElementTree.Element. (The reason for making it a tuple is that musical objects like chords are represented by several notes side by side, with all but the first containing a </chord> tag.)
-
append
(subelement, /)¶
-
attrib
¶ A dictionary containing the element’s attributes
-
clear
()¶
-
export_to_file
(file_path: str, pretty_print: bool = True) → None¶ Exports this musical object (wrapped as a score) to the given file path.
- Parameters
file_path – The path of the file we want to write to.
pretty_print – If True, breaks the MusicXML onto multiple lines, with indentation
-
extend
(elements, /)¶
-
find
(path, namespaces=None)¶
-
findall
(path, namespaces=None)¶
-
findtext
(path, default=None, namespaces=None)¶
-
get
(key, default=None)¶
-
getchildren
()¶
-
getiterator
(tag=None)¶
-
insert
(index, subelement, /)¶
-
items
()¶
-
iter
(tag=None)¶
-
iterfind
(path, namespaces=None)¶
-
itertext
()¶
-
keys
()¶
-
makeelement
(tag, attrib, /)¶
-
remove
(subelement, /)¶
-
set
(key, value, /)¶
-
tag
¶ A string identifying what kind of data this element represents
-
tail
¶ A string of text directly after the end tag, or None
-
text
¶ A string of text directly after the start tag, or None
-
to_xml
(pretty_print: bool = False) → str¶ Renders this component to MusicXML, adding a version tag, but not wrapping it up as a full score.
- Parameters
pretty_print – If True, breaks the MusicXML onto multiple lines, with indentation
-
view_in_software
(command: str) → None¶ Uses the given terminal command to create a score out of this musical object, and open it in music notation software.
- Parameters
command – The terminal command corresponding to the software with which we want to open the score.
-
wrap_as_score
() → pymusicxml.music_xml_objects.Score¶ Wraps this component in a
Score
so that it can be exported and viewed