Skip to content

Commit

Permalink
Update FiguredBass.Examples numbers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mscuthbert committed Jun 14, 2024
1 parent 4716deb commit 780dc46
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions music21/figuredBass/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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.*
Expand Down

0 comments on commit 780dc46

Please sign in to comment.