{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Topic :: Multimedia :: Sound/Audio" ], "description": "# Lyon's auditory model for Python\nPython port of Lyon's model calculation from Auditory Toolbox.\nOriginal version of Auditory Toolbox is written in C and MATLAB by Malcolm Slaney.\n\n## Package contents\n* Modified `soscascade.c`, `agc.c` and `sosfilters.c` (removed MEX-related part).\n* `ctypes` wrapper for `soscascade()`, `agc()` and `sosfilters()` calls.\n* Translation from MATLAB to Python for files necessary for successfull call to `LyonPassiveEar()`.\n\n## Dependecies\nIf you plan to build manually and run tests, you'll need `libcheck` installed.\nOn Ubuntu 18.10 run:\n\n``` bash\nsudo apt-get install check\n```\n\n## Installation\n### Manual\nBuild a library:\n\n``` bash\nmake lib\n```\n\nThis would result in `liblyon.so` shared library. Verify that library is properly built by running a test suite:\n\n``` bash\nmake test\n```\n\n## Usage\nThe following code computes cochleogram for a sample sound:\n\n``` python\nfrom lyon import LyonCalc\n\ncalc = LyonCalc()\nwaveform, sample_rate = load('audio/file/path.wav')\ndecimation_factor = 64\ncoch = calc.lyon_passive_ear(waveform, sample_rate, decimation_factor)\nprint(coch.shape)\n```\n\nThe code above should output shape of resulting auditory nerve response: `[, 86]`.\n\nSee `lyon_examples.py` for examples on running other functions.\n\n## Links\n* [AuditoryToolbox page](https://engineering.purdue.edu/~malcolm/interval/1998-010/)\n* [Report describing function in toolbox](https://engineering.purdue.edu/~malcolm/interval/1998-010/AuditoryToolboxTechReport.pdf)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sciforce/lyon", "keywords": "", "license": "Apache License 2.0", "maintainer": "Dmytro Tkanov", "maintainer_email": "dtkanov@sciforce.solutions", "name": "lyon", "package_url": "https://pypi.org/project/lyon/", "platform": "", "project_url": "https://pypi.org/project/lyon/", "project_urls": { "Homepage": "https://github.com/sciforce/lyon" }, "release_url": "https://pypi.org/project/lyon/1.0.0/", "requires_dist": [ "numpy" ], "requires_python": "", "summary": "Python port of Lyon's model from AuditoryToolbox", "version": "1.0.0" }, "last_serial": 4806268, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0a7a9f4b9581a176976588d83c67dac6", "sha256": "6333a2c53fb4c4053b7d95003f60fe1fa7667c9a34a823a7194682fc5bd504f4" }, "downloads": -1, "filename": "lyon-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0a7a9f4b9581a176976588d83c67dac6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12868, "upload_time": "2019-02-11T14:17:48", "url": "https://files.pythonhosted.org/packages/fb/35/5874a84caaf5aa76a948040e3750aa01f85a7f292df415d0b8d1e3913adb/lyon-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61b7af58f36d12a5082cd0123fe97ae5", "sha256": "eb5cfcd9f1c55d816446101efccb0195c2c5afb97ffb3f2b88c8a4962d4f483f" }, "downloads": -1, "filename": "lyon-1.0.0.tar.gz", "has_sig": false, "md5_digest": "61b7af58f36d12a5082cd0123fe97ae5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9282, "upload_time": "2019-02-11T14:17:51", "url": "https://files.pythonhosted.org/packages/3d/a4/91e2a3e1faf44c9abbcd56b55e9888e5db33d138edc763e1ac6f1b04523a/lyon-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a7a9f4b9581a176976588d83c67dac6", "sha256": "6333a2c53fb4c4053b7d95003f60fe1fa7667c9a34a823a7194682fc5bd504f4" }, "downloads": -1, "filename": "lyon-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0a7a9f4b9581a176976588d83c67dac6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12868, "upload_time": "2019-02-11T14:17:48", "url": "https://files.pythonhosted.org/packages/fb/35/5874a84caaf5aa76a948040e3750aa01f85a7f292df415d0b8d1e3913adb/lyon-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "61b7af58f36d12a5082cd0123fe97ae5", "sha256": "eb5cfcd9f1c55d816446101efccb0195c2c5afb97ffb3f2b88c8a4962d4f483f" }, "downloads": -1, "filename": "lyon-1.0.0.tar.gz", "has_sig": false, "md5_digest": "61b7af58f36d12a5082cd0123fe97ae5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9282, "upload_time": "2019-02-11T14:17:51", "url": "https://files.pythonhosted.org/packages/3d/a4/91e2a3e1faf44c9abbcd56b55e9888e5db33d138edc763e1ac6f1b04523a/lyon-1.0.0.tar.gz" } ] }