Debian Codegraph @

docs/manual/Get_time_from_frame_number___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Get time from frame number...</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 Get time from frame number...
13 </b></font></table></table>
14 <p>A command that becomes available in the <a href="Query_submenu.html">Query submenu</a> if you select a sound-analysis object that is a function of time and that is evenly sampled in time (<a href="Pitch.html">Pitch</a>, <a href="Formant.html">Formant</a>, <a href="Intensity.html">Intensity</a>, <a href="Harmonicity.html">Harmonicity</a>).</p>
15 <p>The Info window will tell you the time associated with the frame number that you specify.</p>
16 <h2>Setting</h2>
17 <dl>
18 <dt><b>Frame number</b>
19 <dd>the frame number whose time is sought.</dd>
20 </dl>
21 <h2>Algorithm</h2>
22 <p>the result is</p>
23 <table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>t</i><sub>1</sub> + (<i>frameNumber</i> - 1) &#183; &#916;<i>t</i></table>
24 <p>where <i>t</i><sub>1</sub> is the time associated with the centre of the first frame, and &#916;<i>t</i> is the time step.</p>
25 <h2>Details for hackers</h2>
26 <p>If you select one of the above objects and click <a href="Inspect.html">Inspect</a>, you can see how the relation between frame numbers and times is stored in the object: <i>t</i><sub>1</sub> is the <b>x1</b> attribute, and &#916;<i>t</i> is the <b>dx</b> attribute.</p>
27 <hr>
28 <address>
29 <p>© ppgb 20221202</p>
30 </address>
31 </body>
32 </html>