background image

5

Mackie Industrial White Paper 

 

 

 

 

 

 

 

 

                Noise  Sensing

September 2000

1.3  RMS Measurements

The nLMS algorithm requires normalized energies for calcu-
lating the FIR coefcients. A real RMS algorithm is used to 
measure the signal levels [2, 4, 11-12]. This is accomplished by 
buffering the squares of each sample of the input signal (Square), 
averaging the sum of these squares every sample (Mean), and 
taking the square root of the mean (Root). For every input sample 
an RMS value is produced, which is itself buffered and ltered 
by a 256-point window function, to smooth the response of the 
detector by a xed known delay and amplitude.

The main benet of ltered RMS measurement is to reduce 
the impact of low frequency room energy variations caused by 
the music broadcast into the room, which can give variations 
in the room energy readings by 2 or 3 dB. This amount of 
variation could cause the compander to constantly turn the 
volume of the music up and down by a similar amount, which 
is quite noticeable and undesirable.

Several RMS detectors are required in the system. The nLMS 
Coefcient Calculator requires the energy of the FIR output, 
error and music signals. The Compander requires the level of 
the music and microphone signals.

1.4  Down Sampling

To extend the effective FIR length for larger rooms the LMS 
lter is down sampled from the converter sample rate [8,9]. In 
this implementation, 44100 Hz (Fs) is the converter sample rate 
for the music and microphone signals. Down sampling also helps 
reduce the memory and MIPS requirement. This also has the 
effect of comparing energies of signals ltered at half of the 
down sampled Nyquist rate. As long as the noise signal has a 
proportional amount of its energy in this spectrum, the ambient 
noise sensor will approximate the level of the noise signal. As we 
have found, this is a valid assumption.

1.5  Compander

User parameters control the operation of the compander. 

Minimum Gain

Gain Range

Noise Threshold

Noise Range

Attack

/

Release Times

, and RMS measurement parameters 

determine how much gain (or attenuation) is applied to the 
music signal.

The compander

 Attack

 and 

Release

 parameters control the 

rate at which the gain is turned up or down. These are impor-
tant to control the gain during loud sudden events such as door 
slams, yells, or dropped dish trays, which would normally 

cause the music level to be turned up very loud. A slow attack 
rate (more than 10 seconds) with a faster release rate will 
reduce the level of gain applied to the music. This allows the 

compander to track the ambient room noise while ‘rejecting’ 
these singular events if desired.

1.6  Auto-Calibration

The biggest single problem with controlling the music gain based 
on the room noise is runaway gain. Runaway gain occurs when 
the compander turns up the music volume which is measured 
as ‘room noise’, which tells the compander to further increase 
the music volume. The compander must have the appropriate 
information to prevent this cycle from occuring.

A calibrated algorithm for computing the approximate loca-
tion at which runaway gain might occur is used as an override 
to limit the sensitivity to the room noise. Although the algo-
rithm constantly adapts to the room acoustics it takes a 
signicant amount of time for the algorithm to get to its best 

approximation of the RTF. Until this point is reached it is 
not possible to determine the override conditions required to 
prevent runaway gain. This condition would occur every time 
the unit was reset (power on/off) were it not for the 

Auto 

Calibration 

process, and the internal non-volatile storage of 

the calibration parameters.

The 

Auto Calibration

 uses a real music signal with xed gain 

to adapt and monitor the ambient room noise. As long as the 
algorithm is making progress towards the RTF it will continue 
to adapt and monitor the noise level. During calibration it 
is best to have a minimum amount of room noise so that 
the algorithm can determine the progress towards the RTF. 
Once the progress towards the RTF has slowed signicantly 
the current adaptation coefcients are stored and the Noise 
Threshold Override is computed. Every time the unit is reset 
the calibration coefcients and Noise Threshold Override are 
restored. This allows the compander to prevent runaway gain 
on reset and during normal operation. The algorithm contin-
ues to adapt at all times to keep up with room acoustic 
changes, and as long as the room acoustics do not change 
drastically the gain should be prevented from running away.

2  Hardware Setup

The SP-DSP1™ was designed to be an expansion card that is 
added to our new “SP” or Sound Palette® series mixer/ampliers 
(SP2400/1200). These ampliers provide one or two zones of 
200 watts per channel in a two-rack-space package. Since the 
SP-DSP1™ operates 

only 

on a mono program signal, one card 

is required per channel. Once the card is installed, the user 
needs to connect an ambient microphone to the rear panel of 
SP2400/1200. Note that the connection requires a 3.08mm 3-pin 
male Phoenix connector (i.e. Euroblock).

Summary of Contents for SP-DSP1

Page 1: ...noise The question naturally arises why can t this be done automatically Mackie Designs has invested a considerable amount of time in research and development to nd an answer to this very question In...

Page 2: ...signal It computes its own approximation of the room response in order to cancel the music signal from the signal picked up by a room microphone 1 5 7 Room size is the most important factor determinin...

Page 3: ...constantly adapting to the room characteristics This provides optimum performance when the room acoustics change Room acoustics can change signi cantly due to the arrangement of furnishings opening or...

Page 4: ...from speaker to microphone including re ec tions are removed by the nLMS algorithm as there would have to be many re ections before the sound could have trav eled this far Each re ection reduces the e...

Page 5: ...th a faster release rate will reduce the level of gain applied to the music This allows the compander to track the ambient room noise while rejecting these singular events if desired 1 6 Auto Calibrat...

Page 6: ...ch null modem adapter cable is provided to connect a standard Palm Cradle or the HotSync Cable to the 9 pin female D Sub on the front of the SP2400 1200 After installing the application to your device...

Page 7: ...ith the fourth param eter Noise Range actually sets the operating window of the noise source This noise window sets the level and range that the noise must be within to effect the program level Noise...

Page 8: ...level fades 3 3 Bar Graphs Metering The main screen of the SP Control Palm application has four meters that allow the user to monitor levels during setup and normal operation see Figure 2 PI is the Pr...

Page 9: ...ime this is not a critical require ment Once the speaker s and ambient microphone are in their xed locations and the microphone gain and input levels have been adjusted per Section 3 3 Bar Graphs Mete...

Page 10: ...een calibrated you can set the Noise Threshold as low as you want and you will still seem to get the same sensitivity This is because it is being limited by the Noise Threshold Override see Figure 1 A...

Page 11: ...ice he can use HyperTerminal available on any PC running Windows OS HyperTerminal can control all the parameters previously mentioned The null modem adapter is not necessary as the 9 pin female D Sub...

Page 12: ...oolbox and a New Toolbox for Matlab Simulink He has numerous publications in IEEE and one in AES see www ece uvic ca dale cv pdf Dr Shpak is a member of the IEEE Brian Roden was born in Ragina Sask Ca...

Reviews: