Dynamic Range (DR) algorithm implementation in python
Project description
Dynamic Range meter
Analyze audio files for their Dynamic Range (DR) as proposed by the Pleasurize Music Foundation.
The algorithm has been reverse-engineered using the available information and officially endorsed software to calcuate the DR value. The output of drmeter.py
is probably within 99.9% accuracy towards the official DR tools.
This project is in no way affiliated with the Pleasurize Music Foundation or its Dynamic Range Project.
Requirements
In order to run the DRmeter, you need to have the following Python packages installed. Use the included Pipfile
to install the dependencies via Pipenv (pipenv install
)
- Numpy (v0.14.5)
- PySoundFile (v0.10.2)
The function has been developed using Python 3.6 on a Mac. The supported audio file formats are given by PySoundFile's underlying libsndfile library.
Usage
./drmeter.py <file or path>
Example output
DR analysis results:
====================
/Volumes/media/music/Coldplay/Mylo Xyloto/01-01 - Mylo Xyloto.flac
: Chann 1 :: Chann 2 ::
Peak : -2.49 dB :: -3.08 dB ::
RMS : -14.60 dB :: -14.59 dB ::
DR : 7.76 :: 7.27 ::
Which closely matches the results within the Dymanic Range DB.
License
This project is under MIT license, see LICENSE
for details.
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
File details
Details for the file drmeter-0.2.0a0.tar.gz
.
File metadata
- Download URL: drmeter-0.2.0a0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31970c57a4a63a9b40c4cf64726c47a64ddf73449d16f7ff7e31e8fafd97830 |
|
MD5 | ebaed130e31a96fadcaa2449d87a34a6 |
|
BLAKE2b-256 | 932d74ae46a4995012c3df9d83150bd192a351dd4cb8101015ac1a1b0d8b603a |
File details
Details for the file drmeter-0.2.0a0-py3-none-any.whl
.
File metadata
- Download URL: drmeter-0.2.0a0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f132ee3ac58751cb80f2ed7f68cdd85ea3f6aacdeed8c81c6adfd40f2b2c10d |
|
MD5 | 9dd485bf77277c365bdd4fcf5fce73cf |
|
BLAKE2b-256 | 20a992a805c4caf1c8476170fcc9b69445d387065deebf53f39f34aaba1d02ee |