ellie_s
ellie_s

Reputation: 1

Frame-by-frame value for pitch and intensity?

Is there a way I can view the frame-by-frame value for pitch and intensity on Praat? As of now, I can only view the mean pitch and intensity across the whole time window of my recording. I have included the code that I have used so far. When I run the code, I get the following error message: Picture of error message. Thanks in advance for your help!

'''
#creating a table for the values
timeseriesp = Create Table with column names: "timeseriesp", 0,"p_ts"

#reading in the file
sound = Read from file: fileName$

#selecting the sound object and extracting continuous pitch
selectObject: sound
View & Edit
#610 is length of video
Select: 0, 610
p_ts = Pitch listing

#putting data into the table
selectObject: timeseriesp
Append row
row = Get number of rows
Set string value: row, "test", p_ts
'''

Upvotes: 0

Views: 226

Answers (1)

matfra
matfra

Reputation: 26

Two points here. First, the error message you are getting is due to you trying to use an editor command ("Select"). In roder to avoid the error, embed the command in an editor -- endeditor structure:

editor sound
   Select: 0, 610
endeditor

Second, in general though, you can get pitch and intensity values quicker without reverting to the editor window. This will speed up your script if you are processing a lot of files. Create Pitch and Intensity objects from your sound file. You can query those objects for pitch/intensity values at specific times/frames and save them in your table.

Upvotes: 0

Related Questions