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

fix one incorrect doc #1676

Merged
merged 1 commit into from
Jan 2, 2024
Merged
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
5 changes: 3 additions & 2 deletions music21/chord/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class ChordTablesException(exceptions21.Music21Exception):

# This dictionary defines the pitch classes to return for the inversion of a given
# forte number. For instance (3, 11): (0, 4, 7) indicates that for the
# inverted form of Forte class 3-11 (minor/major triad) return 0, 2, 3
# inverted form of Forte class 3-11 (minor/major triad) return 0, 4, 7
# (the zero could be assumed, but it makes my brain easier to have it there).
# It is faster to store this than to recompute it every time.
inversionDefaultPitchClasses = {
Expand Down Expand Up @@ -1786,6 +1786,7 @@ def addressToForteName(address, classification='tn'):
return f'{card}-{index}{iStr}'


# noinspection GrazieInspection
def seekChordTablesAddress(c):
'''
Utility method to return the address to the chord table; used by
Expand Down Expand Up @@ -1839,7 +1840,7 @@ def seekChordTablesAddress(c):
for Chord with 0 pitches

NOTE: this was once a time-consuming operation, though it is
now quite a bit faster than before (order of 100 microseconds). Nonetheless
now quite a bit faster than before (order of 100 microseconds). Nonetheless, it
should only be run when necessary. Methods that call this should
try (as chord.Chord does) to cache the result.

Expand Down
Loading