# DSP Engine: Headroom Management --- ## Introduction Headroom Mangement is part of the [[DSP Engine]]. For more information on accessing the DSP Engine, [[see here|DSP Engine: Accessing DSP Engine]]. Digital signal processing can result in "clipping", or audio samples that exceed the allowed range. These samples are "clipped" to a maximum or minimum value. In some cases this can produce audible distortion. This is easily avoided by slightly attenuating the signal--to make "headroom" for sample values that may increase as a result of signal processing. Headroom Management is at the top of the list because it's one of the most important things to pay attention to in Roon's DSP Engine. If things don't sound right, one of the first things you should do is make sure that the signal isn't clipping. ## How to Manage Headroom ### 1. Find the Headroom Management screen Headroom Management is part of the [[DSP Engine]]. For more information accessing the DSP Engine, [[see here|DSP Engine: Accessing DSP Engine]]. ### 2. Turn on the Clipping Indicator <img src='http://roon-kb.s3.amazonaws.com/e23b38dc-5a07-42f7-918d-2c1e310f03d1.png'/> It's not possible to turn on the clipping indicator without enabling headroom management, but if you set the Headroom Adjustment to 0dB, the audio stream will not be modified. ### 3. Watch out for Clipping When clipping occurs, the signal path light will momentarily turn red like this: <img src='http://roon-kb.s3.amazonaws.com/f4f83bfa-7443-43f3-ba7b-68e8c4d21271.png'/> Roon's clipping indicator is always at maximum sensitivity: even a single sample can set it off. ### 4. If you see clipping, try creating a little bit more headroom. You add headroom by making the number more negative. So if you are getting clipping at -3dB, try -3.5dB or -4dB next. ## Why Clipping occurs There are several reasons why clipping may occur, and not all of them are immediately intuitive. ### 1. Because the DSP is actually making things louder This is a "simple" case. It's possible to configure all of these filters in a way that increases the overall playback volume. - [[Parametric Equalizer|DSP Engine: Parametric Equalizer]] - [[Procedural Equalizer|DSP Engine: Procedural Equalizer]] - [[Convolution|DSP Engine: Convolution]] - [[Speaker Setup|DSP Engine: Speaker Setup]] Sometimes the easiest solution is to reconfigure these elements to be quieter, and other times, it's simpler to compensate using headroom management. Up to you. ### 2. Because of "inter-sample overs" It's possible for a totally "in-range" piece of source material "out-of-range" samples after upsampling. The very simple explanation is: when the interpolator "connects the dots" to form a signal at a higher sampling rate, sometimes the new "dots" fall out of range. This is essentially a defect introduced in the mastering process, and is not a problem with the upsampler. Unfortunately, most software silently ignores these defects, and provide no means to track or manage them. ### 3. Because of minimum phase processing Because of the phase shift associated with minimum phase processing, it's possible for DSP that _doesn't_ make things louder to nonetheless cause individual samples to clip. Roon's equalizer features are all minimum phase, and its sample rate converters can be configured to be minimum phase. Convolution filters may be minimum phase depending on how they were constructed.
Page last changed Sat Jan 26 2019