Debian Codegraph @

docs/manual/Ltas__Get_bin_number_from_frequency___.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Ltas: Get bin number from 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 Ltas: Get bin number from frequency...
13 </b></font></table></table>
14 <p>A <a href="Query_submenu.html">query</a> to the selected <a href="Ltas.html">Ltas</a> object.</p>
15 <h2>Return bin</h2>
16 <p>the band number belonging to the specified frequency, expressed as a real number.</p>
17 <h2>Example</h2>
18 <p>If the Ltas has a bin width of 1000 Hz, and the lowest frequency is 0 Hz, the bin number associated with a frequency of 1800 Hz is 2.3.</p>
19 <h2>Scripting</h2>
20 <p>You can use this command to put the nearest bin centre into a script variable:</p>
21 <code> selectObject: "Ltas hallo"<br></code>
22 <code> bin = Get bin number from frequency: 1800<br></code>
23 <code> nearestBin = round (bin)<br></code>
24 <p>In this case, the value will not be written into the Info window. To round down or up, use</p>
25 <code> leftBin = floor (bin)<br></code>
26 <code> rightBin = ceiling (bin)<br></code>
27 <hr>
28 <address>
29 <p>© ppgb 20140421</p>
30 </address>
31 </body>
32 </html>