This very simple plug-in converts a sound into its RMS (root-mean-squared)
amplitude. The sound is windowed into 10 ms segments, the rms computed,
and the sound re-interpolated to the original sample rate.
It consists exactly of the Nyquist command:
(force-srate *sound-srate* (rms s))
The resulting "sound" is not a playable sound, but can be read as the
magnitude of the sound as a function of time. When viewed as
Waveform (dB) the dB values are equal (with a constant offset) to
the sound level, for example SPL.
This plug-in is part of a set, including RMS.ny, OctaveBand.ny, and DecayRate.ny
meant to be used to compute reverberation times over octave bands.
Boffin
RMS value
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: RMS value
There's a loaded phrase. A "Constant Offset" given the same type of microphone with the same frequency response, polar patterns, linearity and standardized compensation curve at the same point in a room. Then, yes. You can do dBSPL like that.When viewed as Waveform (dB) the dB values are equal (with a constant offset) to the sound level, for example SPL.
Koz