LORISTRCK
=========
|sh-downloads| |sh-month|
.. |sh-downloads| image:: https://static.pepy.tech/badge/loristrck
.. |sh-month| image:: https://static.pepy.tech/badge/loristrck/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
------------
.. code-block:: bash
pip install loristrck
Install from source in Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You need to have Visual Studio installed
.. code-block:: bash
# From a Developer Powershell
python scripts/prepare_windows_build.py
# From a normal prompt
pip install .
---------------
Usage
-----
.. code-block:: python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/gesellkammer/loristrck",
"name": "loristrck",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Eduardo Moguillansky",
"author_email": "eduardo.moguillansky@gmail.com",
"download_url": "https://github.com/gesellkammer/loristrck",
"platform": "Linux",
"description": "LORISTRCK\r\n=========\r\n\r\n|sh-downloads| |sh-month|\r\n\r\n.. |sh-downloads| image:: https://static.pepy.tech/badge/loristrck\r\n.. |sh-month| image:: https://static.pepy.tech/badge/loristrck/month\r\n\r\n\r\n`loristrck` is a wrapper for the C++ partial-tracking library Loris.\r\n\r\nIt is written in cython and targets python 3 (>= 3.8 at the moment).\r\nThe source of the library is included as part of the project and\r\ndoes not need to be installed previously.\r\n\r\n\r\nDocumentation\r\n-------------\r\n\r\n\r\nhttps://loristrck.readthedocs.io\r\n\r\n---------------\r\n\r\n\r\nInstallation\r\n------------\r\n\r\n\r\n.. code-block:: bash\r\n\r\n pip install loristrck\r\n\r\n\r\nInstall from source in Windows\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nYou need to have Visual Studio installed\r\n\r\n\r\n.. code-block:: bash\r\n\r\n\r\n # From a Developer Powershell\r\n python scripts/prepare_windows_build.py\r\n\r\n # From a normal prompt\r\n pip install .\r\n\r\n\r\n---------------\r\n\r\n\r\nUsage\r\n-----\r\n\r\n.. code-block:: python\r\n\r\n\r\n import loristrck as lt\r\n\r\n samples, sr = lt.sndreadmono(\"/path/to/sndfile.wav\")\r\n partials = lt.analyze(samples, sr, resolution=60)\r\n # partials is a python list of numpy arrays\r\n # select a subset of most significant partials\r\n selected, noise = lt.select(partials, mindur=0.02, maxfreq=12000, minamp=-60, minbp=2)\r\n # print each partial as data\r\n for partial in selected:\r\n print(partial)\r\n # plot selected partials\r\n lt.plot_partials(selected)\r\n # now resynthesize both parts separately \r\n lt.partials_render(selected, outfile=\"selected.wav\")\r\n lt.partials_render(noise, outfile=\"noise.wav\")\r\n \r\n\r\nEach partial will be a numpy array of shape = (numbreakpoints, 5)\r\nwith the columns::\r\n\r\n time, frequency, amplitude, phase, bandwidth\r\n\r\n\r\nSee the example scripts in `bin` for more complete examples\r\n\r\n\r\nAuthor\r\n~~~~~~\r\n\r\nEduardo Moguillansky\r\n\r\neduardo dot moguillansky @ gmail dot com\r\n\r\n\r\nLicense\r\n~~~~~~~\r\n\r\nGPL\r\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "A wrapper around the partial-tracking library Loris",
"version": "1.6.2",
"project_urls": {
"Download": "https://github.com/gesellkammer/loristrck",
"Homepage": "https://github.com/gesellkammer/loristrck"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c2aaff22914b51d6443880ff1c0d810db7241200c6d63503e5a5dc7529ac7add",
"md5": "eacdc09bf16aeb99a93d345c3d519903",
"sha256": "6407bdc098f8a2b4c5fcdce4f1db921b52d446d9011be2648aee653cfcb9e1dc"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp310-cp310-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "eacdc09bf16aeb99a93d345c3d519903",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 1428897,
"upload_time": "2024-04-17T15:31:54",
"upload_time_iso_8601": "2024-04-17T15:31:54.316607Z",
"url": "https://files.pythonhosted.org/packages/c2/aa/ff22914b51d6443880ff1c0d810db7241200c6d63503e5a5dc7529ac7add/loristrck-1.6.2-cp310-cp310-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "714e60e71bef9fe24d0734c8d38cb064a01fe44d0498e03ddf8e8471876c416d",
"md5": "3d28c763fb0f289562778e3110678d46",
"sha256": "6185cde355cbd0f55eecef5f861832259d4cbc7ce6b4434009f71595a5bd1ff4"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp310-cp310-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "3d28c763fb0f289562778e3110678d46",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 622797,
"upload_time": "2024-04-17T15:30:32",
"upload_time_iso_8601": "2024-04-17T15:30:32.397953Z",
"url": "https://files.pythonhosted.org/packages/71/4e/60e71bef9fe24d0734c8d38cb064a01fe44d0498e03ddf8e8471876c416d/loristrck-1.6.2-cp310-cp310-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "99b81be14261ce29c265c2d31936ff2a68913bac67222b090c84c0a42dcf4827",
"md5": "d9425eaab67b95061099e13328eb1fbd",
"sha256": "d5cadb12fb294a3f304e832d1342ac4066c93477ceea9f57b337c022a8b0819b"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "d9425eaab67b95061099e13328eb1fbd",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 3424702,
"upload_time": "2024-04-17T15:34:33",
"upload_time_iso_8601": "2024-04-17T15:34:33.449682Z",
"url": "https://files.pythonhosted.org/packages/99/b8/1be14261ce29c265c2d31936ff2a68913bac67222b090c84c0a42dcf4827/loristrck-1.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8337e2cf201f3d5cd666eab9122bdfe596a7e58ca1c9ad3db02a23e0f4b57c63",
"md5": "c686484501fe96b1206d111406592e0a",
"sha256": "dcdc4f0ef661a869ffc638f347dde6c10cbd1ca19ad6a395a84b4585818bf56c"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "c686484501fe96b1206d111406592e0a",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 1185490,
"upload_time": "2024-04-17T15:27:47",
"upload_time_iso_8601": "2024-04-17T15:27:47.917950Z",
"url": "https://files.pythonhosted.org/packages/83/37/e2cf201f3d5cd666eab9122bdfe596a7e58ca1c9ad3db02a23e0f4b57c63/loristrck-1.6.2-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "78ad395fd16d6a1a3fa61d9591f35c10252ab584e880e3d6e98b9272efd1f25c",
"md5": "45ca27bf3c7edea1d34f2ad977329e2e",
"sha256": "cdf08805b3a2c8684c9edb6cbfe954c89311dce1d611033c3087c33fc9569b49"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp311-cp311-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "45ca27bf3c7edea1d34f2ad977329e2e",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 1429026,
"upload_time": "2024-04-17T15:31:56",
"upload_time_iso_8601": "2024-04-17T15:31:56.202867Z",
"url": "https://files.pythonhosted.org/packages/78/ad/395fd16d6a1a3fa61d9591f35c10252ab584e880e3d6e98b9272efd1f25c/loristrck-1.6.2-cp311-cp311-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "293730f34dabf57bc876af3b54b787f51c00d13af78e24f047359efa6469ab69",
"md5": "e435f92463e315795079f5995ab5c682",
"sha256": "bb25f82141eed211c33f5e8f1ba6df6c2f25a042b87e441471de464184682e12"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp311-cp311-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "e435f92463e315795079f5995ab5c682",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 622862,
"upload_time": "2024-04-17T15:30:33",
"upload_time_iso_8601": "2024-04-17T15:30:33.756215Z",
"url": "https://files.pythonhosted.org/packages/29/37/30f34dabf57bc876af3b54b787f51c00d13af78e24f047359efa6469ab69/loristrck-1.6.2-cp311-cp311-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "952f930147498bc5c4b3ec39c3fa50d0a1a196bdd1b649e87f19fe9793d80f44",
"md5": "c1d321ce710bb9969fff562faff84604",
"sha256": "89a98e8468f605b11e5b5a5876aee8563b33e7d9412be68709cfd8acac3c9ba6"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "c1d321ce710bb9969fff562faff84604",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 3478875,
"upload_time": "2024-04-17T15:34:36",
"upload_time_iso_8601": "2024-04-17T15:34:36.100557Z",
"url": "https://files.pythonhosted.org/packages/95/2f/930147498bc5c4b3ec39c3fa50d0a1a196bdd1b649e87f19fe9793d80f44/loristrck-1.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "829f6be33da71b0d8d7528969fe5a24441d1c3213204a5aa7e698c057e3a8278",
"md5": "bb8ab741dfc48d4ea0d33006a2a1689d",
"sha256": "e2758d20992da70f962c575de4111457141868bf29cbf23999782e184a77526e"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "bb8ab741dfc48d4ea0d33006a2a1689d",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 1185338,
"upload_time": "2024-04-17T15:28:09",
"upload_time_iso_8601": "2024-04-17T15:28:09.919540Z",
"url": "https://files.pythonhosted.org/packages/82/9f/6be33da71b0d8d7528969fe5a24441d1c3213204a5aa7e698c057e3a8278/loristrck-1.6.2-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ac4fea655e21591dcd0a4e33dd3a1727350a58f8ed29cc3e956558352a3c5189",
"md5": "48982de398f40b7afb4e5a2e2a4f13b7",
"sha256": "ad8da76c3a4300bdab55b9750d8f97976fb2ffafd206940526b11b8f21cc2d9b"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp312-cp312-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "48982de398f40b7afb4e5a2e2a4f13b7",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1427281,
"upload_time": "2024-04-17T15:31:58",
"upload_time_iso_8601": "2024-04-17T15:31:58.146217Z",
"url": "https://files.pythonhosted.org/packages/ac/4f/ea655e21591dcd0a4e33dd3a1727350a58f8ed29cc3e956558352a3c5189/loristrck-1.6.2-cp312-cp312-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "327517f76612621b8f93eff1014a5143f3ca2ea55563827584fdb7d011c262ce",
"md5": "d28c12dad09d834b2b8d5bee5af5cf69",
"sha256": "4c8a4bab24697cd743952f0f35d303a45198604186b3dfe51de2a1013af37c72"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp312-cp312-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "d28c12dad09d834b2b8d5bee5af5cf69",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 624229,
"upload_time": "2024-04-17T15:30:35",
"upload_time_iso_8601": "2024-04-17T15:30:35.301381Z",
"url": "https://files.pythonhosted.org/packages/32/75/17f76612621b8f93eff1014a5143f3ca2ea55563827584fdb7d011c262ce/loristrck-1.6.2-cp312-cp312-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ede9a8595a6fc62e2004576a8fbb2cfc68c93c4efe9d1f0ccc72d185b00c8b73",
"md5": "108924631fc3e53f2a8032dbf391e071",
"sha256": "d834b4ae218f90f8d122e4c881aadb9e5c78645a849df12c4b02abaa17feeb84"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "108924631fc3e53f2a8032dbf391e071",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 3462580,
"upload_time": "2024-04-17T15:34:38",
"upload_time_iso_8601": "2024-04-17T15:34:38.556869Z",
"url": "https://files.pythonhosted.org/packages/ed/e9/a8595a6fc62e2004576a8fbb2cfc68c93c4efe9d1f0ccc72d185b00c8b73/loristrck-1.6.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3001e53e4173e6ee1d2fbe7f97eb7b6df806993807b9dc56ca435bfd05716226",
"md5": "84c2100da89d63a34f58dab9af649933",
"sha256": "a18241ccdefe901ac66eaacf5d967d48272c70dd835741158c33f9b6986acde8"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "84c2100da89d63a34f58dab9af649933",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 1184762,
"upload_time": "2024-04-17T15:27:50",
"upload_time_iso_8601": "2024-04-17T15:27:50.761693Z",
"url": "https://files.pythonhosted.org/packages/30/01/e53e4173e6ee1d2fbe7f97eb7b6df806993807b9dc56ca435bfd05716226/loristrck-1.6.2-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c30c70135834d9734c30f79622ff1dfec7d8182b28a9c7b4b7008608fd9873e5",
"md5": "28815cc46023c2c061d70011a803946b",
"sha256": "05ee73b4954aca1fba62a24bfc1d615015c8f9412daea0231b24f7e2171aabf2"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp39-cp39-macosx_10_9_x86_64.whl",
"has_sig": false,
"md5_digest": "28815cc46023c2c061d70011a803946b",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 1430057,
"upload_time": "2024-04-17T15:32:01",
"upload_time_iso_8601": "2024-04-17T15:32:01.506177Z",
"url": "https://files.pythonhosted.org/packages/c3/0c/70135834d9734c30f79622ff1dfec7d8182b28a9c7b4b7008608fd9873e5/loristrck-1.6.2-cp39-cp39-macosx_10_9_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9fbc981431bb86fc42b15ff3101ac59094d50df9a8a528cce12fe08c5b60d32a",
"md5": "6b2f724b32452b65a9970276686dbde7",
"sha256": "050c2a8fb7519d98046b3509638592cd332a5ba93d7ebf33fe44eb7f8c2d0aa9"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp39-cp39-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "6b2f724b32452b65a9970276686dbde7",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 623348,
"upload_time": "2024-04-17T15:30:36",
"upload_time_iso_8601": "2024-04-17T15:30:36.593970Z",
"url": "https://files.pythonhosted.org/packages/9f/bc/981431bb86fc42b15ff3101ac59094d50df9a8a528cce12fe08c5b60d32a/loristrck-1.6.2-cp39-cp39-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "237fbb8f3f9850dad24433aff72769d71d4a930aee976d53aaa724efc19841a1",
"md5": "fc0632040ab464c2ea1ab7bdbd3be6b6",
"sha256": "498c6f4d693c837ef2c283f4881ce107b85757dd03b87bb138bb2fcd1225f2d1"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "fc0632040ab464c2ea1ab7bdbd3be6b6",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 3426955,
"upload_time": "2024-04-17T15:34:40",
"upload_time_iso_8601": "2024-04-17T15:34:40.371408Z",
"url": "https://files.pythonhosted.org/packages/23/7f/bb8f3f9850dad24433aff72769d71d4a930aee976d53aaa724efc19841a1/loristrck-1.6.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "61375ade73fb8c297630f1aeeff94a6003f0003907a4790fd6665a7e9bbb7e81",
"md5": "00a5ac3f5eeb3ede0eeb19750f2d7655",
"sha256": "fd88e4c7ddf1f9802f538da9e66454a9ca04e839b307daac0515014b03b868e8"
},
"downloads": -1,
"filename": "loristrck-1.6.2-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "00a5ac3f5eeb3ede0eeb19750f2d7655",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 1211879,
"upload_time": "2024-04-17T15:27:48",
"upload_time_iso_8601": "2024-04-17T15:27:48.116327Z",
"url": "https://files.pythonhosted.org/packages/61/37/5ade73fb8c297630f1aeeff94a6003f0003907a4790fd6665a7e9bbb7e81/loristrck-1.6.2-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-17 15:31:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gesellkammer",
"github_project": "loristrck",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "loristrck"
}