4 # Hum the correct tone tracks
6 form Mandarin Tone contours
13 pinyin$ = replace_regex$(pinyin$, "^\s*(.+)\s*$", "\1", 1)
14 pinyin$ = replace_regex$(pinyin$, "5", "0", 0)
17 # Generate reference example
18 # Start with a range of 1 octave and a speed factor of 1
21 execute ToneScript.praat 'pinyin$' 'register' 1 1 CorrectPitch
24 select Pitch 'pinyin$'
28 select Pitch 'pinyin$'