05.05.2013 Views

Huron & SNAP Documentation

Huron & SNAP Documentation

Huron & SNAP Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HURON TECHNICAL REFERENCE<br />

files that are scaled down too low will produce output from the<br />

FIR filter that is well below full scale, resulting in poor signalto-noise<br />

performance in the D/A converter.<br />

The diagram below illustrates the way filter coefficient scaling<br />

effects the Convolver’s output level:<br />

Figure 98 — Scaling of filter output due to filter coefficients<br />

The amplitude of the filter coefficients (h(k)) determine the<br />

overall gain of the filter. More specifically, the filter scale (S) is<br />

defined as:<br />

N−1<br />

1<br />

S = ∑ h(<br />

k )<br />

2097152<br />

k=<br />

0<br />

As a reference for comparison, the <strong>Huron</strong> Convolution Tools<br />

are supplied with an example file called<br />

c:\<strong>Huron</strong>32\sim\unity.sim. This file specifies an all-pass,<br />

unity gain filter. It contains one impulse in the first sample of<br />

the vector, and all zeros following this. The magnitude of the<br />

impulse is 2097152, which results in a gain of S=1.<br />

For most real filter responses, the overall gain S of the filter is<br />

mostly useful in defining the average gain of the filter, for white<br />

noise audio input. In reality, typical audio signals have most<br />

energy in a narrower band (from about 200Hz to 8000Hz). For<br />

this reason, it can be more meaningful to compute the gain S<br />

based on a band-limited portion of h(k).<br />

In order to achieve optimum data scaling in the <strong>Huron</strong> system, it<br />

is advised that all SIM files be scaled up to achieve a gain of<br />

S=1. This can be done by the following procedure :<br />

• Determine the gain (S) of a SIM file (or a collection of SIM<br />

files that are to be used together). Determine the gain for a<br />

band-limited portion of the SIM file.<br />

• Use the MultVec utility to scale the data up or down by a<br />

factor of 1/S. This means that the newly scaled SIM file<br />

should now have an average gain of S=1.<br />

• If a collection of SIM files are to be used together, then the<br />

relative amplitude difference between their gains must be<br />

preserved, so the files should all be scaled up by the same<br />

amount. The Lake Technology SimScale tool described<br />

below uses the formula 1/max(Sn) to achieve this result.<br />

HURON TECHNICAL MANUAL PAGE 292<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!