From e03b0cb118c568500f8b29ee664c14af19552990 Mon Sep 17 00:00:00 2001 From: Alexander Morgan Date: Tue, 30 Apr 2024 17:14:03 +0200 Subject: [PATCH] Adjust doc test expected val and use getGrace inPlace arg --- music21/humdrum/spineParser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/music21/humdrum/spineParser.py b/music21/humdrum/spineParser.py index e4492374e..ede1ebd65 100644 --- a/music21/humdrum/spineParser.py +++ b/music21/humdrum/spineParser.py @@ -2193,7 +2193,7 @@ def hdStringToNote(contents, defaultDuration=None): >>> n = humdrum.spineParser.hdStringToNote('gg#q/LL') >>> n.duration - + >>> n.duration.isGrace True @@ -2377,14 +2377,14 @@ def hdStringToNote(contents, defaultDuration=None): # 3.2.9 Grace Notes and Groupettos if qCount := contents.count('q'): - thisObject = thisObject.getGrace() + thisObject.getGrace(inPlace=True) if qCount == 2: thisObject.duration.slash = False elif 'Q' in contents: - thisObject = thisObject.getGrace() + thisObject.getGrace(inPlace=True) thisObject.duration.slash = False elif 'P' in contents: - thisObject = thisObject.getGrace(appoggiatura=True) + thisObject.getGrace(appoggiatura=True, inPlace=True) elif 'p' in contents: pass # end appoggiatura duration -- not needed in music21...