Skip to content

Commit 0c21c66

Browse files
Set expressionIsInferred when setting quarterLength directly
1 parent 583092a commit 0c21c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

music21/duration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ def _updateComponents(self):
17631763
'''
17641764
# this update will not be necessary
17651765
self._quarterLengthNeedsUpdating = False
1766-
if self.linked:
1766+
if self.linked and self.expressionIsInferred:
17671767
qlc = quarterConversion(self._qtrLength)
17681768
self.components = list(qlc.components)
17691769
if qlc.tuplet is not None:
@@ -2824,6 +2824,7 @@ def _setQuarterLength(self, value: OffsetQLIn):
28242824
if value == 0.0 and self.linked is True:
28252825
self.clear()
28262826
self._qtrLength = value
2827+
self.expressionIsInferred = True
28272828
self._componentsNeedUpdating = True
28282829
self._quarterLengthNeedsUpdating = False
28292830

0 commit comments

Comments
 (0)