Skip to main content

audiorepr

A python package to represent data using musical notes.

Documentation Status

Installation

pip install audiorepr

Examples

Demo in examples/covid19.py.

import pandas as pd
from audiorepr import audiolize

ecdc = "https://gist.githubusercontent.com/emptymalei/90869e811b4aa118a7d28a5944587a64/raw/1534670c8a3859ab3a6ae8e9ead6795248a3e664/ecdc%2520covid%252019%2520data"

df = pd.read_csv(ecdc)

audiolize.audiolizer(df, target="ecdc-covid19-by-date.midi", pitch_columns=["DE", "AT", "FR"])
  • By default, we use a min-max mapper to map the data onto midi notes 16 to 96. You can easily write your own mapper or simply map your own data on to the range [0, 126].
  • The specified pandas dataframe columns will be mapped onto different tracks.
  • audiolize.audiolizer also accepts numpy array or list as data input.

Play the output midi file using the player of your choice.

  • timidity(Mac, Win, Linux): a midi play in your terminal.
  • GarageBand(Mac): free software by Apple. GarageBand allows you to change tune the audio by changing the volumes, instruments, tempo, etc.

Documentation

[WIP]

Development

  1. Create a new environment: conda create -n audiorepr python=3.7 pip
  2. Instal requirements: pip install -r requirements

Generate Documentation

The documentation is generated through sphinx.

  1. cd docs
  2. make html

The generated documentation is located inside build/html.

To update the documentation, update the .rst files in the source folder.

Publishing

Publishing to PYPI service:

  1. Run python setup.py sdist bdist_wheel
  2. Test upload: python -m twine upload --repository testpypi dist/*
  3. Upload:
    python -m twine upload dist/*
    

Metadata

Release files for audiorepr 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audiorepr 0.0.2
File Size Uploaded Provenance Actions
audiorepr-0.0.2.tar.gz 5.2 kB Without provenance Details for audiorepr-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for audiorepr 0.0.2
File Interpreter ABI Platform Actions
audiorepr-0.0.2-py3-none-any.whl Python 3 none any Details for audiorepr-0.0.2-py3-none-any.whl

Total release size: 12.3 kB

Release files / audiorepr-0.0.2.tar.gz

Download URL audiorepr-0.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf7cf990e96a027876fa69f0d9d10dd4e0dc3a61597c82ad5586c1d88127a2de
BLAKE2b-256 checksum
How to use checksums
1a8a44a8db64adef2a2f14cac5e24033d987a83d28173ab1ff996bfec051dfda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6

Release files / audiorepr-0.0.2-py3-none-any.whl

Download URL audiorepr-0.0.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13dceff3547622a6841855c4a20cb3fe265f6bd5fa60606ee907694e38ef345c
BLAKE2b-256 checksum
How to use checksums
856fa6f03bb8fa04efb6b03b93affc527a0b674073ae726a10ded378bcde1ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6

Security for audiorepr 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page