Sign In
New User? Sign Up
praat-users · Praat Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
Writing Pitch values to a TEXT file   Message List  
Reply | Forward Message #793 of 4647 |
Re: [praat-users] Writing Pitch values to a TEXT file

Try this:

# define a filename
yourdir$ = "somedir"
outputfiledata$ = yourdir$ + "somefile"

# remove it first if existing
filedelete 'outputfiledata$'

# load a sound with Big Endian format
Read Sound from raw 16-bit Big Endian file... 'your
sound file'

# generate a pitch obj
To Pitch... 0.01 75 300

# obtain the pitch value
pitch_value = Get value at time... 'your time stamp'
Hertz Linear

# write into the file
resultline$ = "'some other thing
here''tab$''pitch_value$'"
fileappend 'outputfiledata$' 'resultline$'
fileappend 'outputfiledata$' 'newline$'

# Done.

Hope it helps.

Liumei



--- asu_snehal <asu_snehal@...> wrote:
> Dear All,
>
> I am new to the group and would like to know any
> info regarding PITCH.
>
> I have a wave file which i want to analyse. I want
> to store all the
> pitch values into a text file so that for any give
> time in the wave
> file i can see what was the pitch of the speaker.
>
> Similarly i want to analyse all other parameters.
> But if i can get
> started with one i will be able to understand how it
> works.
>
> Thanks a lot
>
>
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



Mon Aug 4, 2003 12:22 am

liumei4000
Offline Offline
Send Email Send Email

Forward
Message #793 of 4647 |
Expand Messages Author Sort by Date

Dear All, I am new to the group and would like to know any info regarding PITCH. I have a wave file which i want to analyse. I want to store all the pitch...
asu_snehal
Offline Send Email
Aug 2, 2003
8:06 am

Try this: # define a filename yourdir$ = "somedir" outputfiledata$ = yourdir$ + "somefile" # remove it first if existing filedelete 'outputfiledata$' # load a...
Liu Mei
liumei4000
Offline Send Email
Aug 4, 2003
12:22 am

Here is what I did to get every pitch value of a sound sample to a text file...I was looking at pause length, but I could have just as well looked at the pitch...
Michael Schmidt
pansophy2000
Offline Send Email
Aug 6, 2003
6:21 am

... I suppose you have read the Intro, so that you know you can get a Pitch object from the sound editor window, or directly by selecting a Sound object and...
Paul Boersma
paulboersma
Offline Send Email
Aug 9, 2003
11:51 pm

When i read->read from file or long sound file... the file is open and i can even view the pitch graph. But when i try to extract visible pitch contour it...
snehal kundalkar
asu_snehal
Offline Send Email
Sep 14, 2003
10:14 pm
Advanced

Copyright © 2009 Yahoo! UK. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help