{"id":15471927,"url":"https://github.com/mnvr/gm1k","last_synced_at":"2026-03-16T05:16:09.637Z","repository":{"id":217166485,"uuid":"743226270","full_name":"mnvr/gm1k","owner":"mnvr","description":"Generative music in 410 bytes of Javascript, and a song using Euclidean rhythms","archived":false,"fork":false,"pushed_at":"2024-01-31T10:47:05.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-07T19:01:59.413Z","etag":null,"topics":["audio","bytebeat","genuary2024","javascript","music","webaudio"],"latest_commit_sha":null,"homepage":"https://mnvr.in/gm1k/","language":"HTML","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/mnvr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-14T17:52:19.000Z","updated_at":"2025-06-14T13:24:03.000Z","dependencies_parsed_at":"2025-04-10T11:35:31.359Z","dependency_job_id":"2c96b041-2c21-4367-b032-d17ea0395c2b","html_url":"https://github.com/mnvr/gm1k","commit_stats":null,"previous_names":["mnvr/gm1k"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mnvr/gm1k","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvr%2Fgm1k","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvr%2Fgm1k/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvr%2Fgm1k/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvr%2Fgm1k/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnvr","download_url":"https://codeload.github.com/mnvr/gm1k/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvr%2Fgm1k/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264646548,"owners_count":23643423,"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","bytebeat","genuary2024","javascript","music","webaudio"],"created_at":"2024-10-02T02:22:31.190Z","updated_at":"2026-03-16T05:16:04.609Z","avatar_url":"https://github.com/mnvr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains two pieces of music using plain JS:\n\n- *410*\n- *Cycling with Euclid*\n\n## 410 - Generative music in 410 bytes of Javascript\n\nThe prompt for day 14 of Genuary 2024 was to produce a generative piece that\nuses less than 1K of source code. This one uses standard browser audio APIs to\nproduce a soundscape.\n\nLive version is at https://mnvr.github.io/gm1k.\n\nSource code for the demo is in [index.html](index.html) – it is a standalone,\n410 character, HTML file. The song it plays is a remix of _Sierpinski Harmony_\nby viznut (the creator of bytebeat).\n\nSee [x](x) for a longer version with more comments and explanations.\n\n## Cycling with Euclid – A song in E(3, 8)\n\nThe prompt for day 31 of Genuary 2024 was to produce a generative piece of\nmusic. I made a neverending song using only HTML/JS/CSS without using any\ndependencies or libraries. While code size was not a concern, the resulting\nfiles is just 250 lines too.\n\nLive version is at https://mnvr.github.io/gm1k/e.\n\nSource code is in [e/index.html](e/index.html) – a standalone HTML file (you can\njust open it in your browser and play it directly too). The song it plays is a\ncomposition using Euclidean rhythms. The bassline and the trill rhythms are\n`E(3,8)` and `E(7, 8)`, around which totters around the main Euclidean rhythm\nthat cycles through `E(3,4)` to `E(11, 12)`.\n\nI also wrote a tutorial about [Euclidean rhythms](https://mrmr.io/mj/euclid)\nthat explains the code behind the song.\n\n## Postscript\n\nRest of my (visual) Genuary 2024 artworks are at\n[mrmr.io/gen24](https://mrmr.io/gen24).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvr%2Fgm1k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnvr%2Fgm1k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvr%2Fgm1k/lists"}