diff --git a/music21/_version.py b/music21/_version.py index c5a4c6fd4..518c9a43a 100644 --- a/music21/_version.py +++ b/music21/_version.py @@ -47,7 +47,7 @@ ''' from __future__ import annotations -__version__ = '9.2.0b1' +__version__ = '9.2.0b2' def get_version_tuple(vv): v = vv.split('.') diff --git a/music21/base.py b/music21/base.py index f58f7f7af..c2a6e2b37 100644 --- a/music21/base.py +++ b/music21/base.py @@ -27,7 +27,7 @@ >>> music21.VERSION_STR -'9.2.0b1' +'9.2.0b2' Alternatively, after doing a complete import, these classes are available under the module "base": diff --git a/music21/musicxml/xmlToM21.py b/music21/musicxml/xmlToM21.py index aaae96a7e..648178dc8 100644 --- a/music21/musicxml/xmlToM21.py +++ b/music21/musicxml/xmlToM21.py @@ -2200,14 +2200,15 @@ def adjustTimeAttributesFromMeasure(self, m: stream.Measure): # otherwise it was likely the result of malformed MusicXML. if (diff > 0.5 or nearestMultiple(diff, 0.0625)[1] < tol - or nearestMultiple(diff, opFrac(1 / 12))[1] < tol): + or nearestMultiple(diff, 1 / 12)[1] < tol): mOffsetShift = mHighestTime else: mOffsetShift = lastTimeSignatureQuarterLength warnings.warn( - f"Warning: measure {m.number} in part {self.stream.partName}" - f"is overfull: {mHighestTime} > {lastTimeSignatureQuarterLength}," - f"assuming {mOffsetShift} is correct." + f'Warning: measure {m.number} in part {self.stream.partName}' + f'is overfull: {mHighestTime} > {lastTimeSignatureQuarterLength},' + f'assuming {mOffsetShift} is correct.', + MusicXMLWarning ) elif (mHighestTime == 0.0 and not m.recurse().notesAndRests.getElementsNotOfClass('Harmony')