musictool
set of tools to work with scales, modes, modulations, chord progressions, voice leading, rhythm and more
install
install from pypi
pip install musictool
or install the latest version from github
pip install git+https://github.com/tandav/musictool
development
pip install -e .[dev]
examples
>>> from musictool.scale import Scale
>>> from musictool.chord import Chord
>>> scale = Scale.from_name('C', 'major')
>>> scale.root
Note(name=C)
>>> scale.notes
frozenset({Note(name=C),
Note(name=D),
Note(name=E),
Note(name=F),
Note(name=G),
Note(name=A),
Note(name=B)})
>>> scale.bits
'101011010101'
>>> scale.intervals
frozenset({0, 2, 4, 5, 7, 9, 11})
>>> scale.triads
(CEG/C, DFA/D, EGB/E, FAC/F, GBD/G, ACE/A, BDF/B)
>>> chord = Chord.from_str('CEG/C')
>>> chord == scale.triads[0]
True
Metadata
Release files for musictool 1.7.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 | |
|---|---|---|---|
| musictool-1.7.0.tar.gz | 21.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| musictool-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.3 kB
Release files / musictool-1.7.0.tar.gz
| Download URL | musictool-1.7.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa245bce847a28900db006fa821f8aa7b1156a9da69203d848749ac8a7aaa30f
|
|
BLAKE2b-256 checksum How to use checksums |
596d065b420180674c1604afde3240aeb45e328fdb6293d98ad245d3c046003e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / musictool-1.7.0-py3-none-any.whl
| Download URL | musictool-1.7.0-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27108b06c2a96cc91f5541388861c120572233da1c3dbb399156c5c0ce574ab8
|
|
BLAKE2b-256 checksum How to use checksums |
e155c6368c8a8a8aece1b722183407b1f668e74e4a559e6260c6369471232dfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|