from typing import List


def linvectors_list(
    pitches: List,
) -> List:

    """Returns the linvectors of a list of MIDI pitches.
    """

    result = []
    first_linvector = [pitches[0]]
    result.append(first_linvector)
    for pitch in pitches[1:]:
        next_linvector = []
        for element in result[-1]:
            if abs(pitch-element) <= 2:
                pass
            else:
                next_linvector.append(element)
        next_linvector.append(pitch)
        result.append(next_linvector)

    return result