Kill Octave Jumps

This script applies the Kill Octave Jumps command to every selected Sound object.
Each resulting new Sound will be named [sound_name]_kill_octave_jumps

Command explanation:

Praat kills all the big pitch jumps, keeping them all within half an octave, for instance a downward jump of 9 semitones is replaced with an upward jump of 3 semitones. The resulting pitch curve often lies several octaves below or above the original (or real) pitch contour, but that is what you have been asking for. (real speech often contains big jumps, so if you remove them from the pitch contour, the pitch contour will not be realistic any longer)
--
Paul Boersma

https://uk.groups.yahoo.com/neo/groups/praat-users/conversations/topics/2191