From 02e1db54730a6b7ca02d88207f4513785cf29938 Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Tue, 2 Jan 2024 12:33:22 -1000 Subject: [PATCH] fix one incorrect doc --- music21/chord/tables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/music21/chord/tables.py b/music21/chord/tables.py index 83d10b9f51..506edd9ae7 100644 --- a/music21/chord/tables.py +++ b/music21/chord/tables.py @@ -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 = { @@ -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 @@ -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.