Skip to search.
praat-users · Praat Users Group

Group Information

? 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
Messages 6236 - 6265 of 6389   Oldest  |  < Older  |  Newer >  |  Newest
Messages 6236 - 6265 of 6389   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#6236 From: Paul Boersma <paul.boersma@...>
Date: Mon Jan 28, 2013 7:36 pm
Subject: Re: How to raise an editor window above Demo window?
paulboersma
Send Email Send Email
 
Op 28 jan. 2013, om 01:02 heeft Michelle Porter het volgende geschreven:

> > Does anyone know how I could raise an already-open editor window to the
> top as a response to Demo window input?

the only command in Praat that moves a TextGrid window to the front is "View &
Edit", and in that case it is always a new window. If this is a problem, then it
is not restricted to commands from the Demo window.

So the only way to change the behavior of the script commands is to change the
behavior of the click on "View & Edit", namely not to create a new window if one
already exists but just to raise the existing window to the front. This makes
some sense (it's how Microsoft Word and Adobe Reader and many other programs
work), but loses the ability to have multiple views of the same object open.

Suggestions for an intuitive way to have the best of both worlds are cordially
invited.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6237 From: Peggy Renwick <peggy_r@...>
Date: Mon Jan 28, 2013 12:48 pm
Subject: Measuring spectral centre of gravity
peggy_r
Send Email Send Email
 
Dear all,

I would like to measure the spectral centre of gravity for portions of a .wav
file that correspond to certain time intervals in a Text Grid (i.e. for specific
speech segments labeled in the Text Grid). What is the most efficient way to do
this on a large scale?

Through reading the Praat documentation and various available Praat scripts, I
believe that the way to accomplish this is to (a) extract the portion of the
Sound corresponding to the Text Grid interval I'm interested in; (b) create a
Spectrum for that Sound portion; (c) get the centre of gravity of that Spectrum.

Is that indeed the best method, or is there a simpler tactic that doesn't
require the extraction of an individual Sound for each segment I want to sample?

If anyone can point me a to a pre-existing Praat script that would help with
this process, I would greatly appreciate it.

best,

Peggy Renwick

[Non-text portions of this message have been removed]

#6238 From: Michelle Porter <mporter0710@...>
Date: Tue Jan 29, 2013 8:27 am
Subject: Re: How to raise an editor window above Demo window?
mporter0710
Send Email Send Email
 
Would it be possible to have a command (maybe hidden from the standard
interface) that would just let you raise any open window (i.e. something
that would address the window rather than the object ID (and so maybe
even including Picture window, Demo window, info window, main Praat
window etc.))?

M.

On 28/01/2013 19:36, Paul Boersma wrote:
> Op 28 jan. 2013, om 01:02 heeft Michelle Porter het volgende geschreven:
>
>>> Does anyone know how I could raise an already-open editor window to the
>> top as a response to Demo window input?
>
> the only command in Praat that moves a TextGrid window to the front is "View &
Edit", and in that case it is always a new window. If this is a problem, then it
is not restricted to commands from the Demo window.
>
> So the only way to change the behavior of the script commands is to change the
behavior of the click on "View & Edit", namely not to create a new window if one
already exists but just to raise the existing window to the front. This makes
some sense (it's how Microsoft Word and Adobe Reader and many other programs
work), but loses the ability to have multiple views of the same object open.
>
> Suggestions for an intuitive way to have the best of both worlds are cordially
invited.
> _____
>
> Paul Boersma
> University of Amsterdam
> Linguistics
> Spuistraat 210, room 303
> 1012VT Amsterdam, The Netherlands
> http://www.fon.hum.uva.nl/paul/
>

#6239 From: Paul Boersma <paul.boersma@...>
Date: Tue Jan 29, 2013 9:50 pm
Subject: Re: How to raise an editor window above Demo window?
paulboersma
Send Email Send Email
 
Op 29 jan. 2013, om 12:19 heeft José Joaquín Atria het volgende geschreven:

> Perhaps something like
>
> > view_window = View & Edit
> > [do other things with other objects]
> > select view_window
> > Bring to front
> > [do other things]
> > Close

in this specific example, the script would have to know the id of the window,
which it doesn't if the script didn't create the window.

But working with window ids, as with object ids, may be doable. One could
retrieve an id in an analogous way:

window = window (textgrid)   ; the last created window with the object
"textgrid" in it
if window <> 0
    editor window
else
    select textgrid
    window = View & Edit
endif

