SR - return sampling rate information
samprate = SR()
SR returns the sampling rate of the most recently opened soundfile by the rtinput command, or the sampling rate of the input audio device.
rtinput("somesoundfile") srate = SR()
CHANS, DUR, PEAK, filechans, filedur, filepeak, filesr, rtinput