SynthMaker

RMS Detector

Archive · 2012 7 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

SBMastering ·

Is there something I can use that will input a signal and output the RMS as an Integer, to at least two decimal places?

Dell ·

Search the forums. There was one made a few years ago.

SBMastering ·

I found this RMS detector, but it has a stream in and a stream out. Does anyone know how one would go about getting a stream in and an Integer out?

Xtinct ·

Use a poly to mono connected to a mono to float

SBMastering ·

Whenever I try to connect Fast RMS ->Poly to Mono->Mono to Float, and play some audio through it with Wave Player, Synthmaker crashes!

infuzion ·

Have you looked inside SM's compressor?

trogluddite ·

SBMastering wrote: Whenever I try to connect Fast RMS ->Poly to Mono->Mono to Float,

Presumably, you are looking at the levels of an audio stream (i.e. blue audio input) - so there is no need for any Poly at all (that applies only when using SM to build a synth). Simply connecting an M2F directly at the output (driven by a Tick25) should give you a 'Green' output. Integers don't have decimal places (that would be a float), but I guess that what you mean is that you need a dB readout, rather than the 0-1 that the RMS module puts out by default. You can most easily do that conversion using 'Green' primitives after the M2F. The equation is...

dB = 10 * log (RMSpower / FullScale).

Where the log is in base 10, RMSpower is the output of the M2F, and FullScale represents the sample value of your 0dB reference point. Within SM, maximum audio level is simply = 1, so most likely, you don't even need the divide. This will give you the usual dB reading that goes in negative numbers down from zero = Full Scale.

The only thing to watch is that if the audio level is zero (silence!), the log primitive outputs zero, which is not correct (should be minus infinity, which SM doesn't understand) - so you might want to check the output of the M2F for zero's, and use that to switch over your display to show "-inf" or such-like.

EDIT: Ooops - I forgot that we may be taking power readings from an amplitude measurement here (depends on the RMS code) - so you may need to multiply by 20 instead of 10 to get the correct reading (comparing against a calibrated meter will soon tell you).

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.