Extract the envelope of a digital signal
Project description
Envelope
Python module to extract the envelope of signals.
More information in this paper
Functions
This module implements 3 functions:
read_wav("path/to/mono/signal.wav"), that returns a tuple (W, fps), where W is a numpy array and fps is an int with the value of the frame rate of the file.
save_wav(signal, path = "test.wav", fps = 44100), that saves a numpy array as a .wav file
get_frontiers(W), that returns a tuple (pos_idxs, neg_idxs) with the indexes of the positive and negative frontiers of a numpy array representing the samples of a discrete function. If this function is called from a compatible setup (currently, Windows 64bit), it computes the frontiers faster via specialized native code. A fall-back version in pure Python is also provided, in which case a warning is printed indicated that a slower mode is being used. In both cases, the usage is the same.
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
Built Distribution
Hashes for signal_envelope-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045484a37f4d5e0318d1be3957a728cf2ef12a09f46c0c2932a753bb7df2cb20 |
|
MD5 | 756243c4b57b8020fe38700b7b26be94 |
|
BLAKE2b-256 | 66fe321a60b7904651b428e7c8013b686a40f026493352358e408dbbdec122d8 |