{"id":13738002,"url":"https://github.com/ekzhang/harmony","last_synced_at":"2025-10-04T00:48:07.119Z","repository":{"id":53624770,"uuid":"163469137","full_name":"ekzhang/harmony","owner":"ekzhang","description":"🎶  Generate four-part harmony following idiomatic voice-leading procedures with DP!","archived":false,"fork":false,"pushed_at":"2022-12-27T17:58:31.000Z","size":104,"stargazers_count":52,"open_issues_count":5,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-03T22:51:16.137Z","etag":null,"topics":["chorale","dynamic-programming","harmony","music-generation","procedural-generation","voice-leading"],"latest_commit_sha":null,"homepage":"https://autoharmony.herokuapp.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekzhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-29T02:48:25.000Z","updated_at":"2025-02-14T02:28:20.000Z","dependencies_parsed_at":"2023-01-31T05:31:06.168Z","dependency_job_id":null,"html_url":"https://github.com/ekzhang/harmony","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ekzhang/harmony","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzhang%2Fharmony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzhang%2Fharmony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzhang%2Fharmony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzhang%2Fharmony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekzhang","download_url":"https://codeload.github.com/ekzhang/harmony/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekzhang%2Fharmony/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278250080,"owners_count":25955839,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chorale","dynamic-programming","harmony","music-generation","procedural-generation","voice-leading"],"created_at":"2024-08-03T03:02:08.649Z","updated_at":"2025-10-04T00:48:07.082Z","avatar_url":"https://github.com/ekzhang.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Harmony\n\nGenerate four-part harmony following idiomatic voice-leading procedures with DP!\n\n```python\n\u003e\u003e\u003e voiceProgression('B-', 'I I6 IV V43/ii ii V V7 I')\n```\n\n![Four-part harmony](https://i.imgur.com/9bl7V5t.png)\n\nSee the web interface at [autoharmony.herokuapp.com](https://autoharmony.herokuapp.com/). This was built with [Music21](https://github.com/cuthbertLab/music21).\n\n## Usage\n\nFirst, install and activate dependencies managed by [Pipenv](https://github.com/pypa/pipenv).\n\n```shell\n$ pipenv install\n$ pipenv shell\n```\n\nTo generate a chorale:\n\n```shell\n$ python voicing.py\n```\n\nThen, create a fresh Postgres database. Tables will be created on first application run. To launch the development web server:\n\n```shell\n$ FLASK_APP=app.py FLASK_DEBUG=1 DATABASE_URL=\u003cPOSTGRES_URL\u003e flask run\n```\n\nTo launch the production web server:\n\n```shell\n$ DATABASE_URL=\u003cPOSTGRES_URL\u003e WEB_CONCURRENCY=2 gunicorn app:app\n```\n\n## License\n\nLicensed under the [BSD 3-Clause License](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekzhang%2Fharmony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekzhang%2Fharmony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekzhang%2Fharmony/lists"}