vertical_position_to_note

pitchtools.vertical_position_to_note(pos)[source]

Given a vertical position as an integer, returns the corresponding (diatonic) note

Parameters:

pos (int) – the position as index, where 0 is C

Return type:

str

Returns:

the note corresponding to the given vertical position

>>> vertical_position_to_note(2)
0E
>>> vertical_position_to_note(0)
0C