cannam@126: cannam@126: cannam@126: cannam@126:
cannam@126:
cannam@126: cannam@126: cannam@126: cannam@126: |
cannam@126:
cannam@126:
cannam@126:
cannam@126:
cannam@126:
cannam@126:
cannam@126:
cannam@126: SRC Qualitycannam@126:
cannam@126: This document not yet complete. cannam@126: When measuring the performance of a Sample Rate Converter, there are three cannam@126: factors to consider: cannam@126: cannam@126:
cannam@126: There are a number of sample rate converters available for downloading cannam@126: but I will limit the comparison ot Secret Rabbit Code to the following: cannam@126: cannam@126:
cannam@126: It should be noted that the first three converters above are based on the algorithm cannam@126: by Julius O. Smith cannam@126: which emulates the conversion of the digital signal to an analogue one and then cannam@126: sampling the analogue signal at the new sample rate. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126:Methodologycannam@126:cannam@126: Measuring the SNR of a converter is relatively straight forward. cannam@126: Generate an input signal consisting of a windowed sine wave, sample rate cannam@126: convert it and measure the signal-to-noise ratio of the output signal. cannam@126: A typical length for the original file is 30000 samples. cannam@126: cannam@126:cannam@126: The bandwidth of a sample rate converter is a little more difficult to measure. cannam@126: Currently this is done by generating two short files containing a windowed cannam@126: sine wave. cannam@126: The frequencies of the sine waves are 0.35 and 0.495 of the sample rate. cannam@126: These file are then upsampled by a factor of 2 using the converter under test. cannam@126: If the attenutaion of the lower frquency is less than 3dB and higher frequency is cannam@126: more than 3dB, it is then possible to iteratively increase the lower frequency cannam@126: and decrease the upper frequency keeping the -3dB point bracketed. cannam@126: When the distance between the upper and lower frequency is sufficiently small, cannam@126: it is possible to obtain a very accurate estimate of the -3dB frequency. cannam@126: cannam@126:cannam@126: The speed of a sample rate converter is easy to measure; simply perform a cannam@126: conversion on a large file or a number of smaller files and time the conversion cannam@126: process. cannam@126: cannam@126: cannam@126:cannam@126: The above measurement techniques are built into a test program which is delivered cannam@126: with the Secret Rabbit Code source code distibution. cannam@126: This program is able to test the first four of the above converters. cannam@126: cannam@126: cannam@126: cannam@126:SoXcannam@126:cannam@126: SoX provides three methods of resampling; a linear interpolator, a polyphase cannam@126: resampler and the Julius O. Smith simulated analogue filter method. cannam@126: cannam@126: cannam@126:Shibatchcannam@126:cannam@126: Shibach cannam@126: cannam@126: cannam@126:cannam@126: More Coming Soon. cannam@126: cannam@126: cannam@126: cannam@126: cannam@126: |