I'd like to report a small issue. When I import files into the object window, Praat numbers the item from 5, not 1. For example, when I reopen Praat, and import my very first file, it'll be "5. Sound ba2" (screenshot attached below). This causes trouble especially when I'm running script that loops from the #1 object in the object window. I tried reopening, reinstalling Praat, or restarting my laptop, but none has worked. I wonder if anyone has also encountered this issue and has a solution. Thanks a lot!!
this means that you have very probably installed a plug-in that at start-up creates and destroys four objects! In your picture I see "Vocal Toolkit", and you may have more.
Or you have a start-up file (look those up in the manual to see what I mean).
Apart from that, you are advised to rewrite your script in such a way that it does not rely on fixed objects IDs. Every time you create an object, you can assign its ID to a variable (e.g.: sound = Read from file: "hello.wav"), so that you later refer
to it (e.g.: selectObject: sound). If you script works on a selected Sound object, you can get its id as well (e.g.: originalSound = selected ("Sound"))
best wishes,
Paul
On 11 Nov 2022, at 04:17, Ryan Yu via groups.io <xyu97@...> wrote:
Hello,
I'd like to report a small issue. When I import files into the object window, Praat numbers the item from 5, not 1. For example, when I reopen Praat, and import my very first file, it'll be "5. Sound ba2" (screenshot attached below). This causes trouble especially
when I'm running script that loops from the #1 object in the object window. I tried reopening, reinstalling Praat, or restarting my laptop, but none has worked. I wonder if anyone has also encountered this issue and has a solution. Thanks a lot!!
Best,
Ryan
<Screen Shot 2022-11-11 at 11.13.39.png>
_____
Paul Boersma
Professor of Phonetic Sciences
University of Amsterdam Spuistraat 134, room 632 1012VB Amsterdam, The Netherlands http://www.fon.hum.uva.nl/paul/