Memory map WAVE or raw audio files
Project description
🌊 Memory map WAVE files into numpy arrays 🌊
The actual samples from a WAVE file appear as entries in a numpy array.
See documentation for numpy.memmap
If you open the file in ‘r+’ mode, you can even rewrite the samples on disk that way.
API
Class wavemap.RawMap
“Memory map raw audio data from a disk file into a numpy matrix
wavemap.RawMap.__new__()
wavemap.RawMap.__new__(
cls,
filename,
dtype,
channels,
offset=0,
length=None,
mode='r',
shape=None,
order=None,
always_2d=False,
warn=<function warn at 0x10ea177b8>,
)
Create and return a new object. See help(type) for accurate signature.
Class wavemap.WaveReadMap
“Memory-map an existing wave file into a numpy matrix
wavemap.WaveReadMap.__new__()
wavemap.WaveReadMap.__new__(
cls,
filename,
mode='r',
order=None,
always_2d=False,
warn=<function warn at 0x10ea177b8>,
)
Create and return a new object. See help(type) for accurate signature.
Class wavemap.WaveWriteMap
“Memory-map a new wave file
wavemap.WaveWriteMap.__new__()
wavemap.WaveWriteMap.__new__(
cls,
filename,
dtype,
shape,
sample_rate,
length=None,
warn=<function warn at 0x10ea177b8>,
)
Create and return a new object. See help(type) for accurate signature.
wavemap.WaveMap(filename, mode='r', *args, **kwargs)
Return an instance of WaveReadMap or WaveWriteMap, depending on mode.
See the documentation of these classes for full signatures.
(automatically generated by doks on 2020-12-27T18:47:05.833215)
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavemap-0.9.1.tar.gz.
File metadata
- Download URL: wavemap-0.9.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f01766154bb3dded23959bfee8ffdd6d3b6a62b0faf6ac4a79f642222612baca
|
|
| MD5 |
82478cc53594ddd28a2a58334d290a4c
|
|
| BLAKE2b-256 |
0e01e63f2c154e73d9f7dee9e47b2048664a1fcf87c67c87b620081d45b54e42
|
File details
Details for the file wavemap-0.9.1-py3-none-any.whl.
File metadata
- Download URL: wavemap-0.9.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71492cdcb3a34daf71574328e8aaef9927075aee4321b256d8672cf2e276b17e
|
|
| MD5 |
237b0de31b023e5bf3ac22c4fc07c643
|
|
| BLAKE2b-256 |
42d8a130ef8dd5f29934cc1480e9325d2859e9ec2a9031d7e8c7257450caad54
|