Ltas: Get bin number from frequency...

A query to the selected Ltas object.

Return bin

the band number belonging to the specified frequency, expressed as a real number.

Example

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.

Scripting

You can use this command to put the nearest bin centre into a script variable:

selectObject: "Ltas hallo"
bin = Get bin number from frequency: 1800
nearestBin = round (bin)

In this case, the value will not be written into the Info window. To round down or up, use

leftBin = floor (bin)
rightBin = ceiling (bin)

© ppgb 20140421