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.5.1.tar.gz (21.0 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.5.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for musictool-1.5.1.tar.gz
Algorithm Hash digest
SHA256 7844ddd063abd2072273e742b016b3cc1c8f86b39994427d0032b262c5e5143f
MD5 c0a85afca237c710a67501fc5f405d3d
BLAKE2b-256 2cf806b0449621531e9c567aff02914164182d9fe1ac762ffc0b7f5b009b7726

See more details on using hashes here.

File details

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

File metadata

  • Download URL: musictool-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 27.1 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66d69eba1cf1eb93737d35e184b98279f223f871bf34ffa78ec79bf9d0bbe81f
MD5 11d3248d081d1ab89bdddf4ab7dc298f
BLAKE2b-256 b7f9fc95a1aa9a4be4f9336310c5413fc1fd7f4d2204a07992e981f8cdb5d972

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