getSampleRate
Class: audioPlugin
Get sample rate at which the plugin is run
Syntax
sampleRate = getSampleRate(myAudioPlugin)
Description
sampleRate = getSampleRate(
returns the sample rate in Hz at which the plugin is being run. myAudioPlugin)
In a digital audio workstation (DAW) environment, the DAW user sets the sample rate.
getSampleRateinteracts with the DAW to determine the sample rate.In the MATLAB® environment,
getSampleRatereturns the value set by a previous call tosetSampleRate. IfsetSampleRatehas not been called,getSampleRatereturns the default value,44100.
Version History
Introduced in R2016a