Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FiguredBass.Examples numbers #1717

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading