Skip to main content

Twelve-tone matrix to generate dodecaphonic melodies

Project description

Twelve-tone matrix to generate dodecaphonic melodies.

Following a process created by the composer Arnold Schoenberg, this library computes a matrix to create twelve-tone serialism melodies which compose each of the 12 semitones of the chromatic scale with equal importance.

  • Free software: BSD license

Installation

pip install twelve-tone

Quick Start

>>> from twelve_tone.composer import Composer
>>> c = Composer()
>>> c.compose()
>>> c.get_melody()
['C# / Db', 'A# / Bb', 'F', 'D', 'G# / Ab', 'D# / Eb', 'F# / Gb',
    'A', 'C', 'G', 'B', 'E']

Documentation

https://python-twelve-tone.readthedocs.io/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.1.0 (2016-08-18)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

twelve_tone-0.1.0-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file twelve_tone-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for twelve_tone-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c78816f7984374f9e5e8cf3a02da4c5ff35b8ef014f845d06330ede49b14c6c0
MD5 d344ac9f2097a441a1cb496cd6f3d089
BLAKE2b-256 d5b3d87121c154f817d065dddb3f08f092c9c8ea6e9bced043d36a661e499eab

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