transpose_pitch_expr_into_pitch_range

pitchtools.transpose_pitch_expr_into_pitch_range(pitch_expr, pitch_range)

Transposes pitch_expr into pitch_range.

>>> pitches = [-2, -1, 13, 14]
>>> range_ = pitchtools.PitchRange('[C4, C5]')
>>> pitchtools.transpose_pitch_expr_into_pitch_range(pitches, range_)
[10, 11, 1, 2]

Returns new pitch_expr object.