transpose method

Pitch transpose(
  1. int semitones
)

Transposes the pitch by a number of semitones.

Implementation

Pitch transpose(int semitones) => Pitch(toInt() + semitones);