For this to work, "window" would have to be a unique id (perhaps -1, -2 and so
on), and the "editor" command should front the window, which is different
behaviour than now but does not seem obtrusive.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6240 From: José Joaquín Atria <jjatria@...>
Date: Tue Jan 29, 2013 11:19 am
Subject: Re: How to raise an editor window above Demo window?
jjatria
Send Email Send Email
 
I'm not sure how Praat deals with windows and other GUI elements, but
perhaps having a way to address specific windows and their methods (much in
the same way as it is done now for objects) would be the best. Maybe even
making windows into Praat objects (if they are not already), available
through the same old select command we are familiar with. Then you could
have access to however many window-specific commands you may want (now or
in the future) without cluttering the GUI with buttons.

Perhaps something like

> view_window = View & Edit
> [do other things with other objects]
> select view_window
> Bring to front
> [do other things]
> Close

Or something of the sort.

I think that instead of working out a specific solution to this specific
problem, making it so that when situations like these come up there is
already an interface to solve them would be the best.

José Joaquín Atria

www.pinguinorodriguez.cl


On Tue, Jan 29, 2013 at 8:27 AM, Michelle Porter <mporter0710@...>wrote:

> **
>
>
> Would it be possible to have a command (maybe hidden from the standard
> interface) that would just let you raise any open window (i.e. something
> that would address the window rather than the object ID (and so maybe
> even including Picture window, Demo window, info window, main Praat
> window etc.))?
>
> M.
>
>
> On 28/01/2013 19:36, Paul Boersma wrote:
> > Op 28 jan. 2013, om 01:02 heeft Michelle Porter het volgende geschreven:
> >
> >>> Does anyone know how I could raise an already-open editor window to the
> >> top as a response to Demo window input?
> >
> > the only command in Praat that moves a TextGrid window to the front is
> "View & Edit", and in that case it is always a new window. If this is a
> problem, then it is not restricted to commands from the Demo window.
> >
> > So the only way to change the behavior of the script commands is to
> change the behavior of the click on "View & Edit", namely not to create a
> new window if one already exists but just to raise the existing window to
> the front. This makes some sense (it's how Microsoft Word and Adobe Reader
> and many other programs work), but loses the ability to have multiple views
> of the same object open.
> >
> > Suggestions for an intuitive way to have the best of both worlds are
> cordially invited.
> > _____
> >
> > Paul Boersma
> > University of Amsterdam
> > Linguistics
> > Spuistraat 210, room 303
> > 1012VT Amsterdam, The Netherlands
> > http://www.fon.hum.uva.nl/paul/
> >
>
>
>


[Non-text portions of this message have been removed]

#6241 From: "Hannah Witherstone" <h.witherstone@...>
Date: Wed Jan 30, 2013 8:29 pm
Subject: Noise masking
h.witherstone
Send Email Send Email
 
I'm very new to PRAAT and have only just about grasped the basics, so apologies
if I am asking fundamental questions.

I have single sentences that I need to mask with fluctuating pink noise and
signal-correlated noise.  I have absolutely no idea how to create either of
these noise masks - can anyone point me in the direction of a generic idiot's
guide?

Many thanks,
Hannah

#6242 From: Michelle Porter <mporter0710@...>
Date: Wed Jan 30, 2013 10:11 pm
Subject: Re: How to raise an editor window above Demo window?
mporter0710
Send Email Send Email
 
I think this would work well. Would it be possible to allow us to cycle
through all the open windows (like a "window collection"), and be able
to access whatever object's in it? I think that would be ideal. :)

Thanks Paul.

Best,

M.

On 29/01/2013 21:50, Paul Boersma wrote:
> Op 29 jan. 2013, om 12:19 heeft José Joaquín Atria het volgende geschreven:
>
>> Perhaps something like
>>
>>> view_window = View & Edit
>>> [do other things with other objects]
>>> select view_window
>>> Bring to front
>>> [do other things]
>>> Close
>
> in this specific example, the script would have to know the id of the window,
which it doesn't if the script didn't create the window.
>
> But working with window ids, as with object ids, may be doable. One could
retrieve an id in an analogous way:
>
> window = window (textgrid)   ; the last created window with the object
"textgrid" in it
> if window <> 0
>     editor window
> else
>     select textgrid
>     window = View & Edit
> endif
>
> For this to work, "window" would have to be a unique id (perhaps -1, -2 and so
on), and the "editor" command should front the window, which is different
behaviour than now but does not seem obtrusive.
> _____
>
> Paul Boersma
> University of Amsterdam
> Linguistics
> Spuistraat 210, room 303
> 1012VT Amsterdam, The Netherlands
> http://www.fon.hum.uva.nl/paul/
>

