NoteParts

class pitchtools.NoteParts(octave, diatonic_name, alteration, cents_deviation)[source]

Bases: object

Represents the parts of a notename

It is returned by split_notename()

octave

octave number, 4=central octave

Type:

int

diatonic_name (str

“C”, “D”, “E”, … (diatonic step)

alteration

the alteration as str, “#”, “b”, “+”, “-”, “>”, “<”

Type:

str

cents_deviation

number of cents deviation from the chromatic pitch

Type:

int

See also

notated_pitch()

Attributes Summary

alteration

'#', 'b', '+', '-', '>', '<'

alteration_cents

The cents corresponding to the alteration

cents_deviation

Number of cents deviation from the chromatic pitch

diatonic_name

name of the diatonic step ('C', 'D', 'E', etc.)

diatonic_step

The diatonic step as an index, where 0 is C

octave

octave number, 4=central octave

Methods Summary

midinote()

rtype:

float

Attributes Documentation

alteration: str

‘#’, ‘b’, ‘+’, ‘-’, ‘>’, ‘<’

Type:

The alteration as str

alteration_cents

The cents corresponding to the alteration

cents_deviation: int

Number of cents deviation from the chromatic pitch

diatonic_name: str

name of the diatonic step (‘C’, ‘D’, ‘E’, etc.)

diatonic_step

The diatonic step as an index, where 0 is C

octave: int

octave number, 4=central octave

Methods Documentation

midinote()[source]
Return type:

float