![]() There are a couple of things to note here. We'll talk more about what is happening with the equal sign and everything, so for now just type it in exactly and run it.Ĭheck out the info window again. Let's add another line to our script, and run it again. When your script is doing something you don't like, you can start "printing" the values of things to the Info window and see where you're going wrong. This is going to be your primary mode of interacting with Praat scripts. All of these little details (can) matter when you program, and paying great attention to detail will serve you well. You will constantly generate errors, but when you practice typing things in (that's why you don't copy and paste), you will gradually get better at paying attention to every little detail and typing carefully, like in this case the colon, and the enclosing quotes around the word "Boo!". You have just written your first Praat script! If you mistyped something, you would have gotten some type of error message. If you typed everything correctly, the Info window should have popped up and tried to scare you. Run this by going to Run > Run, or better yet, by clicking Ctrl + R on Windows or Linux, or ⌘ + R on Mac. Type this command (type, don't copy paste!): Your curiosity will lead you to new ways of tackling problems that you wouldn't have thought up on your own. To be a successful programmer you will need to feed your curiosity and hone your Google-Fu. The next time you're sitting with your phone in front of you and you're about to kill time on social media, try to look up what those things are instead. Click on all of the top bar dropdown menus, and say "Hmmph" when you see something and you don't know what it is. It's essentially a very simple text editor. The window that opens is the scripting window. With the Object window focused, in the "Praat" top bar dropdown menu click "New Praat Script". Now we're going to open a Scripting window. When it's three in the morning and you're tired and find yourself screaming "Where the f*#$ is the open Praat script command?!?!", click on a different window, try again, and when you find it scream "Winnebago!" It'll be our little inside joke. ![]() Click on the Picture window, and note that the available dropdown menus on the top bar are now different. Note the available dropdown menus on top bar (Praat, New, Open, Save, Help). Click on the object window to bring it into focus. Unless you've tinkered with it, Praat should open the "Object Window" and the "Picture Window". If you're using an out of date version of Praat, parts of this tutorial might not work. The Praat developers are constantly addressing bugs, and they've also made some big improvements to their scripting language. First, install Praat! If you haven't updated Praat in a while (as in, in the last year), download the latest stable version. Chinese would take some work, but is a possibility :) Update your version of Praat If you speak Catalan, French or Italian and have a question, feel free to write me in your language. Si tienes alguna duda, puedes escribirme en español. Se tiver qualquer dúvida em português, fala aí!Įspañol: Si crees que mucha gente leería este tutorial si fuera en español, avísame, y tal vez lo traduzco. Português: Se achar que muitas pessoas leriam este site se fosse em português, me avise, e talvez o traduza. Click here to read the complete introduction. Welcome! Click on the menu in the top right to see the topics covered in this tutorial. Basics: Praat Windows, opening scripts, comments Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |