Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Chapters

Chapter Contents:

Search Physical Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

Notes regarding invfreqsmethod listing in Fig.D.22:

  • The basic method is to use invfreqs to find the coefficients of a second-order analog filter having a frequency response close to what we measured. Then, we calculate the $ Q$ and resonance frequency $ \omega_p$ from the simple formulas relating these quantities to the transfer-function coefficients:

    $\displaystyle H(s) = \frac{s-\xi}{\left(\frac{s}{\omega_p}\right)^2
+ \frac{2}{Q} \left(\frac{s}{\omega_p}\right) + 1}
$

    where $ \xi$ is an arbitrary finite zero location near dc. Finally, using the impulse invariant method (§R.1.1), we map the estimated $ Q$ and $ \omega_p$ to digital biquad coefficients, as shown in the code.

  • A useful quantitative measure of filter approximation error can be defined as follows (insert after the call to freqs):
      err = norm(wt(:) .* (db(Hp(:))-db(Hph(:))))/norm(wt(:) .* Hp(:));
      disp(sprintf(['Relative weighted L2 norm of frequency ',
                    'db-magnitude response error = %f'],err));
    

  • The minphaseir function for converting a spectrum to its minimum-phase counterpart is listed in Fig.D.23 and discussed in [460].