# Introduction

resampy is a python module for efficient time-series resampling. It is based on the band-limited sinc interpolation method for sampling rate conversion as described by [1].

[1]

Smith, Julius O. Digital Audio Resampling Home Page Center for Computer Research in Music and Acoustics (CCRMA), Stanford University, 2015-02-23. Web published at http://ccrma.stanford.edu/~jos/resample/.

resampy supports multi-dimensional resampling on numpy arrays, and is well-suited to audio applications. For long-duration signals — e.g., minutes at a high-quality sampling rate — resampy will be considerably faster than scipy.signal.resample and have little perceivable difference in audio quality.

Its dependencies are numpy, scipy, and numba.

For a quick introduction to using resampy, please refer to the Examples section.

# Installation

resampy can be installed through pip:

    python -m pip install resampy

Conda users can install via the following command:

    conda install -c conda-forge resampy

Advanced users and developers may wish to install from source by cloning the source repository:

    git clone https://github.com/bmcfee/resampy.git
    cd resampy
    python -m pip install -e .

## Running tests

Developers that wish to run the included unit test suite can do so by installing from source, and then executing the following commands from the source directory:

    python -m pip install -e .[tests]
    pytest --cov-report term-missing --cov resampy

# Examples

- Monophonic resampling
- Stereo and multi-dimensional data
- Integer-valued samples
- Advanced filtering

## API Reference

- Core functionality
  - `resample()`
  - `resample_nu()`
- Filters
  - Filter construction and loading.
  - `clear_cache()`
  - `get_filter()`
  - `sinc_window()`

## Changes

- Changes
  - v0.4.3
  - v0.4.2
  - v0.4.1
  - v0.4.0
  - v0.3.1
  - v0.3.0
  - v0.2.2
  - v0.2.1
  - v0.2.0
  - v0.1.5
  - v0.1.4
  - v0.1.3
  - v0.1.2
  - v0.1.1
  - v0.1.0

## Contribute

- Issue Tracker

- Source Code

## Indices and tables

- Index

- Module Index

- Search Page