What commands do I need in a Praat script to draw labels for the minimum and maximum of a Sound object?

  • It's not clear what you are asking. Praat only has one "script language". What do you want to achieve? What have you tried? What doesn't work, and how doesn't it work? – jja Nov 14 '16 at 16:28
  • 1
    What is the code, i.e. terminology I need to use. I have basic skills in scripting, and I have done some online tutorials, but I cannot find the "language" or "terms" to draw a custom waveform. When I use the Praat interface to draw a waveform and check on "Garnish", it draws the sound min and max, and the duration start and end along with label Times (s). I want to customize the garnishment so that duration start, end and label are not drawn. – dav Nov 14 '16 at 21:00
  • I tried to adapt part of the script found here: linguistics.stackexchange.com/questions/16877/…, but I am not able to get it to work. – dav Nov 15 '16 at 15:57
  • Without knowing what you did or how it is not working, it is hard for anyone to help. You might have to start a new question for that. For this one, though, did the commands I linked to in my answer below not help? – jja Nov 15 '16 at 18:18

Take a look at lines 99-100 in the script I posted in this other question, which combines the plotting of Sound, Pitch, and TextGrid objects while reproducing the plotting scheme in the default Praat figures. I suspect the commands you want are in the One mark left/right/top/bottom... family of Picture window commands.

The sound minimum and maximum, on the other hand, are calculated from the Get minimum... and Get maximum... commands for Sound objects.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.