set of tools to work with scales, modes, modulations, chord progressions, voice leading, rhythm and more
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
musictool-1.7.0.tar.gz
(21.1 kB
view hashes)
Built Distribution
musictool-1.7.0-py3-none-any.whl
(27.2 kB
view hashes)
Close
Hashes for musictool-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27108b06c2a96cc91f5541388861c120572233da1c3dbb399156c5c0ce574ab8 |
|
MD5 | 23b34cf2b61854040402ce0dbf661d7c |
|
BLAKE2b-256 | e155c6368c8a8a8aece1b722183407b1f668e74e4a559e6260c6369471232dfa |