orbichord/generator.py
def _copy_fix_octaves(pitches):
        """Make chord octive consistent with their
        location within the chord."""
        octave = pitches[0].octave
        new_pitches = []
        for pitch in pitches:
            new_pitch = copy.deepcopy(pitch)
            new_pitch.octave -= octave
            new_pitches.append(new_pitch)
        pitches = new_pitches
        for index in range(1, len(pitches)):
            prev = pitches[index-1]
            curr = pitches[index]
            while prev > curr:
                curr.octave += 1
        return pitches
Make chord octive consistent with their
        location within the chord.
Make chord octive consistent with their
location within the chord.
Make chord octive consistent with their location within the chord .
def _copy_fix_octaves(pitches):
        octave = pitches[0].octave
        new_pitches = []
        for pitch in pitches:
            new_pitch = copy.deepcopy(pitch)
            new_pitch.octave -= octave
            new_pitches.append(new_pitch)
        pitches = new_pitches
        for index in range(1, len(pitches)):
            prev = pitches[index-1]
            curr = pitches[index]
            while prev > curr:
                curr.octave += 1
        return pitches
def _copy_fix_octaves ( pitches ) : octave = pitches [ 0 ] . octave new_pitches = [ ] for pitch in pitches : new_pitch = copy . deepcopy ( pitch ) new_pitch . octave -= octave new_pitches . append ( new_pitch ) pitches = new_pitches for index in range ( 1 , len ( pitches ) ) : prev = pitches [ index - 1 ] curr = pitches [ index ] while prev > curr : curr . octave += 1 return pitches
Make chord octive consistent with their
location within the chord.
Make chord octive consistent with their location within the chord .
"""Make chord octive consistent with their
        location within the chord."""
pitches