# Benford MIDI Analysis
This project provides a Python package for analyzing MIDI files in accordance with Benford's Law. It includes functionalities for statistical analysis, compliance testing, and command-line interface usage.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
## Installation
To install the package, clone the repository and install the required dependencies:
```bash
git clone https://github.com/ajprice16/benford-midi-analysis.git
cd benford-midi-analysis
pip install -r requirements.txt
```
Alternatively, you can install the package directly using pip:
```bash
pip install .
```
## Usage
You can use the package from the command line or import it into your Python scripts. The main functionalities include:
- Analyzing MIDI files for Benford's Law compliance.
- Comparing compliance between two sets of MIDI files.
For command-line usage, you can run:
```bash
python -m benford_midi.cli
```
## Examples
Check the `examples` directory for usage examples:
- `basic_usage.py`: A simple example demonstrating basic functionality.
- `comparison_example.py`: An example showcasing how to compare two sets of MIDI files.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/ajprice16/benford-midi-analysis",
"name": "benford-midi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "benford, midi, analysis, statistics, music",
"author": "Alex Price",
"author_email": "Alex Price <ajprice@mail.wlu.edu>",
"download_url": "https://files.pythonhosted.org/packages/42/ff/e858bce740f1daef75f86783384ae49a7614336c805e487007b3888b89fd/benford_midi-1.0.0.tar.gz",
"platform": null,
"description": "# Benford MIDI Analysis\n\nThis project provides a Python package for analyzing MIDI files in accordance with Benford's Law. It includes functionalities for statistical analysis, compliance testing, and command-line interface usage.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nTo install the package, clone the repository and install the required dependencies:\n\n```bash\ngit clone https://github.com/ajprice16/benford-midi-analysis.git\ncd benford-midi-analysis\npip install -r requirements.txt\n```\n\nAlternatively, you can install the package directly using pip:\n\n```bash\npip install .\n```\n\n## Usage\n\nYou can use the package from the command line or import it into your Python scripts. The main functionalities include:\n\n- Analyzing MIDI files for Benford's Law compliance.\n- Comparing compliance between two sets of MIDI files.\n\nFor command-line usage, you can run:\n\n```bash\npython -m benford_midi.cli\n```\n\n## Examples\n\nCheck the `examples` directory for usage examples:\n\n- `basic_usage.py`: A simple example demonstrating basic functionality.\n- `comparison_example.py`: An example showcasing how to compare two sets of MIDI files.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package for analyzing MIDI files for compliance with Benford's Law",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/ajprice16/benford-midi-analysis",
"Issues": "https://github.com/ajprice16/benford-midi-analysis/issues",
"Repository": "https://github.com/ajprice16/benford-midi-analysis"
},
"split_keywords": [
"benford",
" midi",
" analysis",
" statistics",
" music"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2f7373ec341537934ba63050ceda07dbcae7535ea90435f944ebc2fafd3ea1d0",
"md5": "6c30801c7e36f636523caceb79128e83",
"sha256": "f172a1a23dc1f2f103a70a95bb37a4ecb10341064c1f75be55d5fe32c3c9d946"
},
"downloads": -1,
"filename": "benford_midi-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6c30801c7e36f636523caceb79128e83",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 15864,
"upload_time": "2025-07-12T01:28:19",
"upload_time_iso_8601": "2025-07-12T01:28:19.920999Z",
"url": "https://files.pythonhosted.org/packages/2f/73/73ec341537934ba63050ceda07dbcae7535ea90435f944ebc2fafd3ea1d0/benford_midi-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "42ffe858bce740f1daef75f86783384ae49a7614336c805e487007b3888b89fd",
"md5": "4b38ed7a73fbd9c9b9a9c4ddd8ba6559",
"sha256": "58a5edac70c4a4de6c8f6a9dc29f4e42194cc91800e5f25e2c3d63ba1daa18d1"
},
"downloads": -1,
"filename": "benford_midi-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4b38ed7a73fbd9c9b9a9c4ddd8ba6559",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 21570,
"upload_time": "2025-07-12T01:28:21",
"upload_time_iso_8601": "2025-07-12T01:28:21.273217Z",
"url": "https://files.pythonhosted.org/packages/42/ff/e858bce740f1daef75f86783384ae49a7614336c805e487007b3888b89fd/benford_midi-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 01:28:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ajprice16",
"github_project": "benford-midi-analysis",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.20.0"
]
]
},
{
"name": "pandas",
"specs": [
[
">=",
"1.3.0"
]
]
},
{
"name": "matplotlib",
"specs": [
[
">=",
"3.5.0"
]
]
},
{
"name": "scipy",
"specs": [
[
">=",
"1.7.0"
]
]
},
{
"name": "mido",
"specs": [
[
">=",
"1.2.0"
]
]
},
{
"name": "tqdm",
"specs": [
[
">=",
"4.60.0"
]
]
}
],
"lcname": "benford-midi"
}