{"id":233,"date":"2010-10-04T15:11:04","date_gmt":"2010-10-04T19:11:04","guid":{"rendered":"http:\/\/www.thesounddesign.com\/MIO\/?p=233"},"modified":"2010-10-04T15:19:42","modified_gmt":"2010-10-04T19:19:42","slug":"dsp-rms-side-chain-control","status":"publish","type":"post","link":"https:\/\/thesounddesign.com\/MIO\/dsp-rms-side-chain-control\/","title":{"rendered":"+DSP RMS Side-chain control"},"content":{"rendered":"<p>BJ and Kurt comment on how\u00a0 to create a RMS averaged signal for side-chain dynamics purposes. (among others)<\/p>\n<p><span style=\"color: #ff9900;\">________[How]________<\/span><\/p>\n<p>If you multiply a signal by itself, using MIO Channel Multiplier,<br \/>\nyou get the &#8220;Square&#8221;. If you put that result through a lowpass,<br \/>\nyou get a\u00a0 kind of &#8220;Mean Square&#8221; (an exponential moving average).<br \/>\nIf you take the square root of that (using Square Root under Math),<br \/>\nyou get the Root Mean Square.You get to choose the time constant for<br \/>\nyour averaging by tuning the lowpass. This is essentially an RMS-based envelope extractor.<\/p>\n<p>To do the &#8220;square&#8221; part, you use a Channel Multiplier with both inputs feed by the same signal.<\/p>\n<p>To do stereo, you use the Max primitive, which will pass through the larger signal.<\/p>\n<p>To do the mean part, you can use a Low Pass filter.<\/p>\n<p><span style=\"color: #ff9900;\">_______[Why]________<\/span><\/p>\n<p>the standard definition of mean is<\/p>\n<p>mean = sum (x0, x1, x2 &#8230; xn)\/n<\/p>\n<p>That yields the mean, but that would not be useful for a continuously applied process, so the mean used in an RMS detector could be a moving window mean<\/p>\n<p>mean_n = sum(x(n-m), x(n-m+1), &#8230; x(n))\/m<\/p>\n<p>This is a FIR filter, with equal coefficients of 1\/m and m taps.<br \/>\nThis is a type of low-pass filter.  This sort of FIR is generally inefficient to simply compute a moving average.  You can build an IIR filter that has similar pass-band and stop band characteristics as the FIR, but the phase characteristics will be very different, and the transition band will be very different. But that doesn&#8217;t matter that much for a detector filter.<\/p>\n<p>So when you use an IIR low pass filter, you are basically measuring the mean value. (The mean value is the DC component of a signal. The lower you set the cutoff of the filter, the closer the output of the filter will be to the mean value). For an RMS detector, you don&#8217;t really want the the RMS of the signal for all time. You want an new signal that approximates the &#8220;instantaneous&#8221; RMS level of the signal.<\/p>\n<p>Square -&gt; LPF -&gt; Square-root gives you that.<\/p>\n<p>Thanks BJ &amp; Kurt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BJ and Kurt comment on how\u00a0 to create a RMS averaged signal for side-chain dynamics purposes. (among others) ________[How]________ If you multiply a signal by itself, using MIO Channel Multiplier, you get the &#8220;Square&#8221;. If you put that result through a lowpass, you get a\u00a0 kind of &#8220;Mean Square&#8221; (an exponential moving average). If you&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/thesounddesign.com\/MIO\/dsp-rms-side-chain-control\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;+DSP RMS Side-chain control&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-233","post","type-post","status-publish","format-standard","hentry","category-dsp"],"_links":{"self":[{"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/posts\/233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":5,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/posts\/233\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thesounddesign.com\/MIO\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}