Base Classes
Base Class
All MusPy classes inherit from the muspy.Base
class. A muspy.Base
object supports the following operations.
muspy.Base.to_ordered_dict()
: convert the content into an ordered dictionarymuspy.Base.from_dict()
(class method): create a MusPy object of a certain classmuspy.Base.print()
: show the content in a YAML-like formatmuspy.Base.validate()
: validate the data stored in an objectmuspy.Base.is_valid()
: return a boolean indicating if the stored data is validmuspy.Base.adjust_time()
: adjust the timing of an object
ComplexBase Class
MusPy classes that contains list attributes also inherit from the muspy.ComplexBase
class. A muspy.ComplexBase
object supports the following operations.
muspy.ComplexBase.append()
: append an object to the corresponding listmuspy.ComplexBase.remove_invalid()
: remove invalid items from the listsmuspy.ComplexBase.sort()
: sort the listsmuspy.ComplexBase.remove_duplicate()
: remove duplicate items from the lists