Skip to main content

A wrapper around the partial-tracking library Loris

Project description

sh-downloads sh-month

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

https://loristrck.readthedocs.io


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

Author

Eduardo Moguillansky

eduardo dot moguillansky @ gmail dot com

License

GPL

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

loristrck-1.6.3-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

loristrck-1.6.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

loristrck-1.6.3-cp312-cp312-macosx_11_0_arm64.whl (624.1 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

loristrck-1.6.3-cp312-cp312-macosx_10_9_x86_64.whl (297.6 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

loristrck-1.6.3-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

loristrck-1.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

loristrck-1.6.3-cp311-cp311-macosx_11_0_arm64.whl (622.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

loristrck-1.6.3-cp311-cp311-macosx_10_9_x86_64.whl (296.1 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

loristrck-1.6.3-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

loristrck-1.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

loristrck-1.6.3-cp310-cp310-macosx_11_0_arm64.whl (622.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

loristrck-1.6.3-cp310-cp310-macosx_10_9_x86_64.whl (295.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

loristrck-1.6.3-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

loristrck-1.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

loristrck-1.6.3-cp39-cp39-macosx_11_0_arm64.whl (623.1 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

loristrck-1.6.3-cp39-cp39-macosx_10_9_x86_64.whl (296.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file loristrck-1.6.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ebccc2f4fdfbd5ed8ac148c0b2d2f6d59c2990ee4c03e901573ffefae85707dc
MD5 c76b6310dbde1954edc7ef44f4eaf352
BLAKE2b-256 9497c04ccf429c31853cf77891b55f100d6b3e5be0a0f7e697b10d3c067b964a

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b04e6a79aa7364d0994519848872e6b0468b3168678f3f8026ddd00ad5cf23c
MD5 c9af55281069fab9d1e656d086ffbbf3
BLAKE2b-256 4963db633ecc301123323105debc22cb9923a710e062d06a21651f052aefe261

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4889664f506c5be59faf1d7ec38fcbcf840d6890f0632685cce0dcc556d8da9e
MD5 257151715bf317ba8c9bb14e5c6eee58
BLAKE2b-256 51c4da8371662c835e401f817410bac910842b53b6ad3cbf002df5c31eac0828

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c30023d1b944e68d133aff8c2f064d0b059a0de6d79bce7bd821838ffc9d58e0
MD5 3b728f9178557453dcfb74d07f0e2b60
BLAKE2b-256 2aeaacaa8e8c1a09b09b2658c06e53c0d9ed18610c8ee3cc711af5f4b0e4988c

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 946a5ce16e23808acaa59212342c66cbe44a26090a8bd7f77e0ede6868f53a9a
MD5 cff863a8a7943f0949deea2d4f46906e
BLAKE2b-256 58a18d23ce5f8305e164afa0a4bb467d0a5f27fd2803f044dd3c14e278078054

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d07893f3cfba3214134a959fd683ea210b255a5b18ff119176e48d175624f001
MD5 b387c9dd449e79b5b9bcd562fdc79119
BLAKE2b-256 97e742c2e5256558fbc1fad19c496a34602f228d2b4de63554a90714d0b5a0e3

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7005fe3a7f9c38effecc5666528b96bf2d7a2313c7634f6c11d61c77d64f3769
MD5 4b5b35d8cb55e65486bee0e912658ba4
BLAKE2b-256 546030dcef1bd32d11e623e6719e005a2543c1a3b1264b49d82b2e10490e3972

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 277415f71d67cc83b64bcd59fa734f15b1818c5bc026b13c52ad57061e6e448b
MD5 5711b460abed38a1a07ab42244e5c122
BLAKE2b-256 365f84699be7cdb66ee56240883157a1964a1a82ed1ae1a4043539e6b217397b

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 099187c64817e3deaaee2cb424171897abec5bd54539e02327efb7a134af093b
MD5 bf4967d18f377be00febc300f53bb3cf
BLAKE2b-256 7b376be689e8fabe3b038230337e349f9a360ef30343cc62ac49647cd75af0ab

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71d2033ed3b9a661a290f3e32f8dfa8e3d99503df2d4038cb189452d4bef6022
MD5 f80bafbd8d853306841f6deec9d835d4
BLAKE2b-256 7e5d9cd43592ac0de59d04e029d506801f7f6e23bff924467474ebfa8ca28142

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 158664d4add09caa2e74905b70079f41a2f87d97ea7e51ff8b9074c220868630
MD5 2ec829fb6109d3ec766f39272eaa4609
BLAKE2b-256 f89db440895373e6aff9f14461a91a465f0ea06ed3365e9a17ee1585d7fa68c0

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 94876b2fa6f46845997878d3a44de796bd46450395ea322c32ac90d8d20f13c9
MD5 ccdf3459a074eeeb1dd3ff5a188e6b38
BLAKE2b-256 a2082ababe7e61d09c9435e0cf1f09cc298b9d84b57f987e6d079f358718ca06

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: loristrck-1.6.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for loristrck-1.6.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e14c972f8f2003a48fe21db01fd28be2e205ac251ff99e6548f62ec613177822
MD5 2cf9408666e9aabf1d03b9a3cc35a505
BLAKE2b-256 c029bdf6b5114083459891435a9e7148cf924a3d0c1d339b7ee92cfde2c58c2a

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7efde62e0bb59cc1f0ca48a84c94eec05e12368d9e51e18effb42a7fe19e76da
MD5 6fb9a8513338830c960bcc5ee731e00e
BLAKE2b-256 f15ce715117c4125eddb5a9abb01546bd2a230968d71a2eaa87aab99fa968fcc

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79ce364290d9b009055147c2833ec04a30bb3eaca66862b5ae22cdb9e3008e6b
MD5 121779cafac80b6fb22600ab22983d19
BLAKE2b-256 e2ca6447b747b12df3d3604316cb8a705fc90ab1bf950de20c9479b45f5a477a

See more details on using hashes here.

File details

Details for the file loristrck-1.6.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for loristrck-1.6.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 de2f0c058760294b5d8dc9d23c34571dc0995466351b5f748387fc49729402b9
MD5 e5908a9935f5f3b03a11f5ef89caa9b2
BLAKE2b-256 2d4d1b4a22288475673a94e66ea7cbb1b8f0066ac6d9e2928f694d3ca10490cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page