Skip to main content

set of tools to work with scales, modes, modulations, chord progressions, voice leading, rhythm and more

Project description

GitHub tag (latest by date)

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


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.6.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musictool-1.6.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file musictool-1.6.0.tar.gz.

File metadata

  • Download URL: musictool-1.6.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for musictool-1.6.0.tar.gz
Algorithm Hash digest
SHA256 4eed9a1ae77df7bea89afe6f893a4a3ea35c8073721454fa90a8986dcebabbfe
MD5 2dea34c24b442c7297a738c5e06ad6a2
BLAKE2b-256 6898cfa35b71623ca2ee22f1a2a5b69c82ceaba5a85871b470bf5888fcd59760

See more details on using hashes here.

File details

Details for the file musictool-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: musictool-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for musictool-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc171d8d07852ae66b168e2b7ddda4e52f1b34ccacdba49c53e2e744e3618435
MD5 86eecbda9c9884fe7d7c543208944052
BLAKE2b-256 bbec0a6a0b4a51dd852b923cd1db8de342322f3669f24c09ac9b8b4849bdc11b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page