SpHr_DFTSizeList [ Flags ] [ minSize, maxSize ]

Generates DFT-compatible point sizes or lengths in seconds or milliseconds as numeric waves, text waves, or strings. If all flags are omitted, DFT-compatible point sizes between minSize and maxSize are written to the Command Window. Compatible sizes = f * 2n, where f is 1, 3, 5, or 15 and n is at least 3. See https://developer.apple.com/documentation/accelerate/1450061-vdsp_dft_zop_createsetup?language=objc


Parameters

minSize    Minimum DFT size to return. Default if omitted is 2^9 = 512.

        Minimum value is 2^4 = 16.

maxSize    Maximum DFT size to return, Default if omitted is 2^16 = 65,536.

        Maximum value is 2^26 = 67,108,864


Flags

/W = destWaveName

    destWaveName is the specification for a single precision wave of DFT-compatible point sizes.


/WS = { destWaveName, fs }

    destWaveName is the specification for a single precision wave of DFT-compatible point sizes converted to seconds at the sampling frequency specified by fs.


/WM S= { destWaveName, fs }

    destWaveName is the specification for a single precision wave of DFT-compatible point sizes converted to milliseconds at the sampling frequency specified by fs.


/T = destWaveName

    destWaveName is the specification for a Text wave of DFT-compatible point sizes.


/TS = { destWaveName, fs }

    destWaveName is the specification for a Text wave of DFT-compatible point sizes converted to seconds at the sampling frequency specified by fs.


/TMS = { destWaveName, fs }

    destWaveName is the specification for a Text wave of DFT-compatible point sizes converted to milliseconds at the sampling frequency specified by fs.


/S [ = getString

    Stores a list of DFT-compatible point sizes in string variable named S_RateList.

    getString = 0, same as no /S flag.

    getString = 1, same as /S alone.


/SS = fs [, getString ]

    Stores a list of DFT-compatible sizes converted to seconds at the specified sampling rate (fs) in string variable S_RateList_sec.

    fs is sampling rate (Hz)

    getString = 0, same as no /S flag.

    getString = 1, same as /S alone.


/SMS = fs [, getString ]

    Stores a list of DFT-compatible sizes converted to milliseconds at the specified sampling rate (fs) in string variable S_RateList_ms.

    fs is sampling rate (Hz)

    getString = 0, same as no /S flag.

    getString = 1, same as /S alone.


/SMSP = fs [, getString ]

    Stores a list of DFT-compatible sizes in milliseconds and points in string variable S_RateList_ms_pnts (format is "%.2f, ms %d pnts;").

    fs is sampling rate (Hz)

    getString = 0, same as no /S flag.

    getString = 1, same as /S alone.


Example

Function FS_PopupContextualMenu()

    SpHr_DFTSizeList /S 2^10, 2^16

    PopupContextualMenu S_RateList

    if(V_flag)

        Print S_selection

    endif

End

Contact: Brian