{"id":16461509,"url":"https://github.com/accraze/python-twelve-tone","last_synced_at":"2025-03-16T18:31:23.541Z","repository":{"id":47469134,"uuid":"66051664","full_name":"accraze/python-twelve-tone","owner":"accraze","description":":notes: 12-tone matrix to generate dodecaphonic melodies :notes:","archived":false,"fork":false,"pushed_at":"2021-08-30T16:13:20.000Z","size":72,"stargazers_count":71,"open_issues_count":10,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-11T11:45:58.611Z","etag":null,"topics":["matrix","midi","music-composition","music-generation","numpy","twelve-tone"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/twelve-tone","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/accraze.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-19T04:06:28.000Z","updated_at":"2023-03-27T10:08:52.000Z","dependencies_parsed_at":"2022-08-27T01:52:34.717Z","dependency_job_id":null,"html_url":"https://github.com/accraze/python-twelve-tone","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fpython-twelve-tone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fpython-twelve-tone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fpython-twelve-tone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accraze%2Fpython-twelve-tone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accraze","download_url":"https://codeload.github.com/accraze/python-twelve-tone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826788,"owners_count":20354220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matrix","midi","music-composition","music-generation","numpy","twelve-tone"],"created_at":"2024-10-11T11:08:25.748Z","updated_at":"2025-03-16T18:31:23.101Z","avatar_url":"https://github.com/accraze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\nOverview\n========\n\n.. start-badges\n\n.. list-table::\n    :stub-columns: 1\n\n    * - docs\n      - |docs|\n    * - tests\n      - |travis| |codecov|\n    * - package\n      - |version| |wheel| |supported-versions|\n\n.. |docs| image:: https://readthedocs.org/projects/python-twelve-tone/badge/?style=flat\n    :target: https://readthedocs.org/projects/python-twelve-tone\n    :alt: Documentation Status\n\n.. |travis| image:: https://travis-ci.org/accraze/python-twelve-tone.svg?branch=master\n    :alt: Travis-CI Build Status\n    :target: https://travis-ci.org/accraze/python-twelve-tone\n\n.. |codecov| image:: https://codecov.io/github/accraze/python-twelve-tone/coverage.svg?branch=master\n    :alt: Coverage Status\n    :target: https://codecov.io/github/accraze/python-twelve-tone\n\n.. |version| image:: https://img.shields.io/pypi/v/twelve-tone.svg?style=flat\n    :alt: PyPI Package latest release\n    :target: https://pypi.python.org/pypi/twelve-tone\n\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/twelve-tone.svg?style=flat\n    :alt: PyPI Wheel\n    :target: https://pypi.python.org/pypi/twelve-tone\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/twelve-tone.svg?style=flat\n    :alt: Supported versions\n    :target: https://pypi.python.org/pypi/twelve-tone\n\n\n\n.. end-badges\n\nTwelve-tone matrix to generate dodecaphonic melodies.\n\n\n.. image:: https://upload.wikimedia.org/wikipedia/commons/thumb/7/77/Schoenberg_-_Piano_Piece_op.33a_tone_row.png/640px-Schoenberg_-_Piano_Piece_op.33a_tone_row.png\n\nFollowing a process created by the composer Arnold Schoenberg, this library\ncomputes a matrix to create twelve-tone serialism melodies which compose each\nof the 12 semitones of the chromatic scale with equal importance.\n\n* Save your compositions to MIDI\n* Free software: BSD license\n\nInstallation\n============\n\n::\n\n    pip install twelve-tone\n\nThe `GuixRUs \u003chttps://git.sr.ht/~whereiseveryone/guixrus\u003e`_ channel also provides ``twelve-tone``.\n\nQuick Start\n===========\n\nYou can quickly generate a random twelve-tone melody with the CLI\n\n::\n\n    $ twelve-tone\n    ['C# / Db', 'A# / Bb', 'F', 'D', 'G# / Ab', 'D# / Eb', 'F# / Gb',\n        'A', 'C', 'G', 'B', 'E']\n\nOr you can use the following methods in a script:\n\n::\n\n    \u003e\u003e\u003e from twelve_tone.composer import Composer\n    \u003e\u003e\u003e c = Composer()\n    \u003e\u003e\u003e c.compose()\n    \u003e\u003e\u003e c.get_melody()\n    ['C# / Db', 'A# / Bb', 'F', 'D', 'G# / Ab', 'D# / Eb', 'F# / Gb',\n        'A', 'C', 'G', 'B', 'E']\n\nAfter you have composed a matrix of tone rows, you can save the composition to\nMIDI:\n\n::\n\n    \u003e\u003e\u003e c.compose()\n    \u003e\u003e\u003e c.save_to_midi(filename='TWELVE_TONE.mid')\n\nThe new MIDI file will be created in your current working directory. If you do\nnot specify a `filename` for your file, it will default to `example.mid`.\n\nDocumentation\n=============\n\nhttps://python-twelve-tone.readthedocs.io/\n\nDevelopment\n===========\n\nTo run the all tests run::\n\n    tox\n\nNote, to combine the coverage data from all the tox environments run:\n\n.. list-table::\n    :widths: 10 90\n    :stub-columns: 1\n\n    - - Windows\n      - ::\n\n            set PYTEST_ADDOPTS=--cov-append\n            tox\n\n    - - Other\n      - ::\n\n            PYTEST_ADDOPTS=--cov-append tox\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fpython-twelve-tone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccraze%2Fpython-twelve-tone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccraze%2Fpython-twelve-tone/lists"}