Entering pitches as a list of semitones

The function presented here maps a list of positive or negative numbers to a musical expression, resulting in a melody where each note differs from the previous one's pitch by the given number of semitones. This may be particularly useful in compositional processes where music input (and particularly pitches) is generated arithmetically or from any number sequence.