orbichord/symbol.py
def chordSymbolFigure(
        chord : Chord,
        inversion : int = None,
        enharmonic : int = 0
    ) -> str:
    """Identify chords based chord symbol figure.

    This only applies to chords commonly found on lead sheets.

    Parameters
    ----------
        chord : Chord
            Chord to be identified.
        inversion : int, optional
            Inversion index.
        enharmonic : int, optional
            Enharmonic index

    Return
    ------
        str
            A string with with the chord symbol figure.
    """
    key = chordSymbolIndex(chord)
    if key not in SYMBOL_INDEX_TO_FIGURE:
        return chord.pitchClasses
    figure, inversions = SYMBOL_INDEX_TO_FIGURE[key]
    if inversion is None:
        return figure[enharmonic]
    key = inversions[inversion]
    figure, _ = SYMBOL_INDEX_TO_FIGURE[key]
    return figure[enharmonic]
Identify chords based chord symbol figure.

    This only applies to chords commonly found on lead sheets.

    Parameters
    ----------
        chord : Chord
            Chord to be identified.
        inversion : int, optional
            Inversion index.
        enharmonic : int, optional
            Enharmonic index

    Return
    ------
        str
            A string with with the chord symbol figure.
    
Identify chords based chord symbol figure.
This only applies to chords commonly found on lead sheets.

Parameters

chord : Chord
Chord to be identified.
inversion : int, optional
Inversion index.
enharmonic : int, optional
Enharmonic index

Return

str
A string with with the chord symbol figure.
Identify chords based chord symbol figure . This only applies to chords commonly found on lead sheets . Parameters chord : Chord Chord to be identified . inversion : int optional Inversion index . enharmonic : int optional Enharmonic index Return str A string with with the chord symbol figure .
def chordSymbolFigure(
        chord : Chord,
        inversion : int = None,
        enharmonic : int = 0
    ) -> str:
    key = chordSymbolIndex(chord)
    if key not in SYMBOL_INDEX_TO_FIGURE:
        return chord.pitchClasses
    figure, inversions = SYMBOL_INDEX_TO_FIGURE[key]
    if inversion is None:
        return figure[enharmonic]
    key = inversions[inversion]
    figure, _ = SYMBOL_INDEX_TO_FIGURE[key]
    return figure[enharmonic]
def chordSymbolFigure ( chord : Chord , inversion : int = None , enharmonic : int = 0 ) -> str : key = chordSymbolIndex ( chord ) if key not in SYMBOL_INDEX_TO_FIGURE : return chord . pitchClasses figure , inversions = SYMBOL_INDEX_TO_FIGURE [ key ] if inversion is None : return figure [ enharmonic ] key = inversions [ inversion ] figure , _ = SYMBOL_INDEX_TO_FIGURE [ key ] return figure [ enharmonic ]
Identify chords based chord symbol figure.
Identify chords based chord symbol figure .
"""Identify chords based chord symbol figure.

    This only applies to chords commonly found on lead sheets.

    Parameters
    ----------
        chord : Chord
            Chord to be identified.
        inversion : int, optional
            Inversion index.
        enharmonic : int, optional
            Enharmonic index

    Return
    ------
        str
            A string with with the chord symbol figure.
    """
chord
Chord
inversion
int
enharmonic
int