A package for recording, reading, manipulating, playing and writing sound files
Project description
audiomath is a package for Python programmers who want to record, manipulate, visualize or play sound waveforms. It allows you to:
Represent sounds as numeric arrays via the third-party Python package numpy (required). The arrays are contained within high-level objects, allowing common operations to be performed with minimal coding—for example: slicing and concatenation in time, selection and stacking of channels, resampling, mixing, rescaling and modulation.
Plot the resulting waveforms, via the third-party Python package matplotlib (optional).
Read and write uncompressed .wav files (via the Python standard library).
Read other audio formats using the third-party AVbin library (binaries are included in the package, for a selection of platforms).
Record and play back sounds using the third-party PortAudio library (binaries are included in the package, for a selection of platforms).
Play sounds using the alternative PsychPortAudio back-end, from the (optional) psychtoolbox package, allowing very precise control of latency
Plug in other recording/playback back-ends with moderate development effort.
See https://audiomath.readthedocs.io for full documentation and installation instructions.
If you use audiomath in your work, please cite:
Hill NJ, Mooney SWJ & Prusky GT (2020). audiomath: a Neuroscientist’s Sound Toolkit. PsyArXiv preprint. https://doi.org/10.31234/osf.io/fhma9
@article{hill2020audiomath, author = {Hill, N. Jeremy and Mooney, Scott W. J. and Prusky, Glen T.}, title = {{audiomath}: a Neuroscientist's Sound Toolkit}, journal = {PsyArXiv preprint}, month = {April}, year = {2020}, date = {2020-04-21}, doi = {10.31234/osf.io/fhma9}, url = {https://doi.org/10.31234/osf.io/fhma9}, }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for audiomath-1.15.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe62580e3b3902794284ede2dafcdb24a81400c524dc69e93c84a54b8b89be34 |
|
MD5 | b7ea76b73f1f6ecf2acd59a136fe4bdd |
|
BLAKE2b-256 | 1ef3c8fe08bf4dfd28499e9029fedb6a7c446b99a98ee11c48578343acb79ff7 |