| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Sound: To FormantPath (burg)...</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
Sound: To FormantPath (burg)... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command that creates a <a href="FormantPath.html">FormantPath</a> object from each selected <a href="Sound.html">Sound</a> . </p> |
| 15 |
<h2><b>Settings</b></h2> |
| 16 |
<p>The settings for <b>Time step (s)</b>, <b>Maximum number of formants</b>, <b>Window length (s)</b> and <b>Pre-emphasis from (Hz)</b> are as you would set them with the <a href="Sound__To_Formant__burg____.html">Sound: To Formant (burg)...</a> method. The defaults are 0.005 seconds, 5.0 formants, 0.025 seconds, and 50.0 Hz, respectively.</p> |
| 17 |
<dl> |
| 18 |
<dt><b>Middle formant ceiling (Hz)</b> |
| 19 |
<dd>determines the middle formant ceiling frequency in Hz. You normaly would use 5500.0 Hz for an average female voice and 5000.0 Hz for an average male voice as you would do for the <b>Formant ceiling (Hz)</b> setting in <b>To Formant (burg)...</b>. However, instead of performing only one analysis with a fixed ceiling, we perform multiple analyses, each with a different ceiling frequency. The number of analyses with a <i>lower</i> formant ceiling than the <i>middle formant ceiling</i> is equal to the number of analyses with a <i>higher</i> formant ceiling than the <i>middle formant ceiling</i>. </dd> |
| 20 |
<dt><b>Ceiling step size</b> |
| 21 |
<dd>defines the increase or decrease in the formant ceiling between two successive analyses as exp(<i>ceilingStepSize</i>) when we step up, or as exp(-<i>ceilingStepSize</i>) when we step down.</dd> |
| 22 |
<dt><b>Number of steps up / down</b> |
| 23 |
<dd>determines the number of steps we go up as well as the number of steps we go down with respect to the <i>middle</i> formant ceiling<i></i>. The ceiling frequency for the <i>i</i><sup>th</sup> step down is <i>middleFormantCeiling</i>·exp (-<i>i</i>·<i>ceilingStepSize</i>) and for the <i>i</i><sup>th</sup> step up is <i>middleFormantCeiling</i>·exp (+<i>i</i>·<i>ceilingStepSize</i>). The total number of analyses is always 2·<i>numberOfStepsUpDown</i>+1.</dd> |
| 24 |
</dl> |
| 25 |
<h2>Algorithm</h2> |
| 26 |
<p>The following algorithm describes what is going on. </p> |
| 27 |
<code> ceiling [numberOfStepsUpDown + 1] = middleCeiling<br></code> |
| 28 |
<code> for istep from 1 to 2 * numberOfStepsUpDown + 1<br></code> |
| 29 |
<code> if istep <= numberOfStepsUpDown<br></code> |
| 30 |
<code> ceiling [istep] = middleFormantCeiling * exp (-(numberOfStepsUpDown - istep + 1) * ceilingStepSize)<br></code> |
| 31 |
<code> elsif istep > numberOfStepsUpOrDown + 1<br></code> |
| 32 |
<code> ceiling [istep] = middleFormantCeiling * exp ((istep - numberOfStepsUpDown - 1) * ceilingStepSize)<br></code> |
| 33 |
<code> selectObject: sound<br></code> |
| 34 |
<code> formant [istep] = To Formant (burg): timeStep, maxNumberOfFormants, ceiling [istep], windowLength, preEmphasis<br></code> |
| 35 |
<code> endfor<br></code> |
| 36 |
<p>This description is approximate because in the "To Formant" step we have to guarantee that all the Formant objects get the same time sampling.</p> |
| 37 |
<hr> |
| 38 |
<address> |
| 39 |
<p>© djmw 20230225</p> |
| 40 |
</address> |
| 41 |
</body> |
| 42 |
</html> |