pitchtypes.spelled.AbstractSpelledPitch

class pitchtypes.spelled.AbstractSpelledPitch

Bases: ABC

The interface for spelled pitch types.

__init__()

Methods

__init__()

alteration()

compare(other)

embed()

fifths()

internal_octaves()

letter()

Returns the letter associated with the pitch (without accidentals).

midi()

Return the MIDI number of the pitch.

name()

octaves()

onehot(fifth_range, octave_range[, dtype])

__weakref__

list of weak references to the object (if defined)

abstract letter()

Returns the letter associated with the pitch (without accidentals).

Returns:

letter (single-character string)

abstract midi()

Return the MIDI number of the pitch.

Returns:

MIDI number (integer)