RMS value

Share your Audacity/Nyquist plug-ins here, or test drive the latest plug-ins submitted by Audacity users.

After testing a plug-in from this forum, please post feedback for the plug-in author.
Post Reply
Boffin
Posts: 10
Joined: Mon Feb 18, 2013 3:20 pm
Operating System: Please select

RMS value

Post by Boffin » Tue Feb 19, 2013 3:12 am

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
Attachments
RMS.ny
(133 Bytes) Downloaded 341 times

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: RMS value

Post by kozikowski » Tue Feb 19, 2013 4:36 am

When viewed as Waveform (dB) the dB values are equal (with a constant offset) to the sound level, for example SPL.
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.

Koz

Post Reply