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