Skip to main content

Lyon's auditory model for Python

Python port of Lyon's model calculation from Auditory Toolbox. Original version of Auditory Toolbox is written in C and MATLAB by Malcolm Slaney.

Package contents

  • Modified soscascade.c, agc.c and sosfilters.c (removed MEX-related part).
  • ctypes wrapper for soscascade(), agc() and sosfilters() calls.
  • Translation from MATLAB to Python for files necessary for successfull call to LyonPassiveEar().

Dependecies

If you plan to build manually and run tests, you'll need libcheck installed. On Ubuntu 18.10 run:

sudo apt-get install check

Installation

Manual

Build a library:

make lib

This would result in liblyon.so shared library. Verify that library is properly built by running a test suite:

make test

Usage

The following code computes cochleogram for a sample sound:

from lyon import LyonCalc

calc = LyonCalc()
waveform, sample_rate = load('audio/file/path.wav')
decimation_factor = 64
coch = calc.lyon_passive_ear(waveform, sample_rate, decimation_factor)
print(coch.shape)

The code above should output shape of resulting auditory nerve response: [<number of samples / decimation_factor>, 86].

See lyon_examples.py for examples on running other functions.

Metadata

Release files for lyon 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lyon 1.0.0
File Size Uploaded Provenance Actions
lyon-1.0.0.tar.gz 9.3 kB Without provenance Details for lyon-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lyon 1.0.0
File Interpreter ABI Platform Actions
lyon-1.0.0-py3-none-any.whl Python 3 none any Details for lyon-1.0.0-py3-none-any.whl

Total release size: 22.1 kB

Release files / lyon-1.0.0.tar.gz

Download URL lyon-1.0.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eb5cfcd9f1c55d816446101efccb0195c2c5afb97ffb3f2b88c8a4962d4f483f
BLAKE2b-256 checksum
How to use checksums
3da491e2a3e1faf44c9abbcd56b55e9888e5db33d138edc763e1ac6f1b04523a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

Release files / lyon-1.0.0-py3-none-any.whl

Download URL lyon-1.0.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6333a2c53fb4c4053b7d95003f60fe1fa7667c9a34a823a7194682fc5bd504f4
BLAKE2b-256 checksum
How to use checksums
fb355874a84caaf5aa76a948040e3750aa01f85a7f292df415d0b8d1e3913adb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

Security for lyon 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page