#6243 From: "cicilia_the_third" <schneerella@...>
Date: Thu Jan 31, 2013 7:25 am
Subject: Script - Problems with zooming in
cicilia_the_...
Send Email Send Email
 
Dear all,

I found this useful script on the internet:
https://raw.github.com/drammock/praat-semiauto/master/SemiAutoPitchSettingsTool.\
praat

I spent some time now to figure out how this could work for me, but encountered
the same problem as I already did with other scripts: the zooming in the editor
window.

this is how it's done in the script mentioned above (around line 78-86):

# SHOW THE EDITOR WINDOW
	 zoomStart = 0
	 zoomEnd = totalDur
	 select Sound 'filename$'
	 View & Edit
	 editor Sound 'filename$'

		 # HIDE THE SPECTROGRAM & ANALYSES TO PREVENT ANNOYING FLICKERING
		 Show analyses... no no no no no 10
		 Zoom... zoomStart zoomEnd

I was able to work around my problem with other scripts, but as it would easen
up my work by a lot, I'd be grateful if someone could help me.
I'm using the newest praat version.

Best regard and thank you,
C.

#6244 From: "dan_mccloy" <drmccloy@...>
Date: Thu Jan 31, 2013 7:29 pm
Subject: Re: Script - Problems with zooming in
dan_mccloy
Send Email Send Email
 
As the author of that script, I can probably provide some assistance, but it's
not clear to me exactly what problem you're having (other than the fact that
your problem is somehow related to zooming).  I'm guessing that you want a way
to control how much of your file is shown by default; I've added this
functionality to the script under the form variable "defaultZoomDuration" (which
is now version 0.3, available here:
https://github.com/drammock/praat-semiauto/blob/master/SemiAutoPitchSettingsTool\
.praat).  If your problem was something else, please give more details.
Regards,
-- dan

--- In praat-users@..., "cicilia_the_third"  wrote:
>
> Dear all,
>
> I found this useful script on the internet:
>
https://raw.github.com/drammock/praat-semiauto/master/SemiAutoPitchSettingsTool.\
praat
>
> I spent some time now to figure out how this could work for me, but
encountered the same problem as I already did with other scripts: the zooming in
the editor window.
>
> this is how it's done in the script mentioned above (around line 78-86):
>
> # SHOW THE EDITOR WINDOW
>  zoomStart = 0
>  zoomEnd = totalDur
>  select Sound 'filename$'
>  View & Edit
>  editor Sound 'filename$'
>
> 	 # HIDE THE SPECTROGRAM & ANALYSES TO PREVENT ANNOYING FLICKERING
> 	 Show analyses... no no no no no 10
> 	 Zoom... zoomStart zoomEnd
>
> I was able to work around my problem with other scripts, but as it would easen
up my work by a lot, I'd be grateful if someone could help me.
> I'm using the newest praat version.
>
> Best regard and thank you,
> C.
>

#6245 From: "kyuchulyoon" <kyoon@...>
Date: Sat Feb 2, 2013 12:38 pm
Subject: Move boundaries with keyboard in sound/textgrid editor window?
kyuchulyoon
Send Email Send Email
 
Hello,

Hope this is something that is already possible in Praat, but is there a way to
move boundaries (in interval or point tiers) with only keyboard keys in
sound/textgrid editor window? I know that it's possible to move the cursor and
to select part of the window, but I don't know about actually moving boundaries
with only keyboard keys.

We are creating a speech corpus with phones labeled. After first-pass automatic
phone labeling, we're planning on doing manual corrections. It'd be a huge
time-saver if we can move boundaries with keyboard keys only.

If this is something that is not implemented in Praat yet, please consider
implementing it in some brilliant way in future versions of Praat. :)

Thank you!

#6246 From: "heeding_you" <heeding_you@...>
Date: Mon Feb 4, 2013 1:52 pm
Subject: articulation object help
heeding_you
Send Email Send Email
 
I am new to praat. Kindly point me to articulatory synthesis guide that explains
all the parameter namely (lungs to buccinator) of articulation object.

thanks
ashish

#6247 From: "wobaidan" <wobaidan@...>
Date: Thu Feb 7, 2013 9:51 pm
Subject: Error when selecting sound region in editor
wobaidan
Send Email Send Email
 
