1/9/2024 0 Comments Textgrid praatBut I know the solution to the problem would be to do all the editor stuff inside of at least some for loop that cycles through all the filenames. I don’t know Praat scripting well enough to know what’ll happen if you do that, and it very well might blow up the program. I think a solution to the problem would be to move everything before endproc into the strings for loop, just after the Read from file. ![]() Well, once the code has moved past the for loop, the variable is still there but only the file name in the last iteration is stored there. file_name$ coming from? It looks like that variable is storing the name of the file in every iteration of the strings for loop. So it looks like everything from selectObject: "Sound '.file_name$’”Īnd down is the part where it zooms in on a sound and stuff happens, right? And the for loop before it with the strings object is just getting the list of files and whatnot, yes? Okay, so I think I see where the problem is, but I'm not completely sure about my answer. file path/'.file_name$'_editedtext.TextGrid Strings = Create Strings as file list: "list". ![]() When I save the text grid, it only saves the last annotation, and not all of the annotations. However, there are multiple instances in each sound file that need annotation. I have a praat script that creates text grids, zooms in to a specific time, and then pauses to allow me to annotate the text grid.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |