musicscore.metronome

class musicscore.metronome.Metronome(per_minute, beat_unit=1, parenthesis=False, *args, **kwargs)[source]

Bases: XMLWrapper

XMLClass

alias of XMLMetronome

get_xml_beat_dot_objects()[source]
to_string(*args, **kwargs) str

XMLWrapper method

Calls to_string method of self.xml_object

Returns:

musicxml snippet

property beat_unit
property per_minute
property sound
property xml_object: XMLElement

XMLWrapper method

This musicscore class has an equivalent MusicXML class which can be reached via this property.

If an attribute is not found directly in the main class, it wll be passed on to __get_attribute__ or __set__attribute__ methods of self.xml_object. It can also use the short cut attributes of XMLElement to get or set the first child.

Returns:

wrapped MusicXML element of type XMLClass