| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>Get sampling frequency</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 frequency |
| 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_frequency.html">sampling frequency</a> in hertz.</p> |
| 16 | <h2>Usage</h2> |
| 17 | <p>You will not often choose this command with the mouse, since the sampling frequency 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> samplingFrequency = Get sampling frequency<br></code> |
| 20 | <h2>Algorithm</h2> |
| 21 | <p>The sampling frequency is defined as 1 / (Δ<i>t</i>), where Δ<i>t</i> is the <a href="sampling_period.html">sampling period</a>. See <a href="Get_sampling_period.html">Get sampling period</a>.</p> |
| 22 | <hr> |
| 23 | <address> |
| 24 | <p>© ppgb 20221202</p> |
| 25 | </address> |
| 26 | </body> |
| 27 | </html> |