Date
1 - 3 of 3
Praat script systematically crashing when working with a manipulation object #error
Emmett STRICKLAND
Thanks a lot! Yes, endeditor is the command I should have used. I thought that Close would have done the job.
|
|
Boersma Paul
Yes, this script crashes at mine as well, if I combine the two parts of your script.
The script contains a mistake, but of course Praat should just give an error message instead of crashing, so I will have to repair this approximately today.
To make your script not crash, put "endeditor" between the two parts.
Another problem in your script is that it tries to use an editor window for running analyses. Instead, it is much easier, faster, and reproducible to work with commands from the Objects window only:
selectObject: "Manipulation Synthesized"
Extract pitch tier
Remove points between: 0, duration
plusObject: "Manipulation Synthesized"
Replace pitch tier
_____
Paul Boersma
Professor of Phonetic Sciences
University of Amsterdam
Spuistraat 134, room 632 1012VB Amsterdam, The Netherlands http://www.fon.hum.uva.nl/paul/ |
|
Emmett STRICKLAND
I've run into a frustrating problem when working on a Praat script involving a manipulation object. I don't think I need to go into details about the script, but it essentially aims to generate a manupulation object from a sound file, remove the pitch points, and then re-insert pitch points at the locations of intervals in a corresponding .TextGrid file. I am not sure why this script causes Praat to crash, but I suspect that it has to do with the presence of a manipulation object in the objects window.
selectObject: "Sound X"
duration = Get total duration
To Manipulation: 0.01, 75, 600
selectObject: "Manipulation X"
Rename: "Synthesized"
selectObject: "Manipulation Synthesized"
Edit
editor: "Manipulation Synthesized"
Select: 0, duration
Remove pitch point(s)
Close This block of code correctly generates a Manipulation object. However, when I run the following block naming some variables, Praat immediately crashes. soundObject$ = "Sound ABJ_GWA_03_M" tgObject$ = "TextGrid ABJ_GWA_03"
manipObject$ = "Manipulation Synthesized"
supportTier = 1
contourTier = 7 The crash only occurs after I have generated a manipulation object, whether manually or with the previous block of code. The error also occurs if I have removed the manipulation object from the objects window. I am running Version 2.2.23 on a Macbook. I have also seen the following message appear several times in my Bash window. I don't know if these issues are related. I did not have any issues with this part of the script before updating Praat. Unrecognized AppKit event in Window -sendEvent: NSEvent: type=Kitdefined loc=(0,428) time=61569.7 flags=0 win=0x7fe6c560ecf0 winNum=6566 ctxt=0x0 subtype=22 data1=0 data2=0 |
|