{"id":20858765,"url":"https://github.com/thesephist/codesynth","last_synced_at":"2025-05-12T08:31:41.530Z","repository":{"id":42705710,"uuid":"272086574","full_name":"thesephist/codesynth","owner":"thesephist","description":"Generate music from your source code 🎹","archived":false,"fork":false,"pushed_at":"2022-03-27T22:53:07.000Z","size":245,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T12:41:32.977Z","etag":null,"topics":["audio-processing","paper-css","torus-dom","web-audio"],"latest_commit_sha":null,"homepage":"https://codesynth.surge.sh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesephist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-13T21:12:30.000Z","updated_at":"2022-09-15T00:19:39.000Z","dependencies_parsed_at":"2022-09-10T00:11:39.473Z","dependency_job_id":null,"html_url":"https://github.com/thesephist/codesynth","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodesynth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodesynth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodesynth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodesynth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesephist","download_url":"https://codeload.github.com/thesephist/codesynth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130753,"owners_count":17425506,"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":["audio-processing","paper-css","torus-dom","web-audio"],"created_at":"2024-11-18T04:47:23.613Z","updated_at":"2024-11-18T04:47:24.320Z","avatar_url":"https://github.com/thesephist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codesynth 🎹\n\nGenerate music from your source code! You can try it live at [codesynth.surge.sh](https://codesynth.surge.sh). Codesynth is built with:\n\n- The [Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API) for audio synthesis\n- [Torus](https://github.com/thesephist/torus) for the player and UI\n- [paper.css](https://github.com/thesephist/paper.css) for a lightweight visual style\n\n![Codesynth screenshot](static/img/screenshot.png)\n\n## How does it work?\n\nFrom the \"How does it work?\" section of Codesynth:\n\n\u003eCodesynth translates each line of source code into a tune by looking at the indentation and length of each line.\n\u003e\n\u003eA farther indent indicates a higher pitch, and a longer line means that pitch is held for more beats. Codesynth uses a basic pentatonic scale in A.\n\n## Deploy and build\n\nCodesynth is an application in a [single JavaScript file](static/js/main.js), and has no build step for modern browsers.\n\nTo deploy Codesynth, I use `yarn deploy` which uses Surge to deploy the static site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Fcodesynth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesephist%2Fcodesynth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Fcodesynth/lists"}