# Read in the collection of speech files that we made in class. You will need # to change the path name to fit the location on the machine you are using. Read from file... H:\public_html\795Tsu2004\WaladShaaraKtab.Collection # Make F0 tracks for the broad focus and subject focus utterances select Sound BFtrunc To Pitch (ac)... 0 75 15 no 0.03 0.45 0.01 0.35 0.14 600 select Sound SFtrunc To Pitch (ac)... 0 75 15 no 0.03 0.45 0.01 0.35 0.14 600 # Select a 5 inch by 2.5 inch portion of the Praat picture window to be # current "Viewport" Viewport... 0 5 0 2.5 # Draw the F0 for the broad focus utterance in that Viewport and put # tickmarks at every 30 Hz and y-axis labels along the left margin select Pitch BFtrunc Draw... 0 0 80 150 no Marks left every... 1 30 yes yes no Text left... yes F0 (Hz) # Draw the F0 for the subject focus utterance in red and then change # pen back to black select Pitch SFtrunc Red Draw... 0 0 80 150 no Black # Extend the Viewport down to make room for the TextGrid to go under # the overlaid F0 tracks, and then draw the TextGrid, put a box around # the whole thing, and then put tickmarks every 30 ms and x-axis labels # along the bottom margin Viewport... 0 5 0 2.9 select TextGrid BFtrunc Draw... 0 0 yes yes no Draw inner box Marks bottom every... 1 0.3 yes yes no Text bottom... yes time (seconds) # Write the picture to a Windows metafile. Again, you'll have to change # this path name to match where you want to put the picture. Write to Windows metafile... H:\public_html\795Tsu2004\BFvsOF.emf # Erase the Viewport ready for the next picture Erase all # Make a spectrogram for the broad focus utterance and draw it and # then draw the F0 contour and TextGrid overlaid in red, etc. select Sound BFtrunc To Spectrogram... 0.005 5000 0.002 20 Gaussian select Spectrogram BFtrunc Viewport... 0 5 0 2 Paint... 0 0 0 0 100 yes 50 6 0 no Red Line width... 2 select Pitch BFtrunc Draw... 0 0 80 150 no Line width... 1 Black Marks left every... 1 30 yes yes no Text left... yes red line = F0 (Hz) select TextGrid BFtrunc Viewport... 0 5 0 2.3 Draw... 0 0 yes yes no Text bottom... yes time (seconds) Draw inner box Write to Windows metafile... H:\public_html\795Tsu2004\BFspectF0.emf