Skip to main content

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

(wavemap.py, 57-118)

“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>,
)

(wavemap.py, 60-114)

Create and return a new object. See help(type) for accurate signature.

Class wavemap.WaveReadMap

(wavemap.py, 120-168)

“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>,
)

(wavemap.py, 123-168)

Create and return a new object. See help(type) for accurate signature.

Class wavemap.WaveWriteMap

(wavemap.py, 170-256)

“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>,
)

(wavemap.py, 183-256)

Create and return a new object. See help(type) for accurate signature.

wavemap.WaveMap(filename, mode='r', *args, **kwargs)

(wavemap.py, 262-271)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wavemap-0.9.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wavemap-0.9.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for wavemap-0.9.1.tar.gz
Algorithm Hash digest
SHA256 f01766154bb3dded23959bfee8ffdd6d3b6a62b0faf6ac4a79f642222612baca
MD5 82478cc53594ddd28a2a58334d290a4c
BLAKE2b-256 0e01e63f2c154e73d9f7dee9e47b2048664a1fcf87c67c87b620081d45b54e42

See more details on using hashes here.

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

Hashes for wavemap-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71492cdcb3a34daf71574328e8aaef9927075aee4321b256d8672cf2e276b17e
MD5 237b0de31b023e5bf3ac22c4fc07c643
BLAKE2b-256 42d8a130ef8dd5f29934cc1480e9325d2859e9ec2a9031d7e8c7257450caad54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page