SNDTRCK
Partial tracking in python 3
Dependencies
Mandatory
- 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.
Installation
We assume that pip points to your current python >= 3.7 installation. Otherwise use pip3 and python3
Linux
$ sudo apt-get install fftw-dev
$ pip install -r requirements.txt [--user]
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py install [--user]
OSX
$ brew install fftw
$ pip install -r requirements.txt [--user]
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py install
Windows
Follow instructions here)
$ pip install -r requirements.txt
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py 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()
spectrum.show() # this will show you the spectrum in the default applicatio for your system
spectrum.write("spectrum.sdif")
Features
- 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)
Transcription
Go to sndscribe for automatic transcription of spectra into musical notation
License
GNU
Metadata
Release files for sndtrck 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sndtrck-0.5.0.tar.gz | 63.8 kB | Without provenance | Details for sndtrck-0.5.0.tar.gz |
Release files / sndtrck-0.5.0.tar.gz
| Download URL | sndtrck-0.5.0.tar.gz |
|---|---|
| Size | 63.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea178616dc2df2728b12d6f4cd3e930cf487cf6a2e979127c7196c18c11e0391
|
|
BLAKE2b-256 checksum How to use checksums |
51e63ff6d2f687204a72b97dd7d837d1537d8cc97ba4349d29c7eb1a437e3369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5
|
Security for sndtrck 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.