getSamplingRate()

Description

Function to retrieve the sample rate from the host software.

Available in: Processor.

Return Values

Returns the sample rate of the host software in Hertz (i.e., samples per seconds).

Example

-- print the sample rate of the host software
function onInit()
    fs = getSamplingRate() 
    print(fs, "Hz")    
end