orbichord/chordinate.py
def scalePoint(
    chord: Chord,
    scale: ConcreteScale
) -> list:
    """Compute chord coordinates using the degree for a given scale

    Parameters
    ----------
        chrod : Chrod
            Chord to estimate normal order
        scale : ConcreteScale
            Scale use as metric step

    Return
    ------
        list
            List with scalar normal order

    Examples
    --------
    >>> from music21.chord import Chord
    >>> from music21.scale import MajorScale
    >>> from orbichord.chordinate import scalePoint
    >>> scale = MajorScale('C')
    >>> chord = Chord('C E G')
    >>> scalePoint(chord, scale)
    [0, 2, 4]
    """
    # Chordinates
    point = []
    # Loop over pitches and extract scale
    for pitch in chord.pitches:
        point.append(
            scale.getScaleDegreeFromPitch(
                pitch, comparisonAttribute='pitchClass'
            ) - 1
        )
    return point
Compute chord coordinates using the degree for a given scale

    Parameters
    ----------
        chrod : Chrod
            Chord to estimate normal order
        scale : ConcreteScale
            Scale use as metric step

    Return
    ------
        list
            List with scalar normal order

    Examples
    --------
    >>> from music21.chord import Chord
    >>> from music21.scale import MajorScale
    >>> from orbichord.chordinate import scalePoint
    >>> scale = MajorScale('C')
    >>> chord = Chord('C E G')
    >>> scalePoint(chord, scale)
    [0, 2, 4]
    
Compute chord coordinates using the degree for a given scale
Parameters

chrod : Chrod
Chord to estimate normal order
scale : ConcreteScale
Scale use as metric step

Return

list
List with scalar normal order

Examples


Compute chord coordinates using the degree for a given scale Parameters chrod : Chrod Chord to estimate normal order scale : ConcreteScale Scale use as metric step Return list List with scalar normal order Examples
def scalePoint(
    chord: Chord,
    scale: ConcreteScale
) -> list:
    point = []
    for pitch in chord.pitches:
        point.append(
            scale.getScaleDegreeFromPitch(
                pitch, comparisonAttribute='pitchClass'
            ) - 1
        )
    return point
def scalePoint ( chord : Chord , scale : ConcreteScale ) -> list : point = [ ] for pitch in chord . pitches : point . append ( scale . getScaleDegreeFromPitch ( pitch , comparisonAttribute = 'pitchClass' ) - 1 ) return point
Compute chord coordinates using the degree for a given scale
Parameters
Compute chord coordinates using the degree for a given scale Parameters
"""Compute chord coordinates using the degree for a given scale

    Parameters
    ----------
        chrod : Chrod
            Chord to estimate normal order
        scale : ConcreteScale
            Scale use as metric step

    Return
    ------
        list
            List with scalar normal order

    Examples
    --------
    >>> from music21.chord import Chord
    >>> from music21.scale import MajorScale
    >>> from orbichord.chordinate import scalePoint
    >>> scale = MajorScale('C')
    >>> chord = Chord('C E G')
    >>> scalePoint(chord, scale)
    [0, 2, 4]
    """ # Chordinates # Loop over pitches and extract scale
chord
Chord
scale
ConcreteScale