Abstract
We present a discrete-time algorithm for nonuniform sampling rate conversion that presents low computational complexity and memory requirements. It generalizes arbitrary sampling rate conversion by accommodating time-varying conversion ratios, i.e., it can efficiently adapt to instantaneous changes of the input and output sampling rates. This approach is based on appropriately factorizing the time-varying discrete-time filter used for the conversion. Common filters that satisfy this factorization property are those where the underlying continuous-time filter consists of linear combinations of exponentials, e.g., those described by linear constant-coefficient differential equations. This factorization separates the computation into two parts: one consisting of a factor solely depending on the output sampling instants and the other consists of a summation—that can be computed recursively—whose terms depend solely on the input sampling instants and its number of terms is given by a relationship between input and output sampling instants. Thus, nonuniform sampling rates can be accommodated by updating the factors involved and adjusting the number of terms added. When the impulse response consists of exponentials, computing the factors can be done recursively in an efficient manner.
Introduction
In modern signal processing, moving data between systems with different clock speeds is a common requirement, such as converting 44.1 kHz audio to 48 kHz. While synchronous conversion is well-established, challenges arise when sampling rates are asynchronous or nonuniform due to jitter, network loss, or deliberate data compression.
The traditional approach involves reconstructing the continuous signal and then resampling it, which typically requires time-varying filters. Implementing these filters digitally often leads to a trade-off between massive memory for pre-computed coefficients and high computational costs for on-the-fly interpolation.
Methods: The Factorization Property
This paper introduces a method based on the factorization property of certain continuous-time filters. For filters whose impulse response $h(t)$ consists of linear combinations of exponentials (including all filters with rational transfer functions), the filter kernel can be separated as: $$h(t - \tau) = h_1(t)h_2(\tau)u(t - \tau)$$
This separation allows the conversion process to be split into two parts:
- Input-dependent summation: A recursive term that tracks input sample values and their arrival times.
- Output-dependent factor: A single multiplier applied when an output sample is requested.
Because the summation is recursive, the system maintains an internal state and does not need to store a long history of samples. This approach is applicable to first-order, second-order (complex conjugate poles), and higher-order systems with repeated poles.
Key Insights and Architecture
The core advantage of this method lies in the "exponential" nature of common analog-style filters like Butterworth or Chebyshev, which makes them uniquely suited for recursive resampling. Instead of re-filtering the entire signal for every output, the algorithm maintains a running state. When an output sample is needed, it is essentially a "snapshot" of this state.
As shown in the parallel architecture, complex high-order filters can be decomposed into simpler sections running in parallel. This structure is highly hardware-friendly and allows the algorithm to adapt instantaneously to changes in the conversion ratio by adjusting the number of terms in the recursive sum based on input and output timestamps.
Evaluation and Results
The algorithm was evaluated using a synthetic benchmark: a third-order lowpass Butterworth filter with a 20 kHz cutoff, converting a signal from a nominal 48 kHz rate (with added jitter) to a 44.1 kHz output. The results demonstrated that the algorithm maintains the desired frequency response while handling real-world imperfections like clock drift.
Key performance metrics include:
- Computational Efficiency: A first-order filter section requires only 6 to 9 multiplications and 1 to 2 additions per output sample.
- Low Memory Footprint: For a 3rd-order filter, the system only needs to store 6 real values.
- Generalization: The method provides a unified framework for both arbitrary and nonuniform sampling rate conversion.
Discussion and Limitations
While highly efficient, the method is constrained to filters with impulse responses that are combinations of exponentials. This covers most practical filters with rational transfer functions but excludes "ideal" brick-wall filters (sinc functions) or non-rational FIR filters without approximation. Additionally, for truly arbitrary sampling, calculating exponentials on the fly might be necessary, though recursive mitigations are possible for many common scenarios. Future work points toward implementation in FPGAs or ASICs to leverage the parallel, recursive structure for ultra-low-latency applications.
Summary updated