Hello,

I'm doing some labeling with a script that cycles through stimuli for labeling
and saves the text-grids as I label. But Praat is crashing each time I finish
labeling one file at the "next file" point.

I'm getting a repeated error as I select a region of a sound in the sound or
text-grid editors in Ubuntu 12.10 64-bit, Praat v. 5.3.39 :

(praat:2964): Gdk-CRITICAL **: IA__gdk_draw_text_wc: assertion `font != NULL'
failed

That error may or may not be related to the main issue, that it crashes.

Thanks for any help!
Dan

Here is the script:

# cycle.praat cycles through sound files for CV labeling.
# If a file already has an associated text-grid, it will be
# passed up. If a file does not, a text-grid will be created,
# and the editor will be opened for editing. Following labeling
# it moves on to the next file. Each text-grid is saved
# as the script progresses.

# Sep 2012
# by dan brenner, dbrenner@...

clearinfo
dir$ = "/home/dan/emsProject/bilingualSoundFiles/EnglishSoundFiles"
Create Strings as file list... fileList 'dir$'/*.wav
wavlist = selected ("Strings")
numfiles = Get number of strings

for f to numfiles
	 select wavlist
	 wav$ = Get string... f
	 Read from file... 'dir$'/'wav$'
	 wav = selected ("Sound")
	 tg$ = replace_regex$ (wav$, "\.wav$|\.WAV$", "\.TextGrid", 1)
	 wholename$ = "'dir$'/'tg$'"
	 if !fileReadable (wholename$)
		 To TextGrid... "cv Notes" ""
		 tg = selected ("TextGrid")
		 tgObject$ = selected$ ("TextGrid")

		 plus wav
		 Edit
		 editor TextGrid 'tgObject$'

		 beginPause ("Labeling...")
		 comment ("Labeling <'wav$'>...")
		 clicked = endPause ("Next-->", "Done", 1, 2)
		 if clicked == 1
			 Close
			 endeditor

			 select tg
			 Save as text file... 'dir$'/'tg$'
			 plus wav
			 Remove
		 else
			 # If you click "Done", Praat will NOT save the
			 # text-grid.
			 Close
			 endeditor
			 select tg
			 plus wav
			 plus wavlist
			 Remove
			 exit
		 endif
	 else
		 Remove
	 endif
endfor

#6248 From: Shuo Zhang <zangsir@...>
Date: Fri Feb 8, 2013 2:44 pm
Subject: textgrid file type
musilinguist
Send Email Send Email
 
Hi,

If I use either of the following commands in praat script to save textgrid:

Save as text file...

or

Write to text file...

the resulting textgrid is marked as "simple text file" with an extension name of
.Textgrid.(as viewed by the 'KInd' property on Mac OS).

However, if I save a textgrid manually from the praat object window, the
textgrid is marked as "Praat Annotation".

I wonder is there a way I can save the textgrid file in praat script where the
outcome is of type "Praat Annotation"?

Thanks,
Shuo

#6249 From: "nordiccold" <illia.klimov@...>
Date: Sat Feb 9, 2013 2:24 am
Subject: Praatcon voice power script
nordiccold
Send Email Send Email
 
Hi,

Is it possible to fetch mean voice power from wav file ?

Here is I read file

soundFileName$ = file.wav
sound = Read from file... 'soundFileName$'

1. what I should do next? I need save voice power (dB) in some text file.
2. Where I can find tutorial or documentation about praatcon ?


Thank you!

#6250 From: Paul Boersma <paul.boersma@...>
Date: Sat Feb 9, 2013 12:37 pm
Subject: Re: Praatcon voice power script
paulboersma
Send Email Send Email
 
Op 9 feb. 2013, om 03:24 heeft nordiccold het volgende geschreven:

> > Is it possible to fetch mean voice power from wav file ?
>
> Here is I read file
>
> soundFileName$ = file.wav
> sound = Read from file... 'soundFileName$'
>
> 1. what I should do next? I need save voice power (dB) in some text file.
> 2. Where I can find tutorial or documentation about praatcon ?

praatcon is described in the manual. It has the same commands as Praat, except
that it doesn't run in the console instead of in windows. For your purpose, I
think you can just use Praat.

If by "mean voice power" you mean the mean intensity during voiced stretches,
then there is no direct command for that, although I could create one. A big
concern, however, is that if you want to find the real voice power in dB
relative to the auditory threshold, the recording has to be calibrated.

_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6251 From: Paul Boersma <paul.boersma@...>
Date: Sat Feb 9, 2013 3:09 pm
Subject: Re: textgrid file type
paulboersma
Send Email Send Email
 
Op 8 feb. 2013, om 15:44 heeft Shuo Zhang het volgende geschreven:

> > I wonder is there a way I can save the textgrid file in praat script where
the outcome is of type "Praat Annotation"?

just save it with extension .TextGrid

You probably included a dot or a space character at the end or so.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6252 From: mahesh m <mahiindias@...>
Date: Sat Feb 9, 2013 8:23 am
Subject: extracting pitch values from Point tiers: help
mahiindias
Send Email Send Email
 
Dear Praat Users
I am working on Intonation. I need to get  F0 values at predefined point tier
positions..........

It will be really great if any body can suggest some ideas or link..

Many thanks

MaheshM 

[Non-text portions of this message have been removed]

#6253 From: "katetoneill53" <kton53@...>
Date: Mon Feb 11, 2013 8:26 pm
Subject: Praat script and .Collection files
katetoneill53
Send Email Send Email
 
I am using a Praat script (below) to get the pitch for a series of .WAV and
.TextGrid files which are saved as binary (.Collection) files. I am having some
problems adjusting the below script to recognize .Collection files. Any
suggestions?

# This script goes through sound and TextGrid files in a directory,
# opens each pair of Sound and TextGrid, calculates the pitch maximum
# of each labeled interval, and saves results to a text file.
# To make some other or additional analyses, you can modify the script
# yourself... it should be reasonably well commented! ;)
#
# This script is distributed under the GNU General Public License.
# [adapted from] Copyright 4.7.2003 Mietta Lennes

form Analyze pitch maxima from labeled segments in files
	 comment Directory of sound files
	 text sound_directory /Users/
	 sentence Sound_file_extension .wav
	 comment Directory of TextGrid files
	 text textGrid_directory /Users/
	 sentence TextGrid_file_extension .TextGrid
	 comment Full path of the resulting text file:
	 text resultfile /Users/katharineoneill/Desktop/pitch-results.txt
	 comment Which tier do you want to analyze?
	 sentence Tier Segments
	 comment Pitch analysis parameters
	 positive Time_step 0.01
	 positive Minimum_pitch_(Hz) 75
	 positive Maximum_pitch_(Hz) 300
endform

# Here, you make a listing of all the sound files in a directory.
# The example gets file names ending with ".aif" from
C:\Users\Sarah\Desktop\Lana-textgrids\

Create Strings as file list... list 'sound_directory$'*'sound_file_extension$'
numberOfFiles = Get number of strings

# Check if the result file (e.g., results-pitch.txt) exists. If it does, ask if
you would like to overwrite the file.
if fileReadable (resultfile$)
	 pause The result file 'resultfile$' already exists! Do you want to overwrite
it?
	 filedelete 'resultfile$'
endif

# Write a title row with column titles to the result file:
# (remember to edit this if you add or change the analyses!)

titleline$ = "Filename Segment label Average pitch 'newline$'"
fileappend "'resultfile$'" 'titleline$'

# Go through all the sound files, one by one:

for ifile to numberOfFiles
	 filename$ = Get string... ifile
	 # A sound file is opened from the listing:
	 Read from file... 'sound_directory$''filename$'
	 # Starting from here, you can add everything that should be
	 # repeated for every sound file that was opened:
	 soundname$ = selected$ ("Sound", 1)
	 To Pitch... time_step minimum_pitch maximum_pitch
	 # Open a TextGrid by the same name:
	 gridfile$ = "'textGrid_directory$''soundname$''textGrid_file_extension$'"
	 if fileReadable (gridfile$)
		 Read from file... 'gridfile$'
		 # Find the tier number that has the label given in the form:
		 call GetTier 'tier$' tier
		 numberOfIntervals = Get number of intervals... tier
		 # Pass through all intervals in the selected tier:
		 for interval to numberOfIntervals
			 label$ = Get label of interval... tier interval
			 if label$ <> ""
				 # if the interval has an unempty label, get its start and end:
				 start = Get starting point... tier interval
				 start_ms = start * 1000
				 end = Get end point... tier interval
				 end_ms = end * 1000

				 # Duration in seconds = end of the interval - start of the interval; to get
milliseconds, we mulitply by 1000
				 duration = (end - start) * 1000

				 # get the Pitch information at that interval
				 select Pitch 'soundname$'
				 # (1) get the value of the minimum pitch
				 pitchmin = Get minimum... start end Hertz Parabolic
				 # (2) get the time the minimum pitch happens (note that this is the time in
the overall file, not the interval)
				 pitchmin_time = Get time of minimum... start end Hertz Parabolic
				 # (3) get the time of the minimum pitch relative to the start of the
interval (mulitplying by 1000 gets this value in milliseconds)
				 pitchmin_timeint = (pitchmin_time - start) * 1000

				 # (4) do the same for maximum
				 pitchmax = Get maximum... start end Hertz Parabolic
				 pitchmax_time = Get time of maximum... start end Hertz Parabolic
				 pitchmax_timeint = (pitchmax_time - start) * 1000

				 # (5) get average
				 pitchmean = Get mean... start end Hertz


				 # Save result to text file:
				 resultline$ = "'soundname$' 'label$' 'start_ms' 'end_ms' 'duration'
'pitchmin' 'pitchmin_timeint' 'pitchmax' 'pitchmax_timeint' 'pitchmean'
'newline$'"
				 fileappend "'resultfile$'" 'resultline$'
				 select TextGrid 'soundname$'
			 endif
		 endfor
		 # Remove the TextGrid object from the object list
		 select TextGrid 'soundname$'
		 Remove
	 endif
	 # Remove the temporary objects from the object list
	 select Sound 'soundname$'
	 plus Pitch 'soundname$'
	 Remove
	 select Strings list
	 # and go on with the next sound file!
endfor

Remove


#-------------
# This procedure finds the number of a tier that has a given label.

procedure GetTier name$ variable$
         numberOfTiers = Get number of tiers
         itier = 1
         repeat
                 tier$ = Get tier name... itier
                 itier = itier + 1
         until tier$ = name$ or itier > numberOfTiers
         if tier$ <> name$
                 'variable$' = 0
         else
                 'variable$' = itier - 1
         endif

	 if 'variable$' = 0
		 exit The tier called 'name$' is missing from the file 'soundname$'!
	 endif

endproc

#6254 From: Paul Boersma <paul.boersma@...>
Date: Tue Feb 12, 2013 9:13 am
Subject: Re: extracting pitch values from Point tiers: help
paulboersma
Send Email Send Email
 
Op 9 feb. 2013, om 09:23 heeft mahesh m het volgende geschreven:

> > I am working on Intonation. I need to get  F0 values at predefined point
tier positions......….

I assume you are working on a script. To get the times of the points in a
TextGrid, you use

    Get time of point...

To get the F0 at that time, you select the Pitch object and do

    Get value at time...

An example can be found at "script for analysing pitch with a TextGrid" in the
manual.

_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6255 From: Gregorio Garcia Karman <ggkarman@...>
Date: Tue Feb 12, 2013 4:23 pm
Subject: Scripting the Praat picture window
ggkarman
Send Email Send Email
 
Dear List,

I am a newbe to this list and to praat scripting, so please apologize for this
simple question. I am trying to generate a series of waveform displays from a
longsound. I would like to draw the waveform every 40 seconds and print it to a
pdf until the sound is finished. The longsound is quite long :) and there are a
few of them so I was trying to script the process thinking in something along
these lines (inserted in a for loop):

start = 0
finish = 40
sound$="mysound"

View
Select inner viewport... 0 12 0 6

editor LongSound 'sound$'
	 Zoom... start finish
	 Draw visible sound... yes yes -1 1 no no no no
endeditor

editor Praat Picture
	 Save as PDF file...
endeditor

of course, the Praat Picture editor does not exist....

I have read the manual and searched the internet and kind of understand the need
to select the proper window to access a certain command in that window, but
after an hour I am still unable to find an example that would clarify how to
access the Praat Picture window.

Many thanks for your comments

Cheers
Gregorio Garcia Karman

#6256 From: "rlevitan" <rivka.levitan@...>
Date: Mon Feb 18, 2013 4:18 pm
Subject: Re: problem with script editor
rlevitan
Send Email Send Email
 
Hi,

I've been using Praat for a while. I just downloaded the new version and am
getting this error. I looked at the download page and didn't find a solution.
Can you clarify?

Thanks,
Rivka

--- In praat-users@..., Paul Boersma <paul.boersma@...> wrote:
>
> At 11:57 PM +0000 6/29/08, harendra wrote:
> >hi everyone,
> >I am new to praat scripts...
> >I am trying to use some script but i am not able to edit script
> >and infact in any window i am not able to use keyboard as such..
>
> You cannot hope to write scripts if you cannot get Praat to work
> normally in the first place.
>
> The problem you mention is due to the fact that the location of some
> system files differs between Linux versions/distributions. See the
> Praat-for-Linux download page for how to solve this.
> --
>
> Paul Boersma
> Phonetic Sciences, University of Amsterdam
> Spuistraat 210, room 303
> 1012VT Amsterdam, The Netherlands
> http://www.fon.hum.uva.nl/paul/
> phone +31-20-5252385
>

#6257 From: "Farideh" <farideh.jalali@...>
Date: Tue Feb 19, 2013 11:39 am
Subject: Praat for hospital
farideh.jalali
Send Email Send Email
 
Dear All,

I am going to do voice analysis for a bout 110 voice samples from hospital, I am
using Praat and getting the voice report for each sample, I have selected the
cross- correlation as option in the pitch setting and just have made this
optimisation.
I have different sort of voices in my data- base( normal, pathological,...), I
am a bit worried how the results for the pitch frequency, jitter, shimmer etc
can be accurate.
It mentioned in the tutorial if we want to get more precised results use point
process for different voice properties.
I would like to know, if I only get  the whole speech waveform ( by show pulses)
and get the voice report ,how much these result would be accurate?( if I wont do
any point process)

#6258 From: "Farideh" <farideh.jalali@...>
Date: Tue Feb 19, 2013 12:05 pm
Subject: Matlab voice report script
farideh.jalali
Send Email Send Email
 
How can we read different voice report script by  Matlab?

#6259 From: Paul Boersma <paul.boersma@...>
Date: Tue Feb 19, 2013 10:28 pm
Subject: Re: Re: problem with script editor
paulboersma
Send Email Send Email
 
Op 18 feb. 2013, om 17:18 heeft rlevitan het volgende geschreven:

> > I've been using Praat for a while. I just downloaded the new version and am
getting this error.

The discussion list is not for reporting bugs, because the other Praat users
cannot solve them. If you see a bug, please send them directly to me, telling me
the Praat version, your platform, and what exactly went wrong (i.e. what you
did, what you expected to happen, and what happened instead).

(The bug report that you copy-pasted into your message was solved three years
ago.)
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6260 From: Paul Boersma <paul.boersma@...>
Date: Tue Feb 19, 2013 10:31 pm
Subject: Re: Scripting the Praat picture window
paulboersma
Send Email Send Email
 
Op 12 feb. 2013, om 17:23 heeft Gregorio Garcia Karman het volgende geschreven:

> > I have read the manual and searched the internet and kind of understand the
need to select the proper window to access a certain command in that window, but
after an hour I am still unable to find an example that would clarify how to
access the Praat Picture window.

just delete the lines "editor Praat Picture" and the corresponding "endeditor"
from your script. Page 1 of the scripting tutorial already has examples that mix
commands from the Objects window with commands from the Picture window.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6261 From: Paul Boersma <paul.boersma@...>
Date: Tue Feb 19, 2013 10:38 pm
Subject: Re: Praat for hospital
paulboersma
Send Email Send Email
 
Op 19 feb. 2013, om 12:39 heeft Farideh het volgende geschreven:

> > It mentioned in the tutorial if we want to get more precised results use
point process for different voice properties.
> I would like to know, if I only get  the whole speech waveform ( by show
pulses) and get the voice report ,how much these result would be accurate?( if I
wont do any point process)

what page of the manual says this? If the pitch contour is correct, then the
blue "pulses" (= point process) are correct, and the result is maximally
accurate.

But please tell me where you read that "if we want to get more precised results
use point process". I can then correct the manual.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6262 From: José Joaquín Atria <jjatria@...>
Date: Tue Feb 19, 2013 10:29 pm
Subject: Re: Scripting the Praat picture window
jjatria
Send Email Send Email
 
You were very close, but there are two things in your script that need
changing.

First, unless I'm missing something here, there is no "Save as PDF file..."
command in the Picture window, and you are probably thinking of "Save as
EPS file...".

Second, you don't need to "select" the Picture window, since commands in
the Picture window are always available. So, this bit

> editor Praat Picture
> Save as PDF file...
> endeditor

could be re-written as

> Save as EPS file... /path/to/file

Also, remember to close all the editor windows that you are opening. Trying
out your script flooded my screen with bits of the sound. :)

There are probably other ways to do this that don't require you to open a
gazillion editors. Maybe something like

> for i to number_of_parts
>   start = (i-1)*40
>   finish = i*40
>   sound$=selected$("LongSound")
>
>   part = Extract part... start finish
>   Select inner viewport... 0 12 0 6
>
>   Draw... start end -1 1 no Curve
>   Remove
>   Save as EPS file... /path/to/part'i'.eps
>   Erase all
> endfor

I don't know how precisely the output files would match, but I bet it'd be
fine.

Hope it helps.

José Joaquín Atria

www.pinguinorodriguez.cl


On Tue, Feb 12, 2013 at 4:23 PM, Gregorio Garcia Karman <
ggkarman@...> wrote:

> **
>
>
> Dear List,
>
> I am a newbe to this list and to praat scripting, so please apologize for
> this simple question. I am trying to generate a series of waveform displays
> from a longsound. I would like to draw the waveform every 40 seconds and
> print it to a pdf until the sound is finished. The longsound is quite long
> :) and there are a few of them so I was trying to script the process
> thinking in something along these lines (inserted in a for loop):
>
> start = 0
> finish = 40
> sound$="mysound"
>
> View
> Select inner viewport... 0 12 0 6
>
> editor LongSound 'sound$'
> Zoom... start finish
> Draw visible sound... yes yes -1 1 no no no no
> endeditor
>
> editor Praat Picture
> Save as PDF file...
> endeditor
>
> of course, the Praat Picture editor does not exist....
>
> I have read the manual and searched the internet and kind of understand
> the need to select the proper window to access a certain command in that
> window, but after an hour I am still unable to find an example that would
> clarify how to access the Praat Picture window.
>
> Many thanks for your comments
>
> Cheers
> Gregorio Garcia Karman
>
>
>


[Non-text portions of this message have been removed]

#6263 From: "Farideh" <farideh.jalali@...>
Date: Wed Feb 20, 2013 11:33 am
Subject: Disadvantage of automating voice analysis?
farideh.jalali
Send Email Send Email
 
In all the commands mentioned above, you have to guess the time range, and you
would usually supply "0.0" and "0.0", in which case you will get the average
jitter and shimmer for the whole sound. This may include parts of the sound that
you are often not interested in, such as false starts. You do not have these
problems when asking for a voice report in the sound window, because there you
would make an explicit time selection by hand after judging what part of the
sound is relevant.(ppgb, October 28, 2006)

1.Can I know what do you mean by judging what part of the sound is relevant?

Do you mean we can not select the whole section of sound always and get the
voice report from pulses menu?

2.Why selecting unvoiced section effect on the results inside of voice report?

I think pitch frequency, jitter and shimmer only should be measured for the
voiced vowels and selecting unvoiced part should not change the results for
these properties in voice report but for HNR and NHR the results can be
different after selecting the unvoiced section.

#6264 From: Paul Boersma <paul.boersma@...>
Date: Wed Feb 20, 2013 7:37 pm
Subject: Re: Disadvantage of automating voice analysis?
paulboersma
Send Email Send Email
 
Op 20 feb. 2013, om 12:33 heeft Farideh het volgende geschreven:

> > I think pitch frequency, jitter and shimmer only should be measured for the
voiced vowels and selecting unvoiced part should not change the results for
these properties in voice report but for HNR and NHR the results can be
different after selecting the unvoiced section.

it is true that the voice report ignores the unvoiced parts. However, a
recording may contain other voiced parts than just the vowels. Consonants like
b, coughs, hesitations, all those things may not have been intended as the
sustained vowel you intend to measure.
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/

#6265 From: "beibi" <beibi_ec@...>
Date: Wed Feb 20, 2013 7:24 pm
Subject: little help with diploma thesis
beibi_ec
Send Email Send Email
 
Dear Praat users,

I am a dentistry student in my final year of study and I am doing my diploma
thesis on fonetic analysis of fixed prosthodontics.
I am analysing words that correlate their articulation site with the morphology
of the fixed crowns.
I wanted to ask you which parameter do you think is best to analyse for my
study. I am thinking about the center of gravity because i am mostly interested
in fricatives like "s", but i don't quite manage to isolate them from my word.
I was also thinking of comparing the medium intensities or frequencies of the
words.
I thank in advance for your time and I would very much appreciate your help.

Have a nice day!

Messages 6236 - 6265 of 6389   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?
Messages 6236 - 6265 of 6389   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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