| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Get sampling period</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 sampling period |
| 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 <a href="Sound.html">Sound</a> object.</p> |
| 15 | <p>The Info window will tell you the <a href="sampling_period.html">sampling period</a> in seconds.</p> |
| 16 | <h2>Usage</h2> |
| 17 | <p>You will not often choose this command with the mouse, since the sampling period is included in the information that you get by clicking the <b>Info</b> button. This command is probably more useful in a Praat script:</p> |
| 18 | <code> selectObject: "Sound hello"<br></code> |
| 19 | <code> samplingPeriod = Get sampling period<br></code> |
| 20 | <h2>Details for hackers</h2> |
| 21 | <p>With <a href="Inspect.html">Inspect</a>, you can see how the sampling period is stored in a <b>Sound</b> object: it is the <b>dx</b> attribute.</p> |
| 22 | <h3>Links to this page</h3> |
| 23 | <ul> |
| 24 | <li><a href="Get_sampling_frequency.html">Get sampling frequency</a> |
| 25 | </ul> |
| 26 | <hr> |
| 27 | <address> |
| 28 | <p>© ppgb 20221202</p> |
| 29 | </address> |
| 30 | </body> |
| 31 | </html> |