Return soundfile peak RMS amplitude.
rms_amp = filerms(“filename”)
filerms returns the peak RMS amplitude of the soundfile filename. filename may be an absolute or relative pathname to the soundfile. This command does not require that the soundfile be previously opened by the rtinput command.
RMS (Root Means Squared) amplitudes are a standard way of measuring sound level. The value is calculated by squaring the value of every sample, summing those values, taking the average (that’s the “means squared”), and then taking the square root of that number.
rms_amp = filerms("somesoundfile")
CHANS, DUR, PEAK, SR, filechans, filedur, filepeak, filesr, rtinput