pyampact.symbolic.insertScoreDef

pyampact.symbolic.insertScoreDef(piece, root)[source]

Insert a scoreDef element into an MEI (Music Encoding Initiative) document.

This function inserts a scoreDef element into an MEI document if one is not already present. It modifies the input element in-place.

Parameters:

root – An xml.etree.ElementTree.Element representing the root of the MEI document.

Returns:

None