| 1 | /* manual_Fon.cpp |
| 2 | * |
| 3 | * Copyright (C) 1992-2008,2010,2011,2014-2017,2019-2025 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #include "ManPagesM.h" |
| 20 | |
| 21 | void manual_Sampling_init (ManPages me); |
| 22 | void manual_sound_init (ManPages me); |
| 23 | void manual_pitch_init (ManPages me); |
| 24 | void manual_spectrum_init (ManPages me); |
| 25 | void manual_formant_init (ManPages me); |
| 26 | void manual_pointProcess_init (ManPages me); |
| 27 | void manual_annotation_init (ManPages me); |
| 28 | void manual_SpeechRecognizer_init (ManPages me); |
| 29 | |
| 30 | void manual_Fon_init (ManPages me); |
| 31 | void manual_Fon_init (ManPages me) { |
| 32 | |
| 33 | manual_Sampling_init (me); |
| 34 | manual_sound_init (me); |
| 35 | manual_pitch_init (me); |
| 36 | manual_spectrum_init (me); |
| 37 | manual_formant_init (me); |
| 38 | manual_pointProcess_init (me); |
| 39 | manual_annotation_init (me); |
| 40 | manual_SpeechRecognizer_init (me); |
| 41 | |
| 42 | |
| 43 | MAN_PAGES_BEGIN |
| 44 | R"~~~( |
| 45 | ################################################################################ |
| 46 | "Get high index from time..." |
| 47 | © Paul Boersma 2010-12-30 |
| 48 | |
| 49 | A @@Query submenu|query@ to ask the selected tier object |
| 50 | (@DurationTier, @IntensityTier, @PitchTier) |
| 51 | which point is nearest to, but no earlier than, the specified time. |
| 52 | |
| 53 | Setting |
| 54 | ======= |
| 55 | ##Time (s) |
| 56 | : the time from which you want to get the point index. |
| 57 | |
| 58 | Return value |
| 59 | ============ |
| 60 | This query returns the index of the point with the lowest time greater than or equal to #Time. |
| 61 | It is @undefined if there are no points. |
| 62 | It is the number of points plus 1 (offright) if the specified time is greater than the time of the last point. |
| 63 | |
| 64 | ################################################################################ |
| 65 | "Get low index from time..." |
| 66 | © Paul Boersma 2010-12-30 |
| 67 | |
| 68 | A @@Query submenu|query@ to ask the selected tier object |
| 69 | (@DurationTier, @IntensityTier, @PitchTier) |
| 70 | which point is nearest to, but no later than, the specified time. |
| 71 | |
| 72 | Setting |
| 73 | ======= |
| 74 | ##Time (s) |
| 75 | : the time from which you want to get the point index. |
| 76 | |
| 77 | Return value |
| 78 | ============ |
| 79 | This query returns the index of the point with the highest time less than or equal to #Time. |
| 80 | It is @undefined if there are no points. |
| 81 | It is 0 (offleft) if the specified time is less than the time of the first point. |
| 82 | |
| 83 | ################################################################################ |
| 84 | "Get nearest index from time..." |
| 85 | © Paul Boersma 2010, 2023-04-14 |
| 86 | |
| 87 | A @@Query submenu|query@ to ask the selected tier object |
| 88 | (@DurationTier, @IntensityTier, @PitchTier) |
| 89 | which point is nearest to the specified time. |
| 90 | |
| 91 | Setting |
| 92 | ======= |
| 93 | ##Time (s) |
| 94 | : the time near which you want to get the point index. |
| 95 | |
| 96 | Return value |
| 97 | ============ |
| 98 | This query returns the index of the point whose time is closest to #Time. |
| 99 | It is @undefined if there are no points. |
| 100 | |
| 101 | ################################################################################ |
| 102 | "Remove point..." |
| 103 | © Paul Boersma 2010-12-30 |
| 104 | |
| 105 | A command to remove one point from every selected time-based tier object |
| 106 | (@DurationTier, @IntensityTier, @PitchTier). |
| 107 | |
| 108 | Setting |
| 109 | ======= |
| 110 | ##Point number |
| 111 | : the index of the point you want to remove. |
| 112 | |
| 113 | Behaviour |
| 114 | ========= |
| 115 | If ##Point number# is 3, the third point counted from the start of the tier (if it exists) |
| 116 | is removed from the tier. |
| 117 | |
| 118 | ################################################################################ |
| 119 | "Remove point near..." |
| 120 | © Paul Boersma 2010-12-30 |
| 121 | |
| 122 | A command to remove one point from every selected time-based tier object |
| 123 | (@DurationTier, @IntensityTier, @PitchTier). |
| 124 | |
| 125 | Setting |
| 126 | ======= |
| 127 | |
| 128 | ##Time (s) |
| 129 | : the time near which you want to remove a point. |
| 130 | |
| 131 | Behaviour |
| 132 | ========= |
| 133 | The point nearest to #Time (if there is any point) is removed from the tier. |
| 134 | |
| 135 | ################################################################################ |
| 136 | "Remove points between..." |
| 137 | © Paul Boersma 2010-12-30 |
| 138 | |
| 139 | A command to remove some points from every selected time-based tier object |
| 140 | (@DurationTier, @IntensityTier, @PitchTier). |
| 141 | |
| 142 | Settings |
| 143 | ======== |
| 144 | ##From time (s), To time (s) |
| 145 | : the times between which you want to remove all points. |
| 146 | |
| 147 | Behaviour |
| 148 | ========= |
| 149 | Any points between ##From time# and ##To Time# (inclusive) are removed from the tier. |
| 150 | |
| 151 | ################################################################################ |
| 152 | "AmplitudeTier" |
| 153 | © Paul Boersma 2007 |
| 154 | |
| 155 | One of the @@types of objects@ in Praat. |
| 156 | An AmplitudeTier object represents a time-stamped amplitude contour, |
| 157 | i.e., it contains a series of (%time, %amplitude) points. |
| 158 | The amplitude values are in Pascal. To see some applications, consult the @IntensityTier information; |
| 159 | the difference between an AmplitudeTier and an IntensityTier is that the former has values in Pascal |
| 160 | which multiply linearly with a Sound (for instance), and the latter has values in dB, |
| 161 | which multiply logarithmically with a Sound. |
| 162 | |
| 163 | ################################################################################ |
| 164 | "AmplitudeTier: Add point..." |
| 165 | © Paul Boersma 2023 |
| 166 | I |
| 167 | A command to add a point to each selected @AmplitudeTier. |
| 168 | |
| 169 | Settings |
| 170 | ======== |
| 171 | ##Time (s) |
| 172 | : the time at which a point is to be added. |
| 173 | |
| 174 | ##Sound pressure (Pa) |
| 175 | : the amplitude value of the requested new point. |
| 176 | |
| 177 | Behaviour |
| 178 | ========= |
| 179 | The tier is modified so that it contains the new point. |
| 180 | If a point at the specified time was already present in the tier, nothing happens. |
| 181 | |
| 182 | ################################################################################ |
| 183 | "Cochleagram" |
| 184 | © Paul Boersma 2003-03-16 |
| 185 | |
| 186 | One of the @@types of objects@ in Praat. It represents the excitation pattern |
| 187 | of the basilar membrane in the inner ear (see @Excitation) as a function of time. |
| 188 | |
| 189 | ################################################################################ |
| 190 | "Cochleagram: Formula..." |
| 191 | © Paul Boersma 2002-12-06 |
| 192 | |
| 193 | A command for changing the data in all selected @Cochleagram objects. |
| 194 | See the @Formulas tutorial for examples and explanations. |
| 195 | |
| 196 | ################################################################################ |
| 197 | "Create AmplitudeTier..." |
| 198 | © Paul Boersma 2023 |
| 199 | |
| 200 | A command in the @@New menu@ to create an empty @AmplitudeTier object. |
| 201 | The resulting object will have the specified name and time domain, but contain no amplitude points. |
| 202 | To add some points to it, use @@AmplitudeTier: Add point...@. |
| 203 | |
| 204 | ################################################################################ |
| 205 | "Create DurationTier..." |
| 206 | © Paul Boersma 2014-04-21, 2023-04-30 |
| 207 | |
| 208 | A command in the @@New menu@ to create an empty @DurationTier object. |
| 209 | The resulting object will have the specified name and time domain, but contain no duration points. |
| 210 | To add some points to it, use @@DurationTier: Add point...@. |
| 211 | |
| 212 | Example |
| 213 | ======= |
| 214 | To create a tier 0.9 seconds long, with an deceleration around 0.6 seconds, |
| 215 | you do (either in a script or by choosing these 4 commands by hand): |
| 216 | { |
| 217 | \#{Create DurationTier:} “dur”, 0, 0.9 |
| 218 | \@{DurationTier: ||Add point:} 0.3, 1 |
| 219 | Add point: 0.6, 2.3 |
| 220 | Add point: 0.7, 1 |
| 221 | } |
| 222 | The result will look like |
| 223 | {- 5x2.5 |
| 224 | x# = { 0.0, 0.3, 0.6, 0.7, 0.9 } |
| 225 | y# = { 1.0, 1.0, 2.3, 1.0, 1.0 } |
| 226 | Red |
| 227 | Create Polygon from values: "durationTier", x#, y# |
| 228 | Draw: 0.0, 0.9, 0.0, 2.5 |
| 229 | Black |
| 230 | Draw inner box |
| 231 | Marks left every: 1.0, 1.0, "yes", "yes", "no" |
| 232 | Marks bottom every: 1.0, 0.1, "yes", "yes", "no" |
| 233 | Text bottom: "yes", "Time (s)" |
| 234 | Text left: "yes", "Relative duration" |
| 235 | } |
| 236 | The target duration will be the area under this curve, which is 0.9 + 1/2 · 1.3 · 0.4 = 1.16 seconds. |
| 237 | |
| 238 | ################################################################################ |
| 239 | "Create IntensityTier..." |
| 240 | © Paul Boersma 2002-12-04 |
| 241 | |
| 242 | A command in the @@New menu@ to create an empty @IntensityTier object. |
| 243 | The resulting object will have the specified name and time domain, but contain no intensity points. |
| 244 | To add some points to it, use @@IntensityTier: Add point...@. |
| 245 | |
| 246 | ################################################################################ |
| 247 | "Create Matrix..." |
| 248 | © Paul Boersma 2002-12-12 |
| 249 | |
| 250 | A command in the #Matrix submenu of the #Generics submenu of the @@New menu@, |
| 251 | to create a @Matrix with the specified sampling attributes, |
| 252 | filled with values from a formula (see @@Matrix: Formula...@). |
| 253 | |
| 254 | ################################################################################ |
| 255 | "Create simple Matrix..." |
| 256 | © Paul Boersma 2002-12-04 |
| 257 | |
| 258 | A command in the #Matrix submenu of the #Generics submenu of the @@New menu@, |
| 259 | to create a @Matrix with the specified number of rows and columns, |
| 260 | filled with values from a formula (see @@Matrix: Formula...@). |
| 261 | |
| 262 | ################################################################################ |
| 263 | "Create simple Matrix from values..." |
| 264 | © Paul Boersma 2023 |
| 265 | |
| 266 | A command in the #Matrix submenu of the #Generics submenu of the @@New menu@, |
| 267 | to create a @Matrix with the specified cells. |
| 268 | |
| 269 | ################################################################################ |
| 270 | "Create Photo..." |
| 271 | © Paul Boersma 2023 |
| 272 | |
| 273 | A command in the #Photo submenu of the #Generics submenu of the @@New menu@, |
| 274 | to create a @Photo with the specified sampling attributes, |
| 275 | filled with values from a formula for each of the three colour channels. |
| 276 | |
| 277 | ################################################################################ |
| 278 | "Create simple Photo..." |
| 279 | © Paul Boersma 2023 |
| 280 | |
| 281 | A command in the #Photo submenu of the #Generics submenu of the @@New menu@, |
| 282 | to create a @Photo with the specified number of rows and columns, |
| 283 | filled with values from a formula for each of the three colour channels. |
| 284 | |
| 285 | ################################################################################ |
| 286 | "Create Strings as folder list..." |
| 287 | © Paul Boersma 2006(with “directory list”),2020,2024 |
| 288 | |
| 289 | A command in the @@New menu@ to create a @Strings object containing a list of folders in a given parent folder. |
| 290 | It works completely analogously to @@Create Strings as file list...@. |
| 291 | |
| 292 | Script usage |
| 293 | ============ |
| 294 | See @@Create Strings as file list...@. |
| 295 | If you don’t need the resulting @Strings object, |
| 296 | it may be easier to use @`folderNames$#` instead. |
| 297 | |
| 298 | ################################################################################ |
| 299 | "Create Strings as directory list..." |
| 300 | |
| 301 | A synonym for @@Create Strings as folder list...@. |
| 302 | |
| 303 | You can see this command in older scripts, but not in Praat’s menus. |
| 304 | This command is kept for reasons of compatibility. |
| 305 | |
| 306 | ################################################################################ |
| 307 | "Create Strings as file list..." |
| 308 | © Paul Boersma 1998,2006,2013-2015,2020,2024,2025 |
| 309 | |
| 310 | A command in the @@New menu@ to create a @Strings object containing a list of files in a given folder. |
| 311 | |
| 312 | Settings |
| 313 | ======== |
| 314 | {- 5.4x2.44 |
| 315 | )~~~" |
| 316 | Manual_DRAW_SETTINGS_WINDOW ("Create Strings as file list", 2.6) |
| 317 | Manual_DRAW_SETTINGS_WINDOW_FIELD ("Name", "fileList") |
| 318 | Manual_DRAW_SETTINGS_WINDOW_TEXT ("File path", "/Users/miep/Sounds/*.wav") |
| 319 | R"~~~( |
| 320 | } |
| 321 | |
| 322 | ##Name |
| 323 | : the name of the resulting Strings object. |
| 324 | |
| 325 | ##File path |
| 326 | : the folder name, with optional %wildcards (see below) for selecting files. |
| 327 | |
| 328 | Behaviour |
| 329 | ========= |
| 330 | The resulting Strings object will contain an alphabetical list of file names (by naïve Unicode-sorting), |
| 331 | without the preceding path through the folder structures. If there are no files that match the file path, |
| 332 | the Strings object will contain no strings. |
| 333 | |
| 334 | Usage |
| 335 | ===== |
| 336 | There are two ways to specify the file path. |
| 337 | |
| 338 | One way is to specify a folder name only. On Unix, the file path could be |
| 339 | `/usr/people/miep/sounds` or `/usr/people/miep/sounds/`, for instance. On Windows, |
| 340 | `C:\Users\Miep\Sounds` or `C:\Users\Miep\Sounds\`. |
| 341 | On Macintosh, `/Users/miep/Sounds` or `/Users/miep/Sounds/`. Any of these produce |
| 342 | a list of all the files in the specified folder. |
| 343 | |
| 344 | The other way is to specify a %wildcard (an asterisk) for the file names. |
| 345 | To get a list of all the files whose names start with “`hal`” and end in “`.wav`”, |
| 346 | type `/usr/people/miep/sounds/hal*.wav`, `C:\Users\Miep\Sounds\hal*.wav`, |
| 347 | or `/Users/miep/Sounds/hal*.wav`. |
| 348 | |
| 349 | You can even use %two wildcards: `/usr/people/miep/sounds/*al*.wav` gives you a list |
| 350 | of all files whose names contain `al` and end in `wav`. |
| 351 | |
| 352 | Script usage |
| 353 | ============ |
| 354 | In a script, you can use this command to cycle through the files in a folder. |
| 355 | For instance, to read in all the sound files in a specified folder, |
| 356 | you could use the following script: |
| 357 | {; |
| 358 | folder$ = “/usr/people/miep/sounds” |
| 359 | strings = \#{Create Strings as file list:} “list”, folder$ + “/*.wav” |
| 360 | numberOfFiles = Get number of strings |
| 361 | for ifile to numberOfFiles |
| 362 | \`{selectObject}: strings |
| 363 | fileName$ = Get string: ifile |
| 364 | \@{Read from file:} folder$ + “/” + fileName$ |
| 365 | endfor |
| 366 | removeObject: strings |
| 367 | } |
| 368 | If the script has been saved to a script file, you can use file paths that are relative to the folder |
| 369 | where you saved the script. Thus, with |
| 370 | {; |
| 371 | \#{Create Strings as file list:} “list”, “*.wav” |
| 372 | } |
| 373 | you get a list of all the `.wav` files that are in the same folder as the script that contains this line. |
| 374 | And to get a list of all the `.wav` files in the folder `Sounds` that resides in the same folder as your script, |
| 375 | you can do |
| 376 | {; |
| 377 | \#{Create Strings as file list:} “list”, “Sounds/*.wav” |
| 378 | } |
| 379 | As is usual in Praat scripting, the forward slash (“/”) in this example can be used on all platforms, including Windows. |
| 380 | This makes your script portable across platforms. |
| 381 | |
| 382 | Note that the above functionality can also be written four lines shorter, using built-in functions: |
| 383 | {; |
| 384 | folder$ = “/usr/people/miep/sounds” |
| 385 | list$# = \#`{fileNames$#}: folder$ + “/*.wav” |
| 386 | for ifile to \`{size} (list$#) |
| 387 | \@{Read from file:} folder$ + “/” + list$# [ifile] |
| 388 | endfor |
| 389 | } |
| 390 | This doesn’t produce a Strings object. |
| 391 | |
| 392 | See also |
| 393 | ======== |
| 394 | To get a list of folders instead of files, use @@Create Strings as folder list...@. |
| 395 | |
| 396 | ################################################################################ |
| 397 | "Photo" |
| 398 | © Paul Boersma 2023 |
| 399 | |
| 400 | One of the @@types of objects@ in Praat. It is comparable to a @Matrix |
| 401 | but has a matrix of cells for each of three colour channels: red, green and blue. |
| 402 | |
| 403 | ################################################################################ |
| 404 | )~~~" |
| 405 | MAN_PAGES_END |
| 406 | |
| 407 | MAN_BEGIN (U"Distributions", U"ppgb", 20030316) |
| 408 | INTRO (U"One of the @@types of objects@ in Praat. Inherits most actions from @TableOfReal.") |
| 409 | ENTRY (U"Actions") |
| 410 | LIST_ITEM (U"@@Distributions: To Strings...@") |
| 411 | MAN_END |
| 412 | |
| 413 | MAN_BEGIN (U"Distributions: To Strings...", U"ppgb", 19971022) |
| 414 | INTRO (U"A command to create a @Strings object from every selected @Distributions object.") |
| 415 | ENTRY (U"Settings") |
| 416 | TERM (U"##Column number") |
| 417 | DEFINITION (U"the column (in the #Distributions object) that contains the distribution that you are " |
| 418 | "interested in. Often the #Distributions object will only contain a single distribution, " |
| 419 | "so this argument will often be 1. If the #Distributions object contains nine distributions, " |
| 420 | "specify any number between 1 and 9.") |
| 421 | TERM (U"##Number of strings") |
| 422 | DEFINITION (U"the number of times a string will be drawn from the chosen distribution. " |
| 423 | "This is the number of strings that the resulting @Strings object is going to contain.") |
| 424 | ENTRY (U"Behaviour") |
| 425 | NORMAL (U"Every string in the resulting #Strings object will be a row label of the #Distributions object. " |
| 426 | "The number in each row at the specified column will be considered the relative frequency of " |
| 427 | "occurrence of that row.") |
| 428 | NORMAL (U"%#Example. Suppose we have the following #Distributions:") |
| 429 | CODE (U"File type = \"ooTextFile\"") |
| 430 | CODE (U"Object class = \"Distributions\"") |
| 431 | CODE (U"2 (number of columns)") |
| 432 | CODE (U" \"English\" \"French\" (column labels)") |
| 433 | CODE (U"3 (number of rows)") |
| 434 | CODE (U"\"the\" 108 1.5") |
| 435 | CODE (U"\"a\" 58.1 33") |
| 436 | CODE (U"\"pour\" 0.7 15.5") |
| 437 | NORMAL (U"If you set %Column to 1 and %%Number of strings% to 1000, " |
| 438 | "you will get a @Strings object with approximately 647 occurrences of “the”, " |
| 439 | "348 occurrences of “a”, and 4 occurrences of “pour”. " |
| 440 | "If you had set %Column to 2 (“French”), you would have gotten about " |
| 441 | "30 times “the”, 660 times “a”, and 310 times “pour”. " |
| 442 | "The actual numbers will vary because the choice of a string will not depend on previous choices.") |
| 443 | MAN_END |
| 444 | |
| 445 | MAN_BEGIN (U"DurationTier", U"ppgb", 20030316) |
| 446 | INTRO (U"One of the @@types of objects@ in Praat. " |
| 447 | "A DurationTier object contains a number of (%time, %duration) points, " |
| 448 | "where %duration is to be interpreted as a relative duration (e.g. the duration of a manipulated sound " |
| 449 | "as compared to the duration of the original). For instance, " |
| 450 | "if your DurationTier contains two points, one with a duration value of 1.5 at a time of 0.5 seconds " |
| 451 | "and one with a duration value of 0.6 at a time of 1.1 seconds, this is to be interpreted as " |
| 452 | "a relative duration of 1.5 (i.e. a slowing down) for all original times before 0.5 seconds, " |
| 453 | "a relative duration of 0.6 (i.e. a speeding up) for all original times after 1.1 seconds, " |
| 454 | "and a linear interpolation between 0.5 and 1.1 seconds (e.g. a relative duration of " |
| 455 | "1.2 at 0.7 seconds, and of 0.9 at 0.9 seconds).") |
| 456 | NORMAL (U"See @@Intro 8.2. Manipulation of duration@ and @@Create DurationTier...@.") |
| 457 | MAN_END |
| 458 | |
| 459 | MAN_BEGIN (U"DurationTier: Add point...", U"ppgb", 20030216) |
| 460 | INTRO (U"A command to add a point to each selected @DurationTier. " |
| 461 | "For an example, see @@Create DurationTier...@.") |
| 462 | ENTRY (U"Settings") |
| 463 | TERM (U"##Time (s)") |
| 464 | DEFINITION (U"the time at which a point is to be added.") |
| 465 | TERM (U"##Relative duration") |
| 466 | DEFINITION (U"the relative duration value of the requested new point.") |
| 467 | ENTRY (U"Behaviour") |
| 468 | NORMAL (U"The tier is modified so that it contains the new point. " |
| 469 | "If a point at the specified time was already present in the tier, nothing happens.") |
| 470 | MAN_END |
| 471 | |
| 472 | MAN_BEGIN (U"DurationTier: Get target duration...", U"ppgb", 20101228) |
| 473 | INTRO (U"A @@Query submenu|query@ to the selected @DurationTier for the target duration of a specified time range.") |
| 474 | ENTRY (U"Settings") |
| 475 | TERM (U"##From time (s)") |
| 476 | TERM (U"##To time (s)") |
| 477 | DEFINITION (U"the start and end of the (original) time range.") |
| 478 | ENTRY (U"Return value") |
| 479 | NORMAL (U"the target duration in seconds.") |
| 480 | MAN_END |
| 481 | |
| 482 | MAN_BEGIN (U"DurationTierEditor", U"ppgb", 20110128) |
| 483 | INTRO (U"One of the @editors in the Praat program, for viewing and editing a @DurationTier object. " |
| 484 | "To create a DurationTierEditor window, select a DurationTier and click ##View & Edit#.") |
| 485 | MAN_END |
| 486 | |
| 487 | MAN_BEGIN (U"Editors", U"ppgb", 20110128) |
| 488 | INTRO (U"Many @@types of objects@ in Praat can be viewed and edited in their own windows.") |
| 489 | ENTRY (U"Editor windows") |
| 490 | LIST_ITEM (U"• @SoundEditor") |
| 491 | LIST_ITEM (U"• @LongSoundEditor") |
| 492 | LIST_ITEM (U"• @TextGridEditor") |
| 493 | LIST_ITEM (U"• @ManipulationEditor") |
| 494 | LIST_ITEM (U"• @SpectrumEditor") |
| 495 | LIST_ITEM (U"• @PitchEditor") |
| 496 | LIST_ITEM (U"• @PointEditor") |
| 497 | LIST_ITEM (U"• @PitchTierEditor") |
| 498 | LIST_ITEM (U"• @IntensityTierEditor") |
| 499 | LIST_ITEM (U"• @DurationTierEditor") |
| 500 | LIST_ITEM (U"• #SpectrogramEditor") |
| 501 | LIST_ITEM (U"• #ArtwordEditor") |
| 502 | LIST_ITEM (U"• @OTGrammarEditor") |
| 503 | LIST_ITEM (U"• (any type: @Inspect)") |
| 504 | ENTRY (U"How to open an editor for an object") |
| 505 | NORMAL (U"To open an editor window for an object in the list, select the object and choose ##View & Edit# " |
| 506 | "(if the ##View & Edit# button exists, it is usually at the top of the @@Dynamic menu@). " |
| 507 | "The name of the object will appear as the title of the editor window.") |
| 508 | NORMAL (U"Objects that cannot be modified (e.g. LongSound) just have the command #View instead of ##View & Edit#.") |
| 509 | ENTRY (U"General behaviour") |
| 510 | NORMAL (U"Changes that you make to an object in its editor window will take effect immediately. " |
| 511 | "For instance, you do not have close the editor window before saving the changed object to disk.") |
| 512 | NORMAL (U"If you @Remove an object that you are viewing or editing from the @@List of Objects@, " |
| 513 | "the editor window will automatically disappear from the screen.") |
| 514 | NORMAL (U"All editors are independent windows: you can minimize and maximize them; " |
| 515 | "if an editor window goes hiding behind another window, " |
| 516 | "you can raise it by choosing the ##View & Edit# command again.") |
| 517 | NORMAL (U"If you rename an object that you are viewing or editing (with @@Rename...@), " |
| 518 | "the title of the editor window immediately changes to the new name.") |
| 519 | ENTRY (U"Ways to control an editor window") |
| 520 | LIST_ITEM (U"• @@Click") |
| 521 | LIST_ITEM (U"• @@Shift-click") |
| 522 | LIST_ITEM (U"• @@Drag") |
| 523 | LIST_ITEM (U"• @@Shift-drag") |
| 524 | LIST_ITEM (U"• @@Time selection") |
| 525 | LIST_ITEM (U"• @@Keyboard shortcuts") |
| 526 | MAN_END |
| 527 | |
| 528 | MAN_BEGIN (U"Excitation", U"ppgb", 20030316) |
| 529 | INTRO (U"One of the @@types of objects@ in Praat. It represents the excitation pattern " |
| 530 | "of the basilar membrane in the inner ear.") |
| 531 | ENTRY (U"Inside an Excitation object") |
| 532 | NORMAL (U"With @Inspect, you will see the following attributes.") |
| 533 | TERM (U"%xmin = 0") |
| 534 | DEFINITION (U"minimum place or frequency (Bark).") |
| 535 | TERM (U"%xmax = 25.6 Bark") |
| 536 | DEFINITION (U"maximum place or frequency (Bark).") |
| 537 | TERM (U"%nx") |
| 538 | DEFINITION (U"number of places or frequencies.") |
| 539 | TERM (U"%dx = 25.6 / %nx") |
| 540 | DEFINITION (U"Place or frequency step (Bark).") |
| 541 | TERM (U"%x1 = %dx / 2") |
| 542 | DEFINITION (U"centre of first place or frequency band (Bark).") |
| 543 | TERM (U"%ymin = %ymax = %dy = %y_1 = 1; %ny = 1") |
| 544 | DEFINITION (U"dummies.") |
| 545 | TERM (U"%z [1]") |
| 546 | DEFINITION (U"intensity (sensation level) in phon.") |
| 547 | MAN_END |
| 548 | |
| 549 | MAN_BEGIN (U"Excitation: Formula...", U"ppgb", 20021206) |
| 550 | INTRO (U"A command for changing the data in all selected @Excitation objects.") |
| 551 | NORMAL (U"See the @Formulas tutorial for examples and explanations.") |
| 552 | MAN_END |
| 553 | |
| 554 | MAN_BEGIN (U"Excitation: Get loudness", U"ppgb", 19991016) |
| 555 | INTRO (U"A @@Query submenu|query@ to ask the selected @Excitation object for its loudness.") |
| 556 | ENTRY (U"Return value") |
| 557 | NORMAL (U"the loudness in sone units.") |
| 558 | ENTRY (U"Algorithm") |
| 559 | NORMAL (U"The loudness is defined as") |
| 560 | EQUATION (U"∫%df 2^^(%e(%f) - 40 phon) / 10^") |
| 561 | NORMAL (U"where %f is the frequency in Bark, and %e(%f) the excitation in phon. " |
| 562 | "For our discrete Excitation object, the loudness is computed as") |
| 563 | EQUATION (U"Δ%f ∑ 2^^(%e_%i - 40) / 10") |
| 564 | NORMAL (U"where Δ%f is the distance between the excitation channels (in Bark).") |
| 565 | MAN_END |
| 566 | |
| 567 | /*"Any object of one of the types Polygon, PointProcess, Sound, Pitch, Spectrum,\n" |
| 568 | "Spectrogram, Excitation, Cochleagram, VocalTract\n" |
| 569 | "is convertible to and from a Matrix.\n" |
| 570 | "This allows extra hacking and drawing possibilities.\n" |
| 571 | "For example, to square the y values of a Polygon, do the following:\n" |
| 572 | " select a Polygon, choose ##To Matrix#, choose ##Formula...#,\n" |
| 573 | " type \"self * if row=1 then 1 else self fi\", choose ##To Polygon#."*/ |
| 574 | |
| 575 | MAN_BEGIN (U"Formula...", U"ppgb", 19980319) |
| 576 | NORMAL (U"See @@Matrix: Formula...@") |
| 577 | MAN_END |
| 578 | |
| 579 | MAN_BEGIN (U"Frequency selection", U"ppgb", 20010402) |
| 580 | INTRO (U"The way to select a frequency domain in the @SpectrumEditor. " |
| 581 | "This works completely analogously to the @@time selection@ in other editors.") |
| 582 | MAN_END |
| 583 | |
| 584 | MAN_BEGIN (U"Get area...", U"ppgb", 20030216) |
| 585 | INTRO (U"A @@Query submenu|query@ to the selected tier object (@PitchTier, @IntensityTier, @DurationTier).") |
| 586 | ENTRY (U"Return value") |
| 587 | NORMAL (U"the area under the curve.") |
| 588 | ENTRY (U"Settings") |
| 589 | TERM (U"##From time (s)") |
| 590 | TERM (U"##To time (s)") |
| 591 | DEFINITION (U"the selected time domain. Values outside this domain are ignored. " |
| 592 | "If ##To time# is not greater than ##From time#, the entire time domain of the tier is considered.") |
| 593 | ENTRY (U"Algorithm") |
| 594 | NORMAL (U"The curve consists of a sequence of line segments. The contribution of the line segment from " |
| 595 | "(%t__1_, %f__1_) to (%t__2_, %f__2_) to the area is") |
| 596 | EQUATION (U"1/2 (%f__1_ + %f__2_) (%t__2_ – %t__1_)") |
| 597 | MAN_END |
| 598 | |
| 599 | MAN_BEGIN (U"Intensity", U"ppgb", 20030316) |
| 600 | INTRO (U"One of the @@types of objects@ in Praat.") |
| 601 | NORMAL (U"An Intensity object represents an intensity contour at linearly spaced time points " |
| 602 | "%t__%i_ = %t__1_ + (%i – 1) %dt, with values in dB SPL, i.e. dB relative to 2·10^^-5^ Pascal, " |
| 603 | "which is the normative auditory threshold for a 1000-Hz sine wave.") |
| 604 | MAN_END |
| 605 | |
| 606 | MAN_BEGIN (U"Intensity: Get maximum...", U"ppgb", 20200912) |
| 607 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 608 | ENTRY (U"Return value") |
| 609 | NORMAL (U"the maximum value within the specified time domain, expressed in dB.") |
| 610 | ENTRY (U"Settings") |
| 611 | TERM (U"##Time range (s)") |
| 612 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored. " |
| 613 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 614 | TERM (U"%%Interpolation") |
| 615 | DEFINITION (U"the interpolation method (#none, #parabolic, #cubic, #sinc70, #sinc700) of the @@vector peak interpolation@. " |
| 616 | "The standard is Parabolic because of the usual nonlinearity (logarithm) in the computation of intensity; " |
| 617 | "sinc interpolation would be too stiff and may give unexpected results.") |
| 618 | MAN_END |
| 619 | |
| 620 | MAN_BEGIN (U"Intensity: Get mean...", U"ppgb", 20041107) |
| 621 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 622 | ENTRY (U"Return value") |
| 623 | NORMAL (U"the mean (in dB) of the intensity values of the frames within a specified time domain.") |
| 624 | ENTRY (U"Settings") |
| 625 | TERM (U"##Time range (s)") |
| 626 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored. " |
| 627 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 628 | TERM (U"##Averaging method") |
| 629 | DEFINITION (U"the units in which the averaging is performed. If the method is #energy, " |
| 630 | "the returned dB value is based on the mean power (in Pa^2/s) between %t__1_ and %t__2_. " |
| 631 | "If the method is #dB, the returned value is the mean of the intensity curve in dB. " |
| 632 | "If the method is #sones, the returned value is in between these two, " |
| 633 | "and based on averaging properties of the human ear.") |
| 634 | ENTRY (U"Algorithm") |
| 635 | NORMAL (U"If the averaging method is #dB, the mean intensity between the times %t__1_ and %t__2_ is defined as") |
| 636 | EQUATION (U"1/(%t__2_ - %t__1_) ∫__%%t%1_^^%%t%2^ %x(%t) %dt") |
| 637 | NORMAL (U"where %x(%t) is the intensity as a function of time, in dB. If the method is #energy, the result is") |
| 638 | EQUATION (U"10 log__10_ { 1/(%t__2_ - %t__1_) ∫__%%t%1_^^%%t%2^ 10^^%x(%t)/10^ %dt }") |
| 639 | NORMAL (U"If the method is #sones, the result is") |
| 640 | EQUATION (U"10 log__2_ { 1/(%t__2_ - %t__1_) ∫__%%t%1_^^%%t%2^ 2^^%x(%t)/10^ %dt }") |
| 641 | ENTRY (U"Behaviour") |
| 642 | NORMAL (U"After you do @@Sound: To Intensity...@, the mean intensity of the resulting #Intensity, " |
| 643 | "if the averaging method is #energy, should be close to the mean SPL of the original #Sound, " |
| 644 | "which can be found with #Info.") |
| 645 | MAN_END |
| 646 | |
| 647 | MAN_BEGIN (U"Intensity: Get minimum...", U"ppgb", 20200912) |
| 648 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 649 | ENTRY (U"Return value") |
| 650 | NORMAL (U"the minimum value within a specified time domain, expressed in dB.") |
| 651 | ENTRY (U"Settings") |
| 652 | TERM (U"##Time range (s)") |
| 653 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored. " |
| 654 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 655 | TERM (U"##Interpolation") |
| 656 | DEFINITION (U"the interpolation method (#none, #parabolic, #cubic, #sinc70, #sinc700) of the @@vector peak interpolation@. " |
| 657 | "The standard is Parabolic because of the usual nonlinearity (logarithm) in the computation of intensity; " |
| 658 | "sinc interpolation would be too stiff and may give unexpected results.") |
| 659 | MAN_END |
| 660 | |
| 661 | MAN_BEGIN (U"Intensity: Get standard deviation...", U"ppgb", 20041107) |
| 662 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 663 | ENTRY (U"Return value") |
| 664 | NORMAL (U"the standard deviation (in dB) of the intensity values of the frames within a specified time domain.") |
| 665 | ENTRY (U"Settings") |
| 666 | TERM (U"%%Time range (s)") |
| 667 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored. " |
| 668 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 669 | ENTRY (U"Algorithm") |
| 670 | NORMAL (U"The standard deviation between the times %t__1_ and %t__2_ is defined as") |
| 671 | EQUATION (U"√ {1/(%t__2_ - %t__1_) ∫__%%t%1_^^%%t%2^ %dt (%x(%t) - %μ)^2}") |
| 672 | NORMAL (U"where %x(%t) is the intensity (in dB) as a function of time, and %μ its mean. " |
| 673 | "For our discrete Intensity object, the standard deviation is approximated by") |
| 674 | EQUATION (U"√ {1/(%n-1) ∑__%i=%m..%m+%n-1_ (%x__%i_ - %μ)^2}") |
| 675 | NORMAL (U"where %n is the number of frames between %t__1_ and %t__2_. Note the \"minus 1\".") |
| 676 | MAN_END |
| 677 | |
| 678 | MAN_BEGIN (U"Intensity: Get time of maximum...", U"ppgb", 20200912) |
| 679 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 680 | ENTRY (U"Return value") |
| 681 | NORMAL (U"the time (in seconds) associated with the maximum intensity within a specified time domain.") |
| 682 | ENTRY (U"Settings") |
| 683 | TERM (U"%%Time range (s)") |
| 684 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored, except for purposes of interpolation. " |
| 685 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 686 | TERM (U"%%Interpolation") |
| 687 | DEFINITION (U"the interpolation method (#none, #parabolic, #cubic, #sinc70, #sinc700) of the @@vector peak interpolation@. " |
| 688 | "The standard is Parabolic because of the usual nonlinearity (logarithm) in the computation of intensity; " |
| 689 | "sinc interpolation would be too stiff and may give unexpected results.") |
| 690 | MAN_END |
| 691 | |
| 692 | MAN_BEGIN (U"Intensity: Get time of minimum...", U"ppgb", 20200912) |
| 693 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 694 | ENTRY (U"Return value") |
| 695 | NORMAL (U"the time (in seconds) associated with the minimum intensity within a specified time domain.") |
| 696 | ENTRY (U"Settings") |
| 697 | TERM (U"##Time range (s)") |
| 698 | DEFINITION (U"the time range (%t__1_, %t__2_). Values outside this range are ignored, except for purposes of interpolation. " |
| 699 | "If %t__1_ is not less than %t__2_, the entire time domain of the Intensity is considered.") |
| 700 | TERM (U"##Interpolation") |
| 701 | DEFINITION (U"the interpolation method (#none, #parabolic, #cubic, #sinc70, #sinc700) of the @@vector peak interpolation@. " |
| 702 | "The standard is Parabolic because of the usual nonlinearity (logarithm) in the computation of intensity; " |
| 703 | "sinc interpolation would be too stiff and may give unexpected results.") |
| 704 | MAN_END |
| 705 | |
| 706 | MAN_BEGIN (U"Intensity: Get value at time...", U"ppgb", 20030916) |
| 707 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 708 | ENTRY (U"Return value") |
| 709 | NORMAL (U"the intensity (in dB) at a specified time. If %time is outside the frames of the Intensity, the result is 0.") |
| 710 | ENTRY (U"Settings") |
| 711 | TERM (U"##Time (s)") |
| 712 | DEFINITION (U"the time at which the value is to be evaluated.") |
| 713 | TERM (U"##Interpolation") |
| 714 | DEFINITION (U"the interpolation method, see @@vector value interpolation@. " |
| 715 | "The standard is “cubic” because of the usual nonlinearity (logarithm) in the computation of intensity; " |
| 716 | "sinc interpolation would be too stiff and may give unexpected results.") |
| 717 | MAN_END |
| 718 | |
| 719 | MAN_BEGIN (U"Intensity: Get value in frame...", U"ppgb", 19991016) |
| 720 | INTRO (U"A @@Query submenu|query@ to the selected @Intensity object.") |
| 721 | ENTRY (U"Setting") |
| 722 | TERM (U"##Frame number") |
| 723 | DEFINITION (U"the frame whose value is to be looked up.") |
| 724 | ENTRY (U"Return value") |
| 725 | NORMAL (U"the intensity value (in dB) in the specified frame. " |
| 726 | "If the index is less than 1 or greater than the number of frames, the result is 0; " |
| 727 | "otherwise, it is %z [1] [%%frame number%].") |
| 728 | MAN_END |
| 729 | |
| 730 | MAN_BEGIN (U"Intensity: To IntensityTier", U"ppgb", 19970321) |
| 731 | INTRO (U"A command to convert each selected @Intensity object to an @IntensityTier.") |
| 732 | ENTRY (U"Behaviour") |
| 733 | NORMAL (U"Every sample in the @Intensity object is copied to a point on the @IntensityTier.") |
| 734 | ENTRY (U"Postconditions") |
| 735 | DEFINITION (U"Equal time domains:") |
| 736 | LIST_ITEM (U"• %result. %xmin == %intensity. %xmin") |
| 737 | LIST_ITEM (U"• %result. %xmax == %intensity. %xmax") |
| 738 | DEFINITION (U"Equal number of points:") |
| 739 | LIST_ITEM (U"• %result. %points. %size == %intensity. %nx") |
| 740 | NORMAL (U"For all points %i = 1 ... %intensity. %nx:") |
| 741 | DEFINITION (U" Explicit times:") |
| 742 | LIST_ITEM (U" • %result. %points. %item [%i]. %time == %intensity. %x1 + (%i – 1) * %intensity. %dx") |
| 743 | DEFINITION (U" Equal number of points:") |
| 744 | LIST_ITEM (U" • %result. %points. %item [%i]. %value == %intensity. %z [1] [%i]") |
| 745 | MAN_END |
| 746 | |
| 747 | MAN_BEGIN (U"Intensity & PointProcess: To IntensityTier...", U"ppgb", 20101230) |
| 748 | INTRO (U"A command to copy information from an @Intensity, at times specified by a @PointProcess, " |
| 749 | "to points on an @IntensityTier.") |
| 750 | ENTRY (U"Behaviour") |
| 751 | NORMAL (U"For all the times of the points in the PointProcess, an intensity is computed from the " |
| 752 | "information in the Intensity object, by linear interpolation.") |
| 753 | MAN_END |
| 754 | |
| 755 | MAN_BEGIN (U"IntensityTier", U"ppgb", 20101230) |
| 756 | INTRO (U"One of the @@types of objects@ in Praat. " |
| 757 | "An IntensityTier object represents a time-stamped intensity contour, i.e., it contains a series of (%time, %intensity) points. " |
| 758 | "The intensity values are in dB.") |
| 759 | NORMAL (U"For examples, see @@Source-filter synthesis@.") |
| 760 | ENTRY (U"IntensityTier commands") |
| 761 | NORMAL (U"Creation:") |
| 762 | LIST_ITEM (U"From scratch:") |
| 763 | LIST_ITEM (U"• @@Create IntensityTier...") |
| 764 | LIST_ITEM (U"• @@IntensityTier: Add point...") |
| 765 | LIST_ITEM (U"Copy from another object:") |
| 766 | LIST_ITEM (U"• @@Intensity: To IntensityTier@: trivial copying of linearly spaced points.") |
| 767 | LIST_ITEM (U"• @@Intensity & PointProcess: To IntensityTier...@: copying interpolated values at specified points.") |
| 768 | LIST_ITEM (U"• @@PointProcess: Up to IntensityTier...@: equal values at specified points.") |
| 769 | NORMAL (U"Viewing and editing:") |
| 770 | LIST_ITEM (U"• @IntensityTierEditor") |
| 771 | NORMAL (U"Conversion:") |
| 772 | LIST_ITEM (U"• @@IntensityTier: Down to PointProcess@: copy times.") |
| 773 | NORMAL (U"Synthesis (see @@Source-filter synthesis@):") |
| 774 | LIST_ITEM (U"• @@Sound & IntensityTier: Multiply@") |
| 775 | NORMAL (U"Queries:") |
| 776 | LIST_ITEM (U"• @@Get low index from time...") |
| 777 | LIST_ITEM (U"• @@Get high index from time...") |
| 778 | LIST_ITEM (U"• @@Get nearest index from time...") |
| 779 | NORMAL (U"Modification:") |
| 780 | LIST_ITEM (U"• @@Remove point...") |
| 781 | LIST_ITEM (U"• @@Remove point near...") |
| 782 | LIST_ITEM (U"• @@Remove points between...") |
| 783 | LIST_ITEM (U"• @@IntensityTier: Add point...@") |
| 784 | MAN_END |
| 785 | |
| 786 | MAN_BEGIN (U"IntensityTier: Add point...", U"ppgb", 20010410) |
| 787 | INTRO (U"A command to add a point to each selected @IntensityTier.") |
| 788 | ENTRY (U"Settings") |
| 789 | TERM (U"##Time (s)") |
| 790 | DEFINITION (U"the time at which a point is to be added.") |
| 791 | TERM (U"##Intensity (dB)") |
| 792 | DEFINITION (U"the intensity value of the requested new point.") |
| 793 | ENTRY (U"Behaviour") |
| 794 | NORMAL (U"The tier is modified so that it contains the new point. " |
| 795 | "If a point at the specified time was already present in the tier, nothing happens.") |
| 796 | MAN_END |
| 797 | |
| 798 | MAN_BEGIN (U"IntensityTier: Down to PointProcess", U"ppgb", 20010410) |
| 799 | INTRO (U"A command to degrade every selected @IntensityTier to a @PointProcess.") |
| 800 | ENTRY (U"Behaviour") |
| 801 | NORMAL (U"The times of all the points are trivially copied, and so is the time domain. The intensity information is lost.") |
| 802 | MAN_END |
| 803 | |
| 804 | MAN_BEGIN (U"IntensityTierEditor", U"ppgb", 20110128) |
| 805 | INTRO (U"One of the @editors in the Praat program, for viewing and editing an @IntensityTier object. " |
| 806 | "To create a IntensityTierEditor window, select an IntensityTier and click ##View & Edit#.") |
| 807 | MAN_END |
| 808 | |
| 809 | MAN_BEGIN (U"Command-click", U"ppgb", 20210228) |
| 810 | INTRO (U"To %%Command-click% means to click while the %%Command key% is pressed. " |
| 811 | "The Command key is the key that is marked with an apple or the word \"command\" on Apple keyboards, " |
| 812 | "or to the key that is marked \"Ctrl\" if you are on a Windows or Linux computer.") |
| 813 | MAN_END |
| 814 | |
| 815 | MAN_BEGIN (U"Keyboard shortcuts", U"ppgb", 20220701) // 2026 |
| 816 | INTRO (U"To accelerate menu commands in Praat, you can sometimes choose them with the keyboard, " |
| 817 | "sometimes while also pressing the Command key, Option key, or Shift key. " |
| 818 | "All of these commands can also be chosen from a menu.") |
| 819 | NORMAL (U"When mentioning the %%Command key%, this manual refers to the key that is marked with an apple " |
| 820 | "or the word \"command\" on Apple keyboards " |
| 821 | "or to the key that is marked \"Ctrl\" if you are on a Windows or Linux computer.") |
| 822 | NORMAL (U"When mentioning the %%Option key%, this manual refers to the key that is marked with " |
| 823 | "the word \"option\" on Apple keyboards or with \"Alt\" if you are on Windows or Linux.") |
| 824 | NORMAL (U"When mentioning the %%Extra-Command key%, this manual refers to " |
| 825 | "pressing the “Command” and “Shift” keys together (on Windows) " |
| 826 | "or pressing the “Command” and “Option” keys together (on the Mac). " |
| 827 | "In Praat, Extra-Command is sometimes used " |
| 828 | "for destructive actions that are the reverse of the actions invoked by using the Command key only. " |
| 829 | "For instance, if Command-T means \"add a target at the cursor position\", " |
| 830 | "Extra-Command-T may mean \"remove the selected targets\".") |
| 831 | ENTRY (U"Shortcuts") |
| 832 | LIST_ITEM (U"Command-A: Zoom all") |
| 833 | LIST_ITEM (U"Command-C: Copy (the selected text, or the selected sound, or the selected part of the Picture window)") |
| 834 | LIST_ITEM (U"Command-D (in TextGrid window): Align interval") |
| 835 | LIST_ITEM (U"Command-D (in Manipulation window): Insert duration point at cursor") |
| 836 | LIST_ITEM (U"Extra-Command-D (in Manipulation window): Remove selected duration points") |
| 837 | LIST_ITEM (U"Command-E (in Picture window): Erase all") |
| 838 | LIST_ITEM (U"Command-E (in OT windows): Edit ranking") |
| 839 | LIST_ITEM (U"Command-F: Find") |
| 840 | LIST_ITEM (U"Extra-Command-F: Replace (yes, this is destructive...)") |
| 841 | LIST_ITEM (U"Command-G: Find again") |
| 842 | LIST_ITEM (U"Extra-Command-G: Replace again (yes, this is destructive...)") |
| 843 | LIST_ITEM (U"Command-H (in script window): Paste history") |
| 844 | LIST_ITEM (U"Extra-Command-H: Move cursor to maximum pitch") |
| 845 | LIST_ITEM (U"Command-I: Zoom in") |
| 846 | LIST_ITEM (U"Command-L (in Objects window): @@Open long sound file...@") |
| 847 | LIST_ITEM (U"Command-L (in sound windows): @@Intro 3.6. Viewing a spectral slice|View spectral slice@") |
| 848 | LIST_ITEM (U"Extra-Command-L: Move cursor to minimum pitch") |
| 849 | LIST_ITEM (U"Command-M: Search Praat manual...") |
| 850 | LIST_ITEM (U"Command-N: Zoom to selection") |
| 851 | LIST_ITEM (U"Command-O (in Objects window): @@Read from file...@") |
| 852 | LIST_ITEM (U"Command-O (in sound windows): Zoom out") |
| 853 | LIST_ITEM (U"Command-P (in Picture window): Print") |
| 854 | LIST_ITEM (U"Command-P (in PointProcess window): Add point at cursor") |
| 855 | LIST_ITEM (U"Command-P (in Manipulation window): Add pulse at cursor") |
| 856 | LIST_ITEM (U"Extra-Command-P (in Manipulation window): Remove selected pulses") |
| 857 | LIST_ITEM (U"Command-Q: Quit Praat") |
| 858 | LIST_ITEM (U"Command-R (in Script window): Run") |
| 859 | LIST_ITEM (U"Command-R: Reverse selection") |
| 860 | LIST_ITEM (U"Command-S: Save") |
| 861 | LIST_ITEM (U"Command-T (in script window): Run selection") |
| 862 | LIST_ITEM (U"Command-T (in TextGrid window): Transcribe interval") |
| 863 | LIST_ITEM (U"Command-T (in PitchTier/DurationTier/RealTier/FormantGrid window): Add point at cursor") |
| 864 | LIST_ITEM (U"Command-T (in Manipulation window): Add pitch point at cursor") |
| 865 | LIST_ITEM (U"Extra-Command-T (in Manipulation window): Remove selected pitch points") |
| 866 | LIST_ITEM (U"Command-U: @@Calculator...@") |
| 867 | LIST_ITEM (U"Command-V (in text window or TextGrid window): Paste (insert over the selected text") |
| 868 | LIST_ITEM (U"Command-V (in Sound window): Paste after selection (insert the sound clipboard after the selected sound)") |
| 869 | LIST_ITEM (U"Extra-Command-V (in Sound window): Paste over selection (insert the sound clipboard over the selected sound)") |
| 870 | LIST_ITEM (U"Command-W: Close window") |
| 871 | LIST_ITEM (U"Command-X: Cut (the selected text or the selected sound)") |
| 872 | LIST_ITEM (U"Command-Y: Redo") |
| 873 | LIST_ITEM (U"Command-Z: Undo") |
| 874 | LIST_ITEM (U"Command-0 (in sound windows): Move cursor to nearest zero crossing") |
| 875 | LIST_ITEM (U"Command-0 (in OT windows): Evaluate with zero noise") |
| 876 | LIST_ITEM (U"Command-1 through Command-8: Add interval on tier 1, 2, 3, 4, 5, 6, 7 or 8.") |
| 877 | LIST_ITEM (U"Extra-Command-1 through Extra-Command-8 (TextGrid window): Add boundary on tier 1, 2, 3, 4, 5, 6, 7 or 8 (you can also just click in the circle).") |
| 878 | LIST_ITEM (U"Command-2 (in Manipulation window): Stylize pitch (2 semitones)") |
| 879 | LIST_ITEM (U"Command-2 (in OT windows): Evaluate with noise 2.0") |
| 880 | LIST_ITEM (U"Command-4 (in Manipulation window): Interpolate quadratically (4 points)") |
| 881 | LIST_ITEM (U"Extra-Command-9 (TextGrid window): Add a boundary on all tiers.") |
| 882 | LIST_ITEM (U"Shift-Command-?: Local help") |
| 883 | LIST_ITEM (U"Command-,: Move start of selection to nearest zero crossing") |
| 884 | LIST_ITEM (U"Command-.: Move end of selection to nearest zero crossing") |
| 885 | LIST_ITEM (U"Command-F1: Formant listing") |
| 886 | LIST_ITEM (U"F1: Get first formant") |
| 887 | LIST_ITEM (U"F2: Get second formant") |
| 888 | LIST_ITEM (U"F3: Get third formant") |
| 889 | LIST_ITEM (U"F4: Get fourth formant") |
| 890 | LIST_ITEM (U"On Windows and Linux: F5: Get pitch") |
| 891 | LIST_ITEM (U"On Windows and Linux: Command-F5: Pitch listing") |
| 892 | LIST_ITEM (U"On Windows and Linux: Option-F5: Get minimum pitch") |
| 893 | LIST_ITEM (U"On Windows and Linux: Shift-F5: Get maximum pitch") |
| 894 | LIST_ITEM (U"F6: Get cursor") |
| 895 | LIST_ITEM (U"F7: Get spectral power at cursor cross") |
| 896 | LIST_ITEM (U"F8: Get intensity") |
| 897 | LIST_ITEM (U"Command-F8: Intensity listing") |
| 898 | LIST_ITEM (U"Option-F8: Get minimum intensity") |
| 899 | LIST_ITEM (U"Shift-F8: Get maximum intensity") |
| 900 | LIST_ITEM (U"Command-F9: Pulse listing") |
| 901 | LIST_ITEM (U"On the Mac: F10: Get pitch") |
| 902 | LIST_ITEM (U"On the Mac: Command-F10: Pitch listing") |
| 903 | LIST_ITEM (U"On the Mac: Option-F10: Get minimum pitch") |
| 904 | LIST_ITEM (U"On the Mac: Shift-F10: Get maximum pitch") |
| 905 | LIST_ITEM (U"F11: Voice report") |
| 906 | LIST_ITEM (U"F12: Log 1") |
| 907 | LIST_ITEM (U"Shift-F12: Log 2") |
| 908 | LIST_ITEM (U"Option-F12: Log script 3") |
| 909 | LIST_ITEM (U"Command-F12: Log script 4 [note: Command-Fxx combinations are not available to apps on all computers]") |
| 910 | LIST_ITEM (U"Tab (in sound windows): Play selection") |
| 911 | LIST_ITEM (U"Shift-Tab (in sound windows): Play window") |
| 912 | LIST_ITEM (U"Arrow-up (in sound windows): Select earlier") |
| 913 | LIST_ITEM (U"Arrow-down (in sound windows): Select later") |
| 914 | LIST_ITEM (U"Shift-Arrow-up (in sound windows): Move start of selection left") |
| 915 | LIST_ITEM (U"Shift-Arrow-down (in sound windows): Move start of selection right") |
| 916 | LIST_ITEM (U"Command-Arrow-up (in sound windows): Move end of selection left") |
| 917 | LIST_ITEM (U"Command-Arrow-down (in sound windows): Move end of selection right") |
| 918 | LIST_ITEM (U"Page-up (in sound windows): Scroll page back") |
| 919 | LIST_ITEM (U"Page-down (in sound windows): Scroll page forward") |
| 920 | LIST_ITEM (U"Escape: Interrupt playing") |
| 921 | MAN_END |
| 922 | |
| 923 | MAN_BEGIN (U"Log files", U"ppgb", 20230122) |
| 924 | INTRO (U"With some commands in the @@Analyses menu@ of the @SoundEditor and @TextGridEditor, " |
| 925 | "you can write combined information about times, pitch values, formants, and intensities " |
| 926 | "to the @@Info window@ and/or to a log file.") |
| 927 | NORMAL (U"A log file is a text file on disk. It consists of a number of similar lines, " |
| 928 | "whose format you determine with the log settings in the Analyses menu.") |
| 929 | NORMAL (U"Every time you press @@Keyboard shortcuts|F12@ (or choose ##Log 1# from the Analysis menu), " |
| 930 | "Praat will write a line to the Info window and/or to log file 1. " |
| 931 | "If you press @@Keyboard shortcuts|Shift-F12@ (or choose ##Log 2# from the Analysis menu), " |
| 932 | "Praat will write a line to the Info window and/or to log file 2.") |
| 933 | NORMAL (U"With the ##log settings# command window, you determine the following:") |
| 934 | TERM (U"##Write log 1 to") |
| 935 | DEFINITION (U"this determines whether your log line will be written to log file 1 only, to the Info window only, or to both.") |
| 936 | TERM (U"##Log file 1") |
| 937 | DEFINITION (U"the name of the log file. Click Browse to select a file to write to. " |
| 938 | "On most platforms you can also use a home-relative name such as `~/Desktop/pitchLog.txt`.") |
| 939 | TERM (U"##Log 1 format") |
| 940 | DEFINITION (U"the format of the line that Praat will write. See below.") |
| 941 | NORMAL (U"The same goes for log file 2.") |
| 942 | ENTRY (U"Usage") |
| 943 | NORMAL (U"The logging facility has been implemented in Praat especially for former users of Kay CSL, " |
| 944 | "who have been used to doing it for years and like to continue doing it in Praat. " |
| 945 | "Otherwise, you may prefer to use the @TextGridEditor to mark time points and run " |
| 946 | "an automatic analysis afterwards.") |
| 947 | NORMAL (U"If you do want to use the logging facility, you typically start by deleting any old " |
| 948 | "log file (by choosing ##Delete log file 1# or ##Delete log file 2#), if you want to re-use " |
| 949 | "the file name. Otherwise, you can change the log file name (with ##Log settings...#). " |
| 950 | "After this, you will move the cursor to various time locations and press @@Keyboard shortcuts|F12@ (or @@Keyboard shortcuts|Shift-F12@) " |
| 951 | "each time, so that information about the current time will be written to the log file.") |
| 952 | ENTRY (U"Example 1: pitch logging") |
| 953 | NORMAL (U"Suppose you want to log the time of the cursor and the pitch value at the cursor. " |
| 954 | "You could use the following log format:") |
| 955 | CODE (U"Time \'time:6\' seconds, pitch \'f0:2\' hertz") |
| 956 | NORMAL (U"If you now click at 3.456789876 seconds, and the pitch happens to be 355.266 hertz " |
| 957 | "at that time, the following line will be appended to the log file and/or to the Info window:") |
| 958 | CODE (U"Time 3.456790 seconds, pitch 355.27 hertz.") |
| 959 | NORMAL (U"The parts \":6\" and \":2\" denote the number of digits after the decimal point. " |
| 960 | "If you leave them out, the values will be written with a precision of 17 digits.") |
| 961 | NORMAL (U"The words \'time\' and \'f0\' mean exactly the same as the result of the commands " |
| 962 | "##Get cursor# and ##Get pitch#. Therefore, if instead of setting a cursor line you selected a larger " |
| 963 | "piece of the sound, \'time\' will give the centre of the selection and \'f0\' will give the mean pitch " |
| 964 | "in the selection.") |
| 965 | NORMAL (U"Beware of the following pitfall: if your pitch units are not hertz, but semitones, " |
| 966 | "then \'f0\' will give the result in semitones. A format as in this example will then be misleading.") |
| 967 | ENTRY (U"Example 2: formant logging") |
| 968 | NORMAL (U"Suppose you want to log the start and finish of the selection, its duration, and the mean values " |
| 969 | "of the first three formants, all separated by tab stops for easy importation into Microsoft® Excel™. " |
| 970 | "You could use the following log format:") |
| 971 | CODE (U"\'t1:4\'\'tab$\'\'t2:4\'\'tab$\'\'f1:0\'\'tab$\'\'f2:0\'\'tab$\'\'f3:0\'") |
| 972 | NORMAL (U"You see that \'t1\' and \'t2\' are the start and finish of the selection, respectively, " |
| 973 | "and that they are written with 4 digits after the decimal point. By using \":0\", the three formant values " |
| 974 | "are rounded to whole numbers in hertz. The word `tab$` is the tab stop.") |
| 975 | ENTRY (U"Loggable values") |
| 976 | NORMAL (U"The following values can be logged:") |
| 977 | LIST_ITEM (U"`time`: the time of the cursor, or the centre of the selection.") |
| 978 | LIST_ITEM (U"`t1`: the start of the selection (\"B\").") |
| 979 | LIST_ITEM (U"`t2`: the end of the selection (\"E\").") |
| 980 | LIST_ITEM (U"`dur`: the duration of the selection.") |
| 981 | LIST_ITEM (U"`freq`: the frequency at the frequency cursor.") |
| 982 | LIST_ITEM (U"`f0`: the pitch at the cursor time, or the mean pitch in the selection.") |
| 983 | LIST_ITEM (U"`f1`, `f2`, `f3`, `f4`, `f5`: the first/second/third/fourth/fifth formant at the cursor time, " |
| 984 | "or the mean first/second/third/fourth/fifth formant in the selection.") |
| 985 | LIST_ITEM (U"`b1`, `b2`, `b3`, `b4`, `b5`: the bandwidth of the first/second/third/fourth/fifth formant " |
| 986 | "at the cursor time or at the centre of the selection.") |
| 987 | LIST_ITEM (U"`intensity`: the intensity at the cursor time, or the mean intensity in the selection, in dB.") |
| 988 | LIST_ITEM (U"`power`: the spectral power at the cursor cross, in Pa^2/Hz.") |
| 989 | LIST_ITEM (U"`tab$`: the tab stop.") |
| 990 | LIST_ITEM (U"`editor$`: the title of the editor window (i.e. the name of the visible Sound or TextGrid).") |
| 991 | ENTRY (U"More flexibility in logging") |
| 992 | NORMAL (U"You may sometimes require information in your log file that cannot be generated directly " |
| 993 | "by the loggable values above. Suppose, for instance, that you want to log the values for F1 and F2-F1 " |
| 994 | "at the points where you click. You could write the following script:") |
| 995 | CODE (U"f1 = Get first formant") |
| 996 | CODE (U"f2 = Get second formant") |
| 997 | CODE (U"f21 = f2 - f1") |
| 998 | CODE (U"appendInfoLine: fixed$ (f1, 0), \" \", fixed$ (f21, 0)") |
| 999 | CODE (U"appendFileLine: \"D:\\Praat logs\\Formant log.txt\", fixed$ (f1, 0), tab$, fixed$ (f21, 0)") |
| 1000 | NORMAL (U"With this script, the information would be appended both to the Info window and to the " |
| 1001 | "file \"Formant log.txt\" on your desktop.") |
| 1002 | NORMAL (U"You can make this script accessible with @@Keyboard shortcuts|Option-F12@ (or @@Keyboard shortcuts|Command-F12@) " |
| 1003 | "by saving the script and specifying the name of the script file in the ##Log script 3# (or #4) field " |
| 1004 | "in the ##Log settings...# window.") |
| 1005 | NORMAL (U"These scripts may take arguments. Suppose, for instance, that you want to specify a vowel symbol " |
| 1006 | "as you press @@Keyboard shortcuts|Option-F12@. The following script will take care of that:") |
| 1007 | CODE (U"form: \"Save vowel and formants\"") |
| 1008 | CODE1 (U"word: \"Vowel\", \"a\"") |
| 1009 | CODE (U"endform") |
| 1010 | CODE (U"f1 = Get first formant") |
| 1011 | CODE (U"f2 = Get second formant") |
| 1012 | CODE (U"f21 = f2 - f1") |
| 1013 | CODE (U"appendInfoLine: vowel$, \" \", fixed$ (f1, 0), \" \", fixed$ (f21, 0)") |
| 1014 | CODE (U"appendFileLine: \"~/Praat logs/Vowels and formants log\", vowel$, tab$, fixed$ (f1, 0), tab$, fixed$ (f21, 0)") |
| 1015 | NORMAL (U"Beware of the following pitfall: because of the nature of scripts, you should not try to do this " |
| 1016 | "when you have two editor windows with the same name. We cannot predict which of the two windows " |
| 1017 | "will answer the #Get queries...") |
| 1018 | MAN_END |
| 1019 | |
| 1020 | MAN_BEGIN (U"Manipulation", U"ppgb", 20030316) // 2023 |
| 1021 | INTRO (U"One of the @@types of objects@ in Praat, for changing the pitch and duration contours of a sound.") |
| 1022 | ENTRY (U"Inside a manipulation object") |
| 1023 | NORMAL (U"With @Inspect, you will see the following attributes:") |
| 1024 | TERM (U"##timeStep") |
| 1025 | DEFINITION (U"the time step (or %%frame length%) used in the pitch analysis. A common value is 0.010 seconds.") |
| 1026 | TERM (U"##pitchFloor") |
| 1027 | DEFINITION (U"the minimum pitch frequency considered in the pitch analysis. A common value is 75 hertz.") |
| 1028 | TERM (U"##pitchCeiling") |
| 1029 | DEFINITION (U"the maximum pitch frequency considered in the pitch analysis. A common value is 600 hertz.") |
| 1030 | NORMAL (U"A Manipulation object also contains the following smaller objects:") |
| 1031 | LIST_ITEM (U"1. The original @Sound.") |
| 1032 | LIST_ITEM (U"2. A @PointProcess representing glottal pulses.") |
| 1033 | LIST_ITEM (U"3. A @PitchTier.") |
| 1034 | LIST_ITEM (U"4. A @DurationTier.") |
| 1035 | ENTRY (U"Analysis") |
| 1036 | NORMAL (U"When a Manipulation object is created from a sound, the following steps are performed:") |
| 1037 | LIST_ITEM (U"1. A pitch analysis is performed on the original sound, with the method of @@Sound: To Pitch...@. " |
| 1038 | "This uses the time step, pitch floor, and pitch ceiling parameters.") |
| 1039 | LIST_ITEM (U"2. The information of the resulting pitch contour (frequency and voiced/unvoiced decisions) " |
| 1040 | "is used to posit glottal pulses where the original sound contains much energy. " |
| 1041 | "The method is the same as in @@Sound & Pitch: To PointProcess (cc)@.") |
| 1042 | LIST_ITEM (U"3. The pitch contour is converted to a pitch tier with many points (targets), " |
| 1043 | "with the method of @@Pitch: To PitchTier@.") |
| 1044 | LIST_ITEM (U"4. An empty @DurationTier is created.") |
| 1045 | ENTRY (U"Resynthesis") |
| 1046 | TERM (U"A Manipulation object can produce Sound input. This Sound can be computed in several ways:") |
| 1047 | LIST_ITEM (U"• @@overlap-add@: from original sound + pulses + pitch tier + duration tier;") |
| 1048 | LIST_ITEM (U"• #LPC: from LPC (from original sound) + pulses + pitch tier;") |
| 1049 | LIST_ITEM (U"• from the pulses only, as a pulse train or hummed;") |
| 1050 | LIST_ITEM (U"• from the pitch tier only, as a pulse train or hummed.") |
| 1051 | MAN_END |
| 1052 | |
| 1053 | MAN_BEGIN (U"Manipulation: Extract duration tier", U"ppgb", 20010330) |
| 1054 | INTRO (U"A command to extract a copy of the duration information in each selected @Manipulation object into a new @DurationTier object.") |
| 1055 | MAN_END |
| 1056 | |
| 1057 | MAN_BEGIN (U"Manipulation: Extract original sound", U"ppgb", 20010330) |
| 1058 | INTRO (U"A command to copy the original sound in each selected @Manipulation object to a new @Sound object.") |
| 1059 | MAN_END |
| 1060 | |
| 1061 | MAN_BEGIN (U"Manipulation: Extract pitch tier", U"ppgb", 20010330) |
| 1062 | INTRO (U"A command to extract a copy of the pitch information in each selected @Manipulation object into a new @PitchTier object.") |
| 1063 | MAN_END |
| 1064 | |
| 1065 | MAN_BEGIN (U"Manipulation: Extract pulses", U"ppgb", 20010330) |
| 1066 | INTRO (U"A command to extract a copy of the vocal-pulse information in each selected @Manipulation object into a new @PointProcess object.") |
| 1067 | MAN_END |
| 1068 | |
| 1069 | MAN_BEGIN (U"Manipulation: Play (overlap-add)", U"ppgb", 20070722) |
| 1070 | INTRO (U"A command to play each selected @Manipulation object, resynthesized with the @@overlap-add@ method.") |
| 1071 | MAN_END |
| 1072 | |
| 1073 | MAN_BEGIN (U"Manipulation: Get resynthesis (overlap-add)", U"ppgb", 20070722) |
| 1074 | INTRO (U"A command to extract the sound from each selected @Manipulation object, resynthesized with the @@overlap-add@ method.") |
| 1075 | MAN_END |
| 1076 | |
| 1077 | MAN_BEGIN (U"Manipulation: Replace duration tier", U"ppgb", 20030216) |
| 1078 | INTRO (U"You can replace the duration tier that you see in your @Manipulation object " |
| 1079 | "with a separate @DurationTier object, for instance one that you extracted from another Manipulation " |
| 1080 | "or one that you created with @@Create DurationTier...@.") |
| 1081 | NORMAL (U"To do this, select your Manipulation object together with the @DurationTier object and click ##Replace duration tier#.") |
| 1082 | MAN_END |
| 1083 | |
| 1084 | MAN_BEGIN (U"Manipulation: Replace pitch tier", U"ppgb", 20030216) |
| 1085 | INTRO (U"You can replace the pitch tier that you see in your @Manipulation object " |
| 1086 | "with a separate @PitchTier object, for instance one that you extracted from another Manipulation " |
| 1087 | "or one that you created with @@Create PitchTier...@.") |
| 1088 | NORMAL (U"To do this, select your Manipulation object together with the @PitchTier object and click ##Replace pitch tier#.") |
| 1089 | MAN_END |
| 1090 | |
| 1091 | MAN_BEGIN (U"Manipulation: Replace pulses", U"ppgb", 20010330) |
| 1092 | INTRO (U"A command to replace the vocal-pulse information in the selected @Manipulation object with the selected @PointProcess object.") |
| 1093 | MAN_END |
| 1094 | |
| 1095 | MAN_BEGIN (U"Manipulation: Replace original sound", U"ppgb", 20010330) |
| 1096 | INTRO (U"A command to replace the original sound in the selected @Manipulation object with the selected @Sound object.") |
| 1097 | MAN_END |
| 1098 | |
| 1099 | MAN_BEGIN (U"ManipulationEditor", U"ppgb", 20030316) // 2023-06-08 |
| 1100 | INTRO (U"One of the @Editors in Praat, for viewing and manipulating a @Manipulation object.") |
| 1101 | ENTRY (U"Objects") |
| 1102 | NORMAL (U"The editor shows:") |
| 1103 | LIST_ITEM (U"• The original @Sound.") |
| 1104 | LIST_ITEM (U"• The @PointProcess that represents the glottal %pulses. " |
| 1105 | "You can edit it for improving the pitch analysis.") |
| 1106 | LIST_ITEM (U"• A pitch contour based on the locations of the pulses, for comparison (drawn as grey dots). " |
| 1107 | "Changes shape if you edit the pulses.") |
| 1108 | LIST_ITEM (U"• The @PitchTier that determines the pitch contour of the resynthesized @Sound (drawn as blue circles). " |
| 1109 | "At the creation of the @Manipulation object, it is computed from the original pitch contour. " |
| 1110 | "You can manipulate it by simplifying it (i.e., removing targets), " |
| 1111 | "or by moving parts of it up and down, and back and forth.") |
| 1112 | LIST_ITEM (U"• A @DurationTier for manipulating the relative durations of the voiced parts of the sound.") |
| 1113 | ENTRY (U"Playing") |
| 1114 | NORMAL (U"To play (a part of) the %resynthesized sound (by any of the methods shown in the #Synth menu, " |
| 1115 | "like @@overlap-add@ and #LPC), @click any of the 1 to 8 buttons below and above the drawing area " |
| 1116 | "or use the commands from the Play menu.") |
| 1117 | NORMAL (U"To play the %original sound instead, use ##Shift-click#.") |
| 1118 | ENTRY (U"Pulses") |
| 1119 | TERM (U"To add:") |
| 1120 | DEFINITION (U"#click at the desired time location, and choose ##Add pulse at cursor# or type @@Keyboard shortcuts|Command-P@.") |
| 1121 | TERM (U"To remove:") |
| 1122 | DEFINITION (U"make a @@time selection@, and choose ##Remove pulse(s)# or type @@Keyboard shortcuts|Option-Command-P@. " |
| 1123 | "If there is no selection, the pulse nearest to the cursor is removed.") |
| 1124 | ENTRY (U"Pitch points") |
| 1125 | TERM (U"To add one at a specified %%time and frequency%:") |
| 1126 | DEFINITION (U"#click at the desired time-frequency location, and choose ##Add pitch point at cursor# or type @@Keyboard shortcuts|Command-t@.") |
| 1127 | TERM (U"To add one at a specified %time only:") |
| 1128 | DEFINITION (U"#click at the desired time, and choose ##Add pitch point at time slice#. ManipulationEditor tries to compute the frequency from the " |
| 1129 | "intervals between the pulses, basically by a median-of-three method.") |
| 1130 | TERM (U"To remove:") |
| 1131 | DEFINITION (U"make a @@time selection@, and choose ##Remove pitch point(s)# or type @@Keyboard shortcuts|Option-Command-t@. " |
| 1132 | "If there is no selection, the pitch point nearest to the cursor is removed.") |
| 1133 | TERM (U"To move %some:") |
| 1134 | DEFINITION (U"make a @@time selection@ (the points become red) and ##Shift-drag# the points across the window. " |
| 1135 | "You cannot drag them across adjacent points, or below 50 Hz, or above the maximum frequency. " |
| 1136 | "You can only drag them horizontally if the %%dragging strategy% is ##All# or ##Only horizontal#, " |
| 1137 | "and you can drag them vertically if the dragging strategy is not ##Only horizontal#. " |
| 1138 | "You can change the dragging strategy with ##Set pitch dragging strategy...# from the #Pitch menu.") |
| 1139 | TERM (U"To move %one:") |
| 1140 | DEFINITION (U"@drag that point across the window. " |
| 1141 | "You can only drag it horizontally if the dragging strategy is not ##Only vertical#, " |
| 1142 | "and you can drag it vertically if the dragging strategy is not ##Only horizontal#.") |
| 1143 | ENTRY (U"Duration points") |
| 1144 | NORMAL (U"Work pretty much the same as pitch points.") |
| 1145 | ENTRY (U"Stylization") |
| 1146 | NORMAL (U"Before editing the Pitch points, you may want to reduce their number by choosing any of the #Stylize " |
| 1147 | "commands from the #Pitch menu.") |
| 1148 | MAN_END |
| 1149 | |
| 1150 | MAN_BEGIN (U"Matrix", U"ppgb", 20240712) |
| 1151 | INTRO (U"One of the @@types of objects@ in Praat. " |
| 1152 | "A Matrix object represents a function %z (%x, %y) " |
| 1153 | "on the domain [%x__%min_, %x__%max_] × [%y__%min_, %y__%max_]. " |
| 1154 | "The domain has been sampled in the %x and %y directions " |
| 1155 | "with constant sampling intervals (%dx and %dy) along each direction. " |
| 1156 | "The samples are thus %z [%i_%y] [%i_%x], %i_%x = 1 ... %n_%x, %i_%y = 1 ... %n_%y. " |
| 1157 | "The samples represent the function values %z (%x__1_ + (%i_%x - 1) %dx, %y__1_ + (%i_%y - 1) %dy).") |
| 1158 | ENTRY (U"Matrix commands") |
| 1159 | NORMAL (U"Creation:") |
| 1160 | LIST_ITEM (U"• @@Create Matrix...") |
| 1161 | LIST_ITEM (U"• @@Create simple Matrix...") |
| 1162 | LIST_ITEM (U"• @@Read from file...") |
| 1163 | LIST_ITEM (U"• @@Read Matrix from raw text file...") |
| 1164 | LIST_ITEM (U"• ##Read Matrix from LVS AP file...") |
| 1165 | NORMAL (U"Drawing:") |
| 1166 | LIST_ITEM (U"• ##Matrix: Draw rows...") |
| 1167 | LIST_ITEM (U"• ##Matrix: Draw contours...") |
| 1168 | LIST_ITEM (U"• ##Matrix: Paint contours...") |
| 1169 | LIST_ITEM (U"• ##Matrix: Paint cells...") |
| 1170 | LIST_ITEM (U"• ##Matrix: Scatter plot...") |
| 1171 | LIST_ITEM (U"• @@Matrix: Draw as squares...") |
| 1172 | LIST_ITEM (U"• ##Matrix: Draw value distribution...") |
| 1173 | LIST_ITEM (U"• ##Matrix: Paint surface...") |
| 1174 | NORMAL (U"Modification:") |
| 1175 | LIST_ITEM (U"• @@Matrix: Formula...") |
| 1176 | LIST_ITEM (U"• ##Matrix: Scale...") |
| 1177 | ENTRY (U"Inside a Matrix object") |
| 1178 | NORMAL (U"With @Inspect, you will see the following attributes.") |
| 1179 | TERM (U"%xmin, %xmax ≥ %xmin") |
| 1180 | DEFINITION (U"%x domain.") |
| 1181 | TERM (U"%nx ≥ 1") |
| 1182 | DEFINITION (U"number of columns.") |
| 1183 | TERM (U"%dx > 0.0") |
| 1184 | DEFINITION (U"distance between columns.") |
| 1185 | TERM (U"%x1") |
| 1186 | DEFINITION (U"%x value associated with first column.") |
| 1187 | TERM (U"%ymin, %ymax ≥ %ymin") |
| 1188 | DEFINITION (U"%y domain.") |
| 1189 | TERM (U"%ny ≥ 1") |
| 1190 | DEFINITION (U"number of rows.") |
| 1191 | TERM (U"%dy > 0.0") |
| 1192 | DEFINITION (U"distance between rows.") |
| 1193 | TERM (U"%y1") |
| 1194 | DEFINITION (U"%y value associated with first row.") |
| 1195 | TERM (U"%z [1..%ny] [1..%nx]") |
| 1196 | DEFINITION (U"The sample values.") |
| 1197 | NORMAL (U"After creation of the #Matrix, %xmin, %xmax, %ymin, %ymax, " |
| 1198 | "%nx, %ny, %dx, %dy, %x1, and %y1 " |
| 1199 | "do not usually change. The contents of %z do.") |
| 1200 | NORMAL (U"Normally, you will want %xmin ≤ %x1 and %xmax ≥ %x1 + (%nx - 1) %dx.") |
| 1201 | ENTRY (U"Example: simple matrix") |
| 1202 | NORMAL (U"If a simple matrix has %x equal to column number " |
| 1203 | "and %y equal to row number, it has the following attributes:") |
| 1204 | LIST_ITEM (U"%xmin = 1; %xmax = %nx; %dx = 1; %x1 = 1;") |
| 1205 | LIST_ITEM (U"%ymin = 1; %ymax = %ny; %dy = 1; %y1 = 1;") |
| 1206 | ENTRY (U"Example: sampled signal") |
| 1207 | NORMAL (U"If the matrix represents a sampled signal of 1 second duration " |
| 1208 | "with a sampling frequency of 10 kHz, it has the following attributes:") |
| 1209 | LIST_ITEM (U"%xmin = 0.0; %xmax = 1.0; %nx = 10000 ; %dx = 1.0·10^^-4^; %x1 = 0.5·10^^-4^;") |
| 1210 | LIST_ITEM (U"%ymin = 1; %ymax = 1; %ny = 1; %dy = 1; %y1 = 1;") |
| 1211 | ENTRY (U"Example: complex signal") |
| 1212 | NORMAL (U"If the matrix represents a complex spectrum " |
| 1213 | "derived with an @FFT from the sound of example 2, it has the following attributes:") |
| 1214 | LIST_ITEM (U"%xmin = 0.0; %xmax = 5000.0; %nx = 8193 ; %dx = 5000.0 / 8192; %x1 = 0.0;") |
| 1215 | LIST_ITEM (U"%ny = 2 (real and imaginary part);") |
| 1216 | LIST_ITEM (U"%ymin = 1 (first row, real part);") |
| 1217 | LIST_ITEM (U"%ymax = 2 (second row, imaginary part);") |
| 1218 | LIST_ITEM (U"%dy = 1; %y1 = 1; (so that %y is equal to row number)") |
| 1219 | MAN_END |
| 1220 | |
| 1221 | MAN_BEGIN (U"Matrix: Draw as squares...", U"ppgb", 19980319) |
| 1222 | INTRO (U"A command to draw a @Matrix object into the @@Picture window@.") |
| 1223 | ENTRY (U"Settings") |
| 1224 | TERM (U"##Xmin") |
| 1225 | TERM (U"##Xmax") |
| 1226 | DEFINITION (U"the windowing domain in the %x direction. Elements outside will not be drawn. " |
| 1227 | "%Autowindowing: if (%Xmin ≥ %Xmax), the entire %x domain [%x__%min_, %x__%max_] of the Matrix is used.") |
| 1228 | TERM (U"##Ymin") |
| 1229 | TERM (U"##Ymax") |
| 1230 | DEFINITION (U"the windowing domain in the %y direction. Elements outside will not be drawn. " |
| 1231 | "%Autowindowing: if (%Ymin ≥ %Ymax), the entire %y domain [%y__%min_, %y__%max_] of the Matrix is used.") |
| 1232 | TERM (U"##Garnish") |
| 1233 | DEFINITION (U"determines whether axes are drawn around the picture. " |
| 1234 | "Turn this button off if you prefer to garnish your picture by yourself with the @Margins menu.") |
| 1235 | ENTRY (U"Behaviour") |
| 1236 | NORMAL (U"For every element of the Matrix inside the specified windowing domain, " |
| 1237 | "an opaque white or black rectangle is painted (white if the value of the element is positive, " |
| 1238 | "black if it is negative), surrounded by a thin black box. " |
| 1239 | "The %area of the rectangle is proportional to the value of the element.") |
| 1240 | ENTRY (U"Trick") |
| 1241 | NORMAL (U"If you prefer the %sides of the rectangle (instead of the area) to be proportional " |
| 1242 | "to the value of the element, you can use the formula \"`self^2`\" before drawing (see @@Matrix: Formula...@).") |
| 1243 | MAN_END |
| 1244 | |
| 1245 | MAN_BEGIN (U"Matrix: Formula...", U"ppgb", 20021206) |
| 1246 | INTRO (U"A command for changing the data in all selected @Matrix objects.") |
| 1247 | NORMAL (U"See the @Formulas tutorial for examples and explanations.") |
| 1248 | MAN_END |
| 1249 | |
| 1250 | MAN_BEGIN (U"Matrix: Paint cells...", U"ppgb", 20021204) |
| 1251 | INTRO (U"A command to draw the contents of a @Matrix to the @@Picture window@.") |
| 1252 | NORMAL (U"Every cell of the matrix is drawn as a rectangle filled with a grey value between white (if the content " |
| 1253 | "of the cell is small) and black (if the content is large).") |
| 1254 | MAN_END |
| 1255 | |
| 1256 | MAN_BEGIN (U"Matrix: Set value...", U"ppgb", 19980319) |
| 1257 | INTRO (U"A command to change the value of one cell in each selected @Matrix object.") |
| 1258 | ENTRY (U"Settings") |
| 1259 | TERM (U"##Row number") |
| 1260 | DEFINITION (U"the number of the row of the cell whose value you want to change.") |
| 1261 | TERM (U"##Column number") |
| 1262 | DEFINITION (U"the number of the column of the cell whose value you want to change.") |
| 1263 | TERM (U"##New value") |
| 1264 | DEFINITION (U"the value that you want the specified cell to have.") |
| 1265 | MAN_END |
| 1266 | |
| 1267 | /* |
| 1268 | 1. The Hilbert transform. |
| 1269 | |
| 1270 | I wondered whether my use of taking the square was worse than taking |
| 1271 | the Hilbert envelope. My formula is |
| 1272 | |
| 1273 | my_envelope1(t) = x(t) ^ 2 |
| 1274 | |
| 1275 | For a sampled signal, this introduces higher frequencies, so I should have |
| 1276 | filtered the signal at half the Nyquist frequency to prevent aliasing. I wonder |
| 1277 | how the Hilbert envelope behaves in this respect: |
| 1278 | |
| 1279 | your_envelope1(t) = x(t) ^ 2 + Px(t) ^ 2 |
| 1280 | |
| 1281 | I think it has the same problem, since it involves squaring the real and imaginary parts. |
| 1282 | |
| 1283 | Of course, the Hilbert transform is much smoother, but that cannot matter for |
| 1284 | frequencies above 100 Hz or so, since we are going to filter at 30 Hz anyway. |
| 1285 | Thus, I think these methods are comparable. Do you agree? |
| 1286 | |
| 1287 | |
| 1288 | 2. The non-linearity. |
| 1289 | |
| 1290 | In the second step, I take the logarithm: |
| 1291 | |
| 1292 | my_envelope2(t) = 10 log10 (my_envelope1(t) + 1e-6) |
| 1293 | |
| 1294 | Of course, the 1e-6 is there to guard against zero values in my_envelope1. |
| 1295 | I took the logarithm because it can handle negative values, which will arise |
| 1296 | in the filtering process. You take the square root instead: |
| 1297 | |
| 1298 | your_envelope2(t) = sqrt (your_envelope1(t)) |
| 1299 | |
| 1300 | |
| 1301 | 3. Filtering between 3 and 30 Hz. |
| 1302 | |
| 1303 | You use a second-order Butterworth filter in the time domain: |
| 1304 | |
| 1305 | your_envelope3(t) = your_envelope2(t) * Butterworth(t) |
| 1306 | |
| 1307 | What do you mean by "forward and backward filtering"? |
| 1308 | Did you use the second-order filter twice, thus making it fourth-order effectively? |
| 1309 | |
| 1310 | My alternative was to use the two Gaussians: |
| 1311 | |
| 1312 | my_spectrum2(f) = fft (my_envelope2(t)) |
| 1313 | my_spectrum3(f) = my_spectrum2(f) (exp(-(f/35)^2)-exp(-(f/3.5)^2) |
| 1314 | my_envelope3(t) = ifft (my_spectrum3 (f)) |
| 1315 | |
| 1316 | This is a filter with several desirable properties: no ringing, phase-preserving, |
| 1317 | an area of zero. On the other hand, it is not causal, but I think that that is not |
| 1318 | an issue here. Is it? |
| 1319 | |
| 1320 | |
| 1321 | 4. The new band. |
| 1322 | |
| 1323 | In my algorithm, I have to undo the non-linearity: |
| 1324 | |
| 1325 | my_envelope4(t) = 10 ^ (my_envelope3(t) / 2) |
| 1326 | |
| 1327 | You see that I divide by 2, not 10, thus effectively multiplying the dynamics, |
| 1328 | expressed in dB, by a factor of 5. Since I am going to use the new envelope as |
| 1329 | a multiplication factor, I will have to limit it to a factor of 10, because the |
| 1330 | maximum enhancement is 20 dB. But this limiting factor is band-dependent: |
| 1331 | |
| 1332 | ceiling(Fmid) = 1 + 9 (1/2 - 1/2 cos (pi Fmid / 13)) |
| 1333 | |
| 1334 | where Fmid is expressed in Bark. The limiting is done smoothly: |
| 1335 | |
| 1336 | my_envelope5(t) = 1 / (1 / my_envelope4(t) + 1 / ceiling) |
| 1337 | |
| 1338 | So this is the final multiplication factor for the band-filtered signal: |
| 1339 | |
| 1340 | new_band(t) = x(t) my_envelope5(t) |
| 1341 | |
| 1342 | Your multiplication factor is very different. Please tell me whether I am correct. |
| 1343 | |
| 1344 | your_envelope4(t) = rectify (your_envelope3(t)) |
| 1345 | |
| 1346 | This step is needed because you cannot handle negative values. It introduces |
| 1347 | higher-frequency components, which will have to be filtered out later. |
| 1348 | The new signal will have to carry the new envelope, so the multiplication |
| 1349 | factor is taken relative to the envelope of the original signal: |
| 1350 | |
| 1351 | your_envelope5(t) = your_envelope4(t) / your_envelope2(t) |
| 1352 | |
| 1353 | The components that were introduced by the rectification must be thrown out: |
| 1354 | |
| 1355 | your_envelope6(t) = your_envelope5(t) * Butterworth?(t) |
| 1356 | |
| 1357 | What were the characteristics of that filter? You did not specify them in your paper. |
| 1358 | Well, the next step is normalization to the power of the original band: |
| 1359 | |
| 1360 | new_band(t) = your_envelope6(t) ||x(t)|| / ||your_envelope5(t)|| |
| 1361 | |
| 1362 | At least, that's your formula (12). I suppose that it contains a mistake, and that |
| 1363 | the norm in the denominator should refer to the filtered your_envelope6(t) instead? |
| 1364 | |
| 1365 | By the normalization, the fast movements within each band have been strengtened, |
| 1366 | and the slow parts have been weakened. Thus, there is dynamic expansion within |
| 1367 | each band, whereas my algorithm has this only in the mid frequency range, am I correct? |
| 1368 | Could you also explain figure 5 to me? Some of the thick curves show enhanced peaks, |
| 1369 | but how about the valleys, are some of them deepened as well? |
| 1370 | |
| 1371 | |
| 1372 | 5. The new signal. |
| 1373 | |
| 1374 | My algorithm simply adds all the bands: |
| 1375 | |
| 1376 | new_signal(t) = SUM new_band(Fmid,t) |
| 1377 | |
| 1378 | The mid-frequency bands are favoured because they have stronger modulation deepening |
| 1379 | than the other bands. In your algorithm, the favouring of the mid frequencies is |
| 1380 | implemented in the last step: |
| 1381 | |
| 1382 | new_signal(t) = SUM new_band(Fmid,t) gain(Fmid) |
| 1383 | |
| 1384 | This would mean, for instance, that if the modulation is not deepened (for instance |
| 1385 | if there are no fast movements), the mid-frequency range is still multiplied by a factor |
| 1386 | of 10, whereas my algorithm would not change the signal at all in such a case. Is that so? |
| 1387 | |
| 1388 | If so, could any of the learning results have been produced by the general emphasis |
| 1389 | in the 1-4 kHz range? Have you any proof that the modulation deepening itself |
| 1390 | is the cause of the learning results? |
| 1391 | |
| 1392 | So the differences between the two algorithms are clear now: mine does modulation |
| 1393 | deepening selectively in the F2 range, yours does modulation deepening everywhere |
| 1394 | plus an independent emphasis in the F2 range. Since both algorithms will lead to |
| 1395 | emphasis in the F2 range, that leaves the question of whether a modulation change |
| 1396 | is necessary for the other frequency bands. Have you any idea, or was your choice |
| 1397 | for this just one of the minor decisions while constructing your algorithm? |
| 1398 | |
| 1399 | To sum up, I think that both algorithms perform what they were intended to do, |
| 1400 | namely selectively enhancing fast F2 transitions. If you agree with this, I may |
| 1401 | advise XXX to use my algorithm without change. I would, however, welcome any |
| 1402 | suggestions as to oversights in my implementation, or other possible problems |
| 1403 | or incorrect choices. |
| 1404 | */ |
| 1405 | |
| 1406 | MAN_BEGIN (U"Matrix: To TableOfReal", U"ppgb", 19991030) |
| 1407 | INTRO (U"A command to convert every selected @Matrix to a @TableOfReal.") |
| 1408 | NORMAL (U"This command is available from the #Cast menu. The resulting TableOfReal " |
| 1409 | "has the same number of rows and columns as the original Matrix, " |
| 1410 | "and the same data in the cells. However, it does not yet have any row or column " |
| 1411 | "labels; you can add those with some commands from the TableOfReal #Modify menu.") |
| 1412 | MAN_END |
| 1413 | |
| 1414 | MAN_BEGIN (U"Modify", U"ppgb", 20021204) |
| 1415 | INTRO (U"The title of a submenu of the @@dynamic menu@ for many object types. " |
| 1416 | "This submenu usually collects all the commands that can change the selected object.") |
| 1417 | MAN_END |
| 1418 | |
| 1419 | MAN_BEGIN (U"PairDistribution", U"ppgb", 20030316) |
| 1420 | INTRO (U"One of the @@types of objects@ in Praat. A " |
| 1421 | "PairDistribution object represents the relative probabilities with which " |
| 1422 | "the specified pairs of strings occur.") |
| 1423 | ENTRY (U"Class description") |
| 1424 | TERM (U"##struct-list# pairs") |
| 1425 | DEFINITION (U"a list of relative string-pair probabilities. Each element consists of:") |
| 1426 | TERM1 (U"#string %string1") |
| 1427 | DEFINITION1 (U"the first string.") |
| 1428 | TERM1 (U"#string %string2") |
| 1429 | DEFINITION1 (U"the second string.") |
| 1430 | TERM1 (U"#real %weight") |
| 1431 | DEFINITION1 (U"the relative probability associated with the string pair. This value cannot be negative.") |
| 1432 | MAN_END |
| 1433 | |
| 1434 | MAN_BEGIN (U"PairDistribution: To Stringses...", U"ppgb", 20030916) |
| 1435 | INTRO (U"A command to generate a number of string pairs from the selected @PairDistribution object. " |
| 1436 | "This command will create two aligned @Strings objects of equal size.") |
| 1437 | ENTRY (U"Settings") |
| 1438 | TERM (U"##Number# (standard: 1000)") |
| 1439 | DEFINITION (U"the number of the strings in either resulting Strings object.") |
| 1440 | TERM (U"##Name of first Strings# (standard: \"input\")") |
| 1441 | DEFINITION (U"the name of the resulting Strings object associated with the first string of each pair.") |
| 1442 | TERM (U"##Name of second Strings# (standard: \"output\")") |
| 1443 | DEFINITION (U"the name of the resulting Strings object associated with the second string of each pair.") |
| 1444 | ENTRY (U"Example") |
| 1445 | NORMAL (U"Suppose the PairDistribution contains the following:") |
| 1446 | CODE (U"4 pairs") |
| 1447 | CODE (U"\"at+ma\" \"atma\" 100") |
| 1448 | CODE (U"\"at+ma\" \"apma\" 0") |
| 1449 | CODE (U"\"an+pa\" \"anpa\" 20") |
| 1450 | CODE (U"\"an+pa\" \"ampa\" 80") |
| 1451 | NORMAL (U"The resulting Strings object \"input\" may then contain:") |
| 1452 | EQUATION (U"at+ma, an+pa, an+pa, at+ma, at+ma, an+pa, an+pa, an+pa, an+pa, at+ma, ...") |
| 1453 | NORMAL (U"The Strings object \"output\" may then contain:") |
| 1454 | EQUATION (U"atma, ampa, ampa, atma, atma, ampa, anpa, ampa, ampa, atma, ...") |
| 1455 | MAN_END |
| 1456 | |
| 1457 | MAN_BEGIN (U"ParamCurve", U"ppgb", 20030316) |
| 1458 | INTRO (U"One of the @@types of objects@ in Praat.") |
| 1459 | NORMAL (U"An object of class #ParamCurve represents a sequence of time-stamped points (%x (%%t__i_), %y (%%t__i_)) " |
| 1460 | "in a two-dimensional space.") |
| 1461 | MAN_END |
| 1462 | |
| 1463 | #if 0 |
| 1464 | |
| 1465 | MAN_BEGIN (U"Polygon", U"ppgb", 20030316) |
| 1466 | INTRO (U"One of the @@types of objects@ in Praat.") |
| 1467 | NORMAL (U"A Polygon object represents a sequence of points (%%x__i_, %%y__i_) in a two-dimensional space.") |
| 1468 | MAN_END |
| 1469 | |
| 1470 | MAN_BEGIN (U"Create Polygon from values...", U"David Weenink & Paul Boersma", 20230116) |
| 1471 | INTRO (U"Creates a @@Polygon@ from user-supplied x\\--y pairs (“points” or “vertices”).") |
| 1472 | ENTRY (U"Settings") |
| 1473 | TERM (U"##Name") |
| 1474 | DEFINITION (U"defines the name of the resulting Polygon.") |
| 1475 | TERM (U"##X values") |
| 1476 | DEFINITION (U"the X-coordinates of the vertices of the Polygon.") |
| 1477 | TERM (U"##Y values") |
| 1478 | DEFINITION (U"the Y-coordinates of the vertices of the Polygon.") |
| 1479 | ENTRY (U"Example") |
| 1480 | NORMAL (U"The command ##Create Polygon from values: \"triangle\", \"0 50 20\", \"0 10 80\"# " |
| 1481 | "defines a Polygon with the three points (0, 0), (50, 10), and (20, 80). " |
| 1482 | "In the figure the three points are indicated with open circles while the Polygon is drawn as a closed figure.") |
| 1483 | { kManPage_type::SCRIPT, UR"~~~( |
| 1484 | Create Polygon from values: "triangle", "0 50 20", "0 10 80" |
| 1485 | Draw circles: 0, 0, 0, 0, 3 |
| 1486 | Draw closed: 0, 0, 0, 0 |
| 1487 | Remove |
| 1488 | )~~~", 4, 4, nullptr }, |
| 1489 | MAN_END |
| 1490 | |
| 1491 | #else |
| 1492 | |
| 1493 | |
| 1494 | MAN_PAGES_BEGIN R"~~~( |
| 1495 | "Polygon" |
| 1496 | © ppgb 2003-03-16 |
| 1497 | |
| 1498 | One of the @@types of objects@ in Praat. |
| 1499 | |
| 1500 | A Polygon object represents a sequence of points (%%x__i_, %%y__i_) in a two-dimensional space. |
| 1501 | )~~~" MAN_PAGES_END |
| 1502 | |
| 1503 | |
| 1504 | MAN_PAGES_BEGIN R"~~~( |
| 1505 | "Create Polygon from values..." |
| 1506 | © David Weenink & Paul Boersma 2023-01-16 |
| 1507 | |
| 1508 | Creates a @@Polygon@ from user-supplied x\--y pairs (“points” or “vertices”). |
| 1509 | |
| 1510 | Settings |
| 1511 | === |
| 1512 | |
| 1513 | ##Name |
| 1514 | : defines the name of the resulting Polygon. |
| 1515 | |
| 1516 | ##X values |
| 1517 | : the X-coordinates of the vertices of the Polygon. |
| 1518 | |
| 1519 | ##Y values |
| 1520 | : the Y-coordinates of the vertices of the Polygon. |
| 1521 | |
| 1522 | Example |
| 1523 | === |
| 1524 | The command ##Create Polygon from values: "triangle", "0 50 20", "0 10 80"# |
| 1525 | defines a Polygon with the three points (0, 0), (50, 10), and (20, 80). |
| 1526 | In the figure the three points are indicated with open circles while the Polygon is drawn as a closed figure. |
| 1527 | {+ 4x4 |
| 1528 | Create Polygon from values: "triangle", "0 50 20", "0 10 80" |
| 1529 | Draw circles: 0, 0, 0, 0, 3 |
| 1530 | Draw closed: 0, 0, 0, 0 |
| 1531 | } |
| 1532 | )~~~" MAN_PAGES_END |
| 1533 | |
| 1534 | #endif |
| 1535 | |
| 1536 | |
| 1537 | MAN_BEGIN (U"Read Matrix from raw text file...", U"ppgb", 19980322) |
| 1538 | INTRO (U"A command to read a @Matrix object from a file on disk.") |
| 1539 | ENTRY (U"File format") |
| 1540 | NORMAL (U"The file should contain each row of the matrix on a separate line. Within each row, " |
| 1541 | "the elements must be separated by spaces or tabs.") |
| 1542 | NORMAL (U"For instance, the following text file will be read as a Matrix with three rows and four columns:") |
| 1543 | CODE (U"0.19 3 245 123") |
| 1544 | CODE (U"18e-6 -3e18 0 0.0") |
| 1545 | CODE (U"1.5 2.5 3.5 4.5") |
| 1546 | NORMAL (U"The resulting Matrix will have the same domain and sampling as Matrices created with " |
| 1547 | "##Create simple Matrix...#. In the above example, this means that the Matrix will have " |
| 1548 | "%x__%min_ = 0.5, %x__%max_ = 4.5, %n__%x_ = 4, %dx = 1.0, %x__1_ = 1.0, " |
| 1549 | "%y__%min_ = 0.5, %y__%max_ = 3.5, %n__%y_ = 3, %dy = 1.0, %y__1_ = 1.0.") |
| 1550 | MAN_END |
| 1551 | |
| 1552 | MAN_BEGIN (U"Read Strings from raw text file...", U"ppgb", 19990502) |
| 1553 | INTRO (U"A command to read a @Strings object from a simple text file. " |
| 1554 | "Each line is read as a separate string. See @Strings for an example.") |
| 1555 | MAN_END |
| 1556 | |
| 1557 | MAN_BEGIN (U"RealTier", U"ppgb", 20210612) |
| 1558 | INTRO (U"One of the @@types of objects@ in Praat. " |
| 1559 | "An RealTier object represents a time-stamped curve, i.e., it contains a series of (%time, %value) points. " |
| 1560 | "The values have no physical units, so a RealTier is a generic, \"mathematical\", type, " |
| 1561 | "just as a @Matrix is. Special, physically interpretable, kinds of RealTiers " |
| 1562 | "are @PitchTier, @IntensityTier, @DurationTier and @AmplitudeTier. " |
| 1563 | "You can convert a RealTier to and from these other tier types.") |
| 1564 | NORMAL (U"A RealTier can come in handy if you have time-stamped real-valued data " |
| 1565 | "that cannot be interpreted as any of the physical tier types. " |
| 1566 | "You can \"View & Edit\" a RealTier in its own window.") |
| 1567 | ENTRY (U"How to import a RealTier from raw data") |
| 1568 | NORMAL (U"While you create a RealTier from the New menu, you will often have data in a text file produced by " |
| 1569 | "a different app than Praat. For instance, your text file may look like this, with a header:") |
| 1570 | CODE (U"Time Value") |
| 1571 | CODE (U"0.134 67.9") |
| 1572 | CODE (U"0.178 -138.6") |
| 1573 | CODE (U"0.211 78.9") |
| 1574 | CODE (U"0.213 100.0") |
| 1575 | CODE (U"0.456 -97.0") |
| 1576 | NORMAL (U"You can import this text file as a Table object with ##Read Table from whitespace-separated file...# " |
| 1577 | "or perhaps with ##Read Table from tab-separated file...#). You can then choose ##To RealTier...# from the Convert menu. " |
| 1578 | "Alternatively, your text file may simply look like this, without header:") |
| 1579 | CODE (U"0.134 67.9") |
| 1580 | CODE (U"0.178 -138.6") |
| 1581 | CODE (U"0.211 78.9") |
| 1582 | CODE (U"0.213 100.0") |
| 1583 | CODE (U"0.456 -97.0") |
| 1584 | NORMAL (U"You can import this text file as a Matrix object with @@Read Matrix from raw text file...@. " |
| 1585 | "You can then choose ##To RealTier...# from the Cast menu.") |
| 1586 | MAN_END |
| 1587 | |
| 1588 | MAN_BEGIN (U"Sound: To Intensity...", U"ppgb", 20100605) // 2023 |
| 1589 | INTRO (U"A command to create an @Intensity object from every selected @Sound.") |
| 1590 | ENTRY (U"Settings") |
| 1591 | TERM (U"##Pitch floor (Hz)") |
| 1592 | DEFINITION (U"the minimum periodicity frequency in your signal. If you set it too high, " |
| 1593 | "you will end up with a pitch-synchronous intensity modulation. If you set it too low, " |
| 1594 | "your intensity contour may appear smeared, so you should set it as high as allowed by the signal " |
| 1595 | "if you want a sharp contour.") |
| 1596 | TERM (U"##Time step (s)") |
| 1597 | DEFINITION (U"the time step of the resulting intensity contour. If you set it to zero, the time step is computed as " |
| 1598 | "one quarter of the effective window length, i.e. as 0.8 / %pitchFloor.") |
| 1599 | TERM (U"##Subtract mean") |
| 1600 | DEFINITION (U"See @@Intro 6.2. Configuring the intensity contour@.") |
| 1601 | ENTRY (U"Algorithm") |
| 1602 | NORMAL (U"The values in the sound are first squared, then convolved with a Gaussian analysis window (Kaiser-20; sidelobes below -190 dB). " |
| 1603 | "The effective duration of this analysis window is 3.2 / %pitchFloor, which will guarantee that a periodic signal is analysed as having a " |
| 1604 | "pitch-synchronous intensity ripple not greater than 0.00001 dB.") |
| 1605 | MAN_END |
| 1606 | |
| 1607 | MAN_BEGIN (U"Sound & IntensityTier: Multiply", U"ppgb", 20000724) |
| 1608 | INTRO (U"A command to create a new Sound from the selected @Sound and @Intensity objects.") |
| 1609 | NORMAL (U"The resulting Sound equals the original sound, multiplied by a linear interpolation of the intensity. " |
| 1610 | "Afterwards, the resulting Sound is scaled so that its maximum absolute amplitude is 0.9.") |
| 1611 | MAN_END |
| 1612 | |
| 1613 | MAN_BEGIN (U"Strings", U"ppgb", 20201226) |
| 1614 | INTRO (U"One of the @@types of objects@ in Praat. Represents an ordered list of strings.") |
| 1615 | ENTRY (U"Creation") |
| 1616 | NORMAL (U"The difficult way is to create a #Strings object from a generic Praat text file " |
| 1617 | "(if there are non-ASCII symbols, use UTF-8 or UTF-16 format):") |
| 1618 | CODE (U"\"ooTextFile\"") |
| 1619 | CODE (U"\"Strings\"") |
| 1620 | CODE (U"5 ! number of strings") |
| 1621 | CODE (U"\"Hello\"") |
| 1622 | CODE (U"\"Goodbye\"") |
| 1623 | CODE (U"\"Auf wiedersehen\"") |
| 1624 | CODE (U"\"Tschüss\"") |
| 1625 | CODE (U"\"Arrivederci\"") |
| 1626 | NORMAL (U"In this example, we see that a double quote within a string should be written twice; " |
| 1627 | "the fourth string will therefore be read as ##Tschüss#. " |
| 1628 | "This file can be read simply with the generic @@Read from file...@ command from the #Open menu.") |
| 1629 | NORMAL (U"An easier way is to use the special command @@Read Strings from raw text file...@. " |
| 1630 | "The file can then simply look like this:") |
| 1631 | CODE (U"Hello") |
| 1632 | CODE (U"Goodbye") |
| 1633 | CODE (U"Auf wiedersehen") |
| 1634 | CODE (U"Tschüss") |
| 1635 | CODE (U"Arrivederci") |
| 1636 | NORMAL (U"You can also create a #Strings object from a folder listing or from some other objects:") |
| 1637 | LIST_ITEM (U"• @@Create Strings as file list...") |
| 1638 | LIST_ITEM (U"• @@Distributions: To Strings...@") |
| 1639 | LIST_ITEM (U"• @@OTGrammar: Generate inputs...@") |
| 1640 | LIST_ITEM (U"• @@OTGrammar & Strings: Inputs to outputs...@") |
| 1641 | MAN_END |
| 1642 | |
| 1643 | MAN_BEGIN (U"Strings: To Distributions", U"ppgb", 19971025) |
| 1644 | INTRO (U"A command to analyse each selected @Strings object into a @Distributions object.") |
| 1645 | NORMAL (U"The resulting #Distributions will collect the occurrences of every string in the #Strings object, " |
| 1646 | "and put the number of occurrences in its first and only column.") |
| 1647 | ENTRY (U"Example") |
| 1648 | NORMAL (U"We start from the following #Strings:") |
| 1649 | CODE (U"6 (number of strings)") |
| 1650 | CODE (U"\"hallo\"") |
| 1651 | CODE (U"\"dag allemaal\"") |
| 1652 | CODE (U"\"hallo\"") |
| 1653 | CODE (U"\"tot morgen\"") |
| 1654 | CODE (U"\"hallo\"") |
| 1655 | CODE (U"\"tot morgen\"") |
| 1656 | NORMAL (U"This will give us the following #Distributions:") |
| 1657 | CODE (U"1 (number of columns) \"\" (no column name)") |
| 1658 | CODE (U"\"hallo\" 3") |
| 1659 | CODE (U"\"dag allemaal\" 1") |
| 1660 | CODE (U"\"tot morgen\" 2") |
| 1661 | MAN_END |
| 1662 | |
| 1663 | } |
| 1664 | |
| 1665 | /* End of file manual_Fon.cpp */ |