Using the createCantusVoice() function defined earlier, write a program that generates variations on Arvo Pärt’s compositional idea,
using different scales (e.g., C major scale) and different pitch movement (e.g., upward motion, or downward and upward motion in one
scale, and so on). For example, the program may use the defined
function as follows:
pitches = [A5, G5, F5, E5, D5, C5, B4, A4]
durations = [HN, QN, HN, QN, HN, QN, HN, QN]
voice1 = createCantusVoice(pitches, durations, 0, 1.0)
voice2 = createCantusVoice(pitches, durations, -12, 2.0)
voice3 = createCantusVoice(pitches, durations, -24, 4.0)
voice4 = createCantusVoice(pitches, durations, -36, 8.0)
to generate the different voices in the piece before adding them to a
part.