From 780dc4688971929ed7e7a281749aa1e053a91c07 Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Thu, 13 Jun 2024 14:06:08 -1000 Subject: [PATCH] Update FiguredBass.Examples numbers this module is not run with every test run. Presumably some bugfix along the way slightly lowered the number of solutions when maximum separation is removed. --- music21/figuredBass/examples.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/music21/figuredBass/examples.py b/music21/figuredBass/examples.py index d2d1abc2e8..a6846546de 100644 --- a/music21/figuredBass/examples.py +++ b/music21/figuredBass/examples.py @@ -67,7 +67,7 @@ def exampleA(): >>> fbRealization2 = fbLine.realize(fbRules) >>> fbRealization2.keyboardStyleOutput = False >>> fbRealization2.getNumSolutions() - 3713168 + 3564440 >>> #_DOCS_SHOW fbRealization2.generateRandomRealization().show() .. image:: images/figuredBass/fbExamples_sol2A.* @@ -111,7 +111,6 @@ def exampleD(): figured bass, and fbLine is realized again. Voice overlap can be seen in the fourth measure. - >>> fbRules.forbidVoiceOverlap = False >>> fbRealization2 = fbLine.realize(fbRules) >>> fbRealization2.getNumSolutions() @@ -124,12 +123,11 @@ def exampleD(): Now, the restriction on voice overlap is reset, but the restriction on the upper parts being within a perfect octave of each other is removed. fbLine is realized again. - >>> fbRules.forbidVoiceOverlap = True >>> fbRules.upperPartsMaxSemitoneSeparation = None >>> fbRealization3 = fbLine.realize(fbRules) >>> fbRealization3.getNumSolutions() - 29629539 + 27445876 >>> fbRealization3.keyboardStyleOutput = False >>> #_DOCS_SHOW fbRealization3.generateRandomRealization().show() @@ -177,7 +175,7 @@ def exampleB(): >>> fbRules.forbidIncompletePossibilities = False >>> fbRealization2 = fbLine.realize(fbRules) >>> fbRealization2.getNumSolutions() - 188974 + 159373 >>> #_DOCS_SHOW fbRealization2.generateRandomRealization().show() .. image:: images/figuredBass/fbExamples_sol2B.*