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.1.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.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: musictool-1.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c182cd52cbcbee4b1c11f27c2aed3e0c3333954dd91a6f49c17fd349b7992f21
MD5 94b7f4b22550c4d2d1f9b102401cc914
BLAKE2b-256 243f38f18d6ddc1b68153a3b83ce80c2683956551de9659337065ad5096875bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: musictool-1.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3167d7d7ba2616beee2b00b37e2034735efa32f33791585b64cd8c42e122da6
MD5 521c36ce07f7bda051b06a8f3ffa3a7d
BLAKE2b-256 c39df4dd2681711f71f8e5579fbd83c7d1f41fdc323ab98ae1bae1102bf7e7fe

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