musiclib
set of tools to work with scales, modes, modulations, chord progressions, voice leading, rhythm and more
install
install from pypi
pip install musiclib
or install the latest version from github
pip install git+https://github.com/tandav/musiclib
development
pip install -e .[dev]
examples
>>> from musiclib.scale import Scale
>>> from musiclib.noteset import SpecificNoteSet
>>> from musiclib.noterange import NoteRange
>>> scale = Scale.from_name('C', 'major')
>>> scale.root
Note('C')
>>> scale.notes
frozenset({Note('C'),
Note('D'),
Note('E'),
Note('F'),
Note('G'),
Note('A'),
Note('B')})
>>> scale.bits
'101011010101'
>>> scale.intervals
frozenset({0, 2, 4, 5, 7, 9, 11})
Scale.from_name('C', 'phrygian')
SpecificNoteSet.from_str('C1_e1_G1_C2_b2_E3')
NoteRange(SpecificNote('C', 1), SpecificNote('B', 3))
Metadata
Release files for musiclib 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| musiclib-2.6.0.tar.gz | 30.7 kB | Without provenance | Details for musiclib-2.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| musiclib-2.6.0-py3-none-any.whl | Python 3 | none | any | Details for musiclib-2.6.0-py3-none-any.whl |
Total release size: 71.2 kB
Release files / musiclib-2.6.0.tar.gz
| Download URL | musiclib-2.6.0.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9472263540fc585a6b67358c565b05d1c9654854d64c2554f379589e477757b9
|
|
BLAKE2b-256 checksum How to use checksums |
705bbb9d3c391e20c5121742c7af9d54985a57b4005654132473317109d03667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / musiclib-2.6.0-py3-none-any.whl
| Download URL | musiclib-2.6.0-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a8f7b31eaa74d10c62899709584dcd3a518b2d6ad09d1bcd1a20306e5e73a9f
|
|
BLAKE2b-256 checksum How to use checksums |
327dfc33e719286a27495a805cb916fc6226fc32f851b306e67cbc0124978814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for musiclib 2.6.0
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.