loristrck is a wrapper for the C++ partial-tracking library Loris.
It is written in cython and targets python 3 (>= 3.8 at the moment). The source of the library is included as part of the project and does not need to be installed previously.
Documentation
Installation
pip install loristrck
Install from source in Windows
You need to have Visual Studio installed
# From a Developer Powershell
python scripts/prepare_windows_build.py
# From a normal prompt
pip install .
Usage
import loristrck as lt
samples, sr = lt.sndreadmono("/path/to/sndfile.wav")
partials = lt.analyze(samples, sr, resolution=60)
# partials is a python list of numpy arrays
# select a subset of most significant partials
selected, noise = lt.select(partials, mindur=0.02, maxfreq=12000, minamp=-60, minbp=2)
# print each partial as data
for partial in selected:
print(partial)
# plot selected partials
lt.plot_partials(selected)
# now resynthesize both parts separately
lt.partials_render(selected, outfile="selected.wav")
lt.partials_render(noise, outfile="noise.wav")
Each partial will be a numpy array of shape = (numbreakpoints, 5) with the columns:
time, frequency, amplitude, phase, bandwidth
See the example scripts in bin for more complete examples
License
GPL
Release files for loristrck 1.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 30.9 MB
Release files / loristrck-1.7.2-cp313-cp313-win_amd64.whl
| Download URL | loristrck-1.7.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
08198fedcee0611cf2375bd0c8c3c42e3f2acbc29109b9c21729ebedceacd9cd
|
|
BLAKE2b-256 checksum How to use checksums |
d4030a7240e4d743b650c0a6ff1bd046f970ef7507905e65e0aaf45215ea8cb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / loristrck-1.7.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loristrck-1.7.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
32aeed53c36a669379f39e1fd2a1c522e0706c94cf9fe10db412a9e030322ea4
|
|
BLAKE2b-256 checksum How to use checksums |
db8df82edf052ebe07c6c44e02e0aa7cb814f8d9e787e551c7bd135d7d22e7aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / loristrck-1.7.2-cp313-cp313-macosx_14_0_x86_64.whl
| Download URL | loristrck-1.7.2-cp313-cp313-macosx_14_0_x86_64.whl |
|---|---|
| Size | 287.1 kB |
| Tags | CPython 3.13 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
1e9a2cc178f313d959bfc95848161d8a8cf3e84a48e8553c6e2fdc9cc89679cc
|
|
BLAKE2b-256 checksum How to use checksums |
0b64e7a3bdbdfc30ef316f5f09dcbf36572393d309d85041642f3604c24df707
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | loristrck-1.7.2-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 612.5 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b21cfe2bd6b77281f0b7d8fd423aaa4ba0783d760f7c0ec379b0e81b19075692
|
|
BLAKE2b-256 checksum How to use checksums |
6f6344f78ffae7066aba916cdbc590ea45b8324641a0cddbfafc31000849751f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp312-cp312-win_amd64.whl
| Download URL | loristrck-1.7.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
34c28bef7e5279830b63e68cf45a7b291fc11e8fc23bba6883e47784b0e104fe
|
|
BLAKE2b-256 checksum How to use checksums |
2d539b7d5b5d21b5e4debdacaa1c84364bd31e87f75004a6f8faa5dd4558065c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loristrck-1.7.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
85f383f307987cf646976e2a52c961d895c291ba19d3ccc08118106b1bc148f1
|
|
BLAKE2b-256 checksum How to use checksums |
11f1d2422af3bd2ff9c45a4e0cb79cf31d1939500d9ef31f98f49077a7786165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / loristrck-1.7.2-cp312-cp312-macosx_14_0_x86_64.whl
| Download URL | loristrck-1.7.2-cp312-cp312-macosx_14_0_x86_64.whl |
|---|---|
| Size | 288.4 kB |
| Tags | CPython 3.12 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
3a366b6ac8c25422a6a32d2ac1cb63037a3e2dea87305b6efb1941889c89183d
|
|
BLAKE2b-256 checksum How to use checksums |
4faf403bb76909e9db51ed68b6ed0333b3d7964bf8a883466f2c038a3e8603f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | loristrck-1.7.2-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 613.7 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6f14ba85ead1e61130234bd88ddbbc9292e390e2538af31e2c582ce688b8fff2
|
|
BLAKE2b-256 checksum How to use checksums |
e163c11a0889c46a9512ffc7d52dd1a3c755ce478fb55d208e1d3f75bb46b3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | loristrck-1.7.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 620.8 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ea098b2eea7564a00510e37a6790b661479cad1424c1f92f7052e74b9357e5df
|
|
BLAKE2b-256 checksum How to use checksums |
87dd324168fc22847e212c85ac00d67e7dbca43e9ca9295b6bbdaa6a95e7235b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / loristrck-1.7.2-cp311-cp311-win_amd64.whl
| Download URL | loristrck-1.7.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8015aab56650cb31ccba120b8d5846d9b1183138e18b89b3ecf8f92d2575ffd3
|
|
BLAKE2b-256 checksum How to use checksums |
fb72b72b9d73e1473b1f9359a04a6a92e8ce25e1bd5df77df8c751dd2f7c5c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / loristrck-1.7.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loristrck-1.7.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
723ebab152497b60f961f657e411d33a55cb892562e835469ed0fb8624fd3ae1
|
|
BLAKE2b-256 checksum How to use checksums |
678b8390ef448a56b03a2adc53e2607693a7f49ba5495408f2b2ce5ecc0a342e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / loristrck-1.7.2-cp311-cp311-macosx_14_0_x86_64.whl
| Download URL | loristrck-1.7.2-cp311-cp311-macosx_14_0_x86_64.whl |
|---|---|
| Size | 287.5 kB |
| Tags | CPython 3.11 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
2646c2c267637b0c5d08f0ba561462d70a9d6fdf09873ca3a99253f5d57dcc6b
|
|
BLAKE2b-256 checksum How to use checksums |
b60705890bd5274dc06bc5d88944c0057b3c33017bdc3787bde7a28467e789b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | loristrck-1.7.2-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 614.4 kB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
18ca947eb713bdebae8024a14cd65512ac665de09fb4b532ac856ae366af9226
|
|
BLAKE2b-256 checksum How to use checksums |
46ce07f22798ab63667b13c01120c9d1e647b35816f86f61a8ed8a84232ac915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | loristrck-1.7.2-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 620.1 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
60edb351b5dc3012c9c34d29f6d39122d0f8b3ec164a35877e773cb91e6c964e
|
|
BLAKE2b-256 checksum How to use checksums |
3c362423ac3b9907767efc4768e390ac65338efaadd32b2b6cb70675582e92d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / loristrck-1.7.2-cp310-cp310-win_amd64.whl
| Download URL | loristrck-1.7.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
469596ba44db0d49660afaaf1cb324682e4a6f6b38faa3a0ea9db0efab19ae23
|
|
BLAKE2b-256 checksum How to use checksums |
ef154d29322b2a04f54982afe398d10ba4c672cfa0c6cf355ed12d0774b3fbb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / loristrck-1.7.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loristrck-1.7.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
12ba2209647968e220c06dd96203c590858dc61d3182c3a5b61ed1f06748826c
|
|
BLAKE2b-256 checksum How to use checksums |
248ea86c31135ef98d74520d346bc40e830b42b0decaf0e44b1afbaf8adf4ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / loristrck-1.7.2-cp310-cp310-macosx_14_0_x86_64.whl
| Download URL | loristrck-1.7.2-cp310-cp310-macosx_14_0_x86_64.whl |
|---|---|
| Size | 285.9 kB |
| Tags | CPython 3.10 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
9f92a41051a19301e4677b5a31c16c507c104786a7046b5b3e5aa06e7b6689de
|
|
BLAKE2b-256 checksum How to use checksums |
8d15fd6435666e8e09fce06433bde93ee9c08fb71b3b03d975870bce88601bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | loristrck-1.7.2-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 613.3 kB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
24e2272e8bc485e707f6dc2f200e67dfe1c39114ee65a85438d55188d6e24388
|
|
BLAKE2b-256 checksum How to use checksums |
1be070bcf0072dc7121ff4b3c22402f436cc8c6734be296253815ae80d86fabb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | loristrck-1.7.2-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 618.3 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d4bf5c351e379d21d12670b8b0316443b5e8420b6af1f1436a77a6db124914ff
|
|
BLAKE2b-256 checksum How to use checksums |
36a11785fb493e1a4c2094f58426e446a1d67c3af0aaa4ba4a2d4a33eebadc5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / loristrck-1.7.2-cp39-cp39-win_amd64.whl
| Download URL | loristrck-1.7.2-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
940fa59f77cc64d4502d64e787cb213e3b29008708028ce16c5fad84d4dd0e5a
|
|
BLAKE2b-256 checksum How to use checksums |
e554b0649f5bd601d685578ec868264e6a27fa24fb71d5b4d186a56e2e1f96e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / loristrck-1.7.2-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | loristrck-1.7.2-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b9c8457c1b09468b878b6fbaf9a740a64cb45d9a2f50664909bd682585ed55ef
|
|
BLAKE2b-256 checksum How to use checksums |
2b418415d750c9f385f7ff203b7264829413bca243c1feb4ec09dea5658f3f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / loristrck-1.7.2-cp39-cp39-macosx_14_0_x86_64.whl
| Download URL | loristrck-1.7.2-cp39-cp39-macosx_14_0_x86_64.whl |
|---|---|
| Size | 286.2 kB |
| Tags | CPython 3.9 macOS 14.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
f5cecb558421a4ad9b0da4733c06fb9606e383842764e3f7b6e90f2c83c8777f
|
|
BLAKE2b-256 checksum How to use checksums |
55d1863267e489a0e050d059c2626b2239aad101856bfc27754d6f2ead5d2764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp39-cp39-macosx_14_0_arm64.whl
| Download URL | loristrck-1.7.2-cp39-cp39-macosx_14_0_arm64.whl |
|---|---|
| Size | 613.4 kB |
| Tags | CPython 3.9 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1cf1a316f50eab58563d4ef12bd4ef038a4a5e814de50845c1e7e21e45c7c68c
|
|
BLAKE2b-256 checksum How to use checksums |
b3ccc0fafffbfdb714876fb27e574ce66168f6cb902c3d2523c78255fce32c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / loristrck-1.7.2-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | loristrck-1.7.2-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 618.6 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
785024009d0e60f03c059267d033c554804a437bc2689963058c278e49f89b11
|
|
BLAKE2b-256 checksum How to use checksums |
5d586d787109f927736093ce29188e2b86effeebbe5d5cdebec984c0d971e176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|