Skip to content

Instantly share code, notes, and snippets.

@jflanaga
Created June 26, 2015 13:35
Show Gist options
  • Save jflanaga/1a232c5a7db75724d040 to your computer and use it in GitHub Desktop.
Save jflanaga/1a232c5a7db75724d040 to your computer and use it in GitHub Desktop.
Script for printing waveforms and spectrograms with Praat
sound = selected ("Sound")
textgrid = selected ("TextGrid")
spectrogram = selected ("Spectrogram")
formant = selected ("Formant")
Select inner viewport: 1, 5, 1, 2
select sound
Draw... 0 0 0 0 no Curve
Draw inner box
Select inner viewport: 1, 5, 2, 3.4
select spectrogram
Paint... 0 0 0 0 100 yes 50 6 0 no
Red
select formant
Speckle... 0 0 5500 30 no
Black
Draw inner box
Marks left every... 1 1000 yes yes yes
Text left... yes Frequency (Hz)
Select inner viewport: 1, 5, 1, 4
select textgrid
Draw... 0 0 no no yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment