Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Sound manipulation and representation via partial-tracking

Project description


Partial tracking in python 3




  • python >= 3.7
  • numpy
  • bpf4: interpolation curves
  • sndfileio: simple API for reading and writing sound-files
  • loristrck: partial tracking analysis based on Loris. See the project for its own set of dependencies

Optional but HIGHLY recommended

  • pyqtgraph: efficient plotting via Qt
  • h5py: allows saving partial-tracking data as HDF5. You need to install hdf5.


We assume that pip points to your current python >= 3.7 installation. Otherwise use pip3 and python3


$ sudo apt-get install fftw-dev
$ pip install -r requirements.txt [--user]
$ git clone
$ cd sndtrck
$ python install [--user]


$ brew install fftw
$ pip install -r requirements.txt [--user]
$ git clone
$ cd sndtrck
$ python install


Follow instructions here)

$ pip install -r requirements.txt
$ git clone
$ cd sndtrck
$ python install

Basic Usage

Example 1

import sndtrck
spectrum = sndtrck.analyze("/path/to/sndfile", resolution=50)

# Get the chord at 500ms, but only the partials louder than -30 dB
print(spectrum.chord_at(0.5, minamp=-30))
# [A3+, C5+10, E5-13]
spectrum.plot()  # this will show you the spectrum in the default applicatio for your system


  • analysis of sound-files in many formats
  • automatic configuration of analysis parameters
  • filtering of partials based on multiple criteria
  • resynthesis
  • plotting
  • export the spectrum to many different formats (sdif, hdf5, midi)


Go to sndscribe for automatic transcription of spectra into musical notation



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sndtrck, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size sndtrck-0.5.0.tar.gz (63.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page