sortbykey
Sort audio files by key
Getting Started
Pre-requisites
- Python 3.13+
- Essentia >= 2.1b6.dev1389
- xxhash >= 3.6.0
See requirements.txt for details. Python modules should be installed with pip.
Installation
It is recommended that you install this package in a Python Virtual Environment. This README will take you through how to do so.
- Clone the repository, or otherwise download the source code.
- Create a virtual environment using
python3 -m venv env/ - Activate the virtual enviroment. POSIX Bash:
source env/bin/activate. Windows PowerShell:<venv>\Scripts\Activate.ps1. Windows Batch:<venv>\Scripts\activate.bat. - Install the package using
python3 -m pip install ..
Usage
usage: sortbykey [-h] -i INPUT_DIRECTORY -o OUTPUT_DIRECTORY [-j NUM_CORES]
[-a ATONALITY_CONFIDENCE_LIMIT] [-c]
Sort audio files by key.
options:
-h, --help show this help message and exit
-i, --input INPUT_DIRECTORY
Required. Input directory for the unsorted audio
files.
-o, --output OUTPUT_DIRECTORY
Required. Output directory for the sorted audio files.
-j, --jobs NUM_CORES Number of concurrent jobs to run for analyzing.
Defaults to all but one core on multi-core machines,
one core on single-core machines.
-a, --atonality ATONALITY_CONFIDENCE_LIMIT
If the analyzer isn't confident of any key to this
percent, it will label the sample as atonal. Defaults
to 0.5.
-c, --copy Optional. Specify this flag to copy files instead of
creating links to them.
Authors
- Willow Ciesialka
License
Licensed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3. See LICENSE for details.
Thanks to...
- Dakota Price
- Essentia team
- xxhash team
Release files for sortbykey 2026.5.19.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sortbykey-2026.5.19.2.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sortbykey-2026.5.19.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.5 kB
Release files / sortbykey-2026.5.19.2.tar.gz
| Download URL | sortbykey-2026.5.19.2.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c5fd10ddd3b31708dbbbde4a4e322ad2071d15cc8030d4fc0575591f41a9b1d
|
|
BLAKE2b-256 checksum How to use checksums |
d8f8e00d934f6abea4240957c2981784015f811a6979a4907a5016ad8e04c4d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / sortbykey-2026.5.19.2-py3-none-any.whl
| Download URL | sortbykey-2026.5.19.2-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddfdf473e8172f7cf8760f4d1799ba56093c79f2e2c9c350282fb01c37af4a62
|
|
BLAKE2b-256 checksum How to use checksums |
699e1168cc11ec8e5749d29b54c574b80a6df004d0880c3c081c2e63a1d82b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|