Added a function to minimize octave jumps (i.e. smooth octave jumps > 1 octave).