Debian Codegraph @

docs/manual/Script_for_listing_time_F0_pairs.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Script for listing time–F0 pairs</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Script for listing time–F0 pairs
13 </b></font></table></table>
14 <p>&#8220;I wish to have a list of time markers in one column and F0 in the other. Those times that have no voiced data should be represented as &#8220;.&#8221; in the F0 column.&#8221;</p>
15 <code> writeInfoLine: "Time: Pitch:"<br></code>
16 <code> numberOfFrames = Get number of frames<br></code>
17 <code> for iframe to numberOfFrames<br></code>
18 <code> time = Get time from frame: iframe<br></code>
19 <code> pitch = Get value in frame: iframe, "Hertz"<br></code>
20 <code> if pitch = undefined<br></code>
21 <code> appendInfoLine: fixed$ (time, 6)<br></code>
22 <code> else<br></code>
23 <code> appendInfoLine: fixed$ (time, 6), " ", fixed$ (pitch, 3)<br></code>
24 <code> endif<br></code>
25 <code> endfor<br></code>
26 <p>If you want to see this in a text file, you can copy and paste from the Info window, or save the Info window, or add a line to the script like</p>
27 <code> appendFile: "out.txt", info$ ( )<br></code>
28 <h3>Links to this page</h3>
29 <ul>
30 <li><a href="Scripting_examples.html">Scripting examples</a>
31 </ul>
32 <hr>
33 <address>
34 <p>© ppgb 20140223</p>
35 </address>
36 </body>
37 </html>