| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>PitchTier: Modify interval (tone levels)...</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 | PitchTier: Modify interval (tone levels)... |
| 13 | </b></font></table></table> |
| 14 | <p>Modifies a selected interval from the chosen <a href="PitchTier.html">PitchTier</a> by replacing the contents of the interval by newly defined pitch points.</p> |
| 15 | <p>For tone languages the pitch contours of the tones are often expressed as a sequence of tone levels instead of a sequence of real frequency values in hertz because tone levels abstract away from the possibly different pitch ranges of individual speakers.</p> |
| 16 | <p>The tone levels <i>T</i> are calculated from a given pitch <i>frequency</i> in hertz as:</p> |
| 17 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>T</i> = <i>numberOfToneLevels</i> · log (<i>frequency</i> / <i>F</i><sub>min</sub>) / log (<i>F</i><sub>max</sub> / <i>F</i><sub>min</sub>),</table> |
| 18 | <p>where <i>F</i><sub>min</sub> and <i>F</i><sub>max</sub> are the minimum and the maximum frequency of a speaker's pitch range and <i>numberOfToneLevels</i> is the number of levels into which the pitch range is divided. This formula maps any frequency between <i>F</i><sub>min</sub> and <i>F</i><sub>max</sub> to a number between 0 and <i>numberOfToneLevels</i>.</p> |
| 19 | <p>To get the frequency in hertz from a specified tone level <i>T</i> we have to use the inverse formula:</p> |
| 20 | <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>frequency</i> = <i>F</i><sub>min</sub> · 10<sup>(<i>T</i> · log (<i>F</i><sub>max</sub> / <i>F</i><sub>min</sub>)) / <i>numberOfToneLevels</i>)</sup>.</table> |
| 21 | <h2>Settings</h2> |
| 22 | <p align=middle><img height=459.99999999999994 width=540 src=PitchTier__Modify_interval__tone_levels_____1.png></p><dl> |
| 23 | <dt><b>Time range (s)</b> |
| 24 | <dd>the start and end time of the interval where the changes will be applied.</dd> |
| 25 | <dt><b>Pitch range (Hz)</b> |
| 26 | <dd>The minimum and maximum frequency to which the tone levels refer.</dd> |
| 27 | <dt><b>Number of tone levels</b> |
| 28 | <dd>The number of levels into which the pitch range is divided.</dd> |
| 29 | <dt><b>Relative times</b> |
| 30 | <dd>determine, together with the following option, the times of the new pitch points with respect to the start time of the interval.</dd> |
| 31 | <dd>determines how the times <i>t</i><sub><i>i</i></sub> of the new pitch points are calculated. The time of each new pitch point is determined by adding to the start time of the interval a time calculated from the relative time value. If <i>t</i><sub>min</sub> and <i>t</i><sub>max</sub> are the start and end time of the interval and <i>r</i><sub>i</sub> is the <i>i</i><sup>th</sup> relative time, the times <i>t</i><sub><i>i</i></sub> are calculated according to the options as:</dd> |
| 32 | <dt> <i>fractions</i> |
| 33 | <dd> <i>t</i><sub><i>i</i></sub> = <i>t</i><sub>min</sub> + <i>r</i><sub><i>i</i></sub> (<i>t</i><sub>max</sub> – <i>t</i><sub>min</sub>). The relative time values are fractions of the interval duration. Normally fractions are numbers in the range 0.0 to 1.0, although smaller and larger numbers are allowed.</dd> |
| 34 | <dt> <i>percentages</i> |
| 35 | <dd> <i>t</i><sub><i>i</i></sub> = <i>t</i><sub>min</sub>+ 0.01 <i>r</i><sub><i>i</i></sub> (<i>t</i><sub>max</sub> – <i>t</i><sub>min</sub>). The relative time values are percentages of the interval duration. Normally percentages are numbers in the range 0.0 to 100.0, although smaller and larger numbers are allowed.</dd> |
| 36 | <dt> <i>independent</i> |
| 37 | <dd> <i>t</i><sub><i>i</i></sub> = <i>t</i><sub>min</sub> + <i>r</i><sub><i>i</i></sub>. The relative time values specify an offset in seconds here. </dd> |
| 38 | <dt><b>Tone levels</b> |
| 39 | <dd>specify the frequencies at the corresponding time points as tone levels.</dd> |
| 40 | </dl> |
| 41 | <h2>Algorithm</h2> |
| 42 | <p>1. The real times are calculated from the relative times.</p> |
| 43 | <p>2. The frequencies are calculated from the tone levels.</p> |
| 44 | <p>3. The real times and the frequencies are sorted together by time.</p> |
| 45 | <p>4. All pitch points in the PitchTier between the first and the last time of the sorted time array are removed.</p> |
| 46 | <p>5. The newly calculated pitch points are added to the PitchTier.</p> |
| 47 | <hr> |
| 48 | <address> |
| 49 | <p>© djmw 20170801</p> |
| 50 | </address> |
| 51 | </body> |
| 52 | </html> |