{"id":25003778,"url":"https://github.com/nlfmt/buzzer-music","last_synced_at":"2025-07-07T02:07:39.442Z","repository":{"id":274196383,"uuid":"922192611","full_name":"nlfmt/buzzer-music","owner":"nlfmt","description":"Create shell commands to play music on buzzers","archived":false,"fork":false,"pushed_at":"2025-02-20T00:10:17.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T22:52:24.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlfmt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-01-25T15:11:24.000Z","updated_at":"2025-02-20T00:10:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f4a5a7b-fd32-42b1-90df-99f875ac41cc","html_url":"https://github.com/nlfmt/buzzer-music","commit_stats":null,"previous_names":["nlfmt/buzzer-music"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nlfmt/buzzer-music","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlfmt%2Fbuzzer-music","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlfmt%2Fbuzzer-music/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlfmt%2Fbuzzer-music/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlfmt%2Fbuzzer-music/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlfmt","download_url":"https://codeload.github.com/nlfmt/buzzer-music/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlfmt%2Fbuzzer-music/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264000631,"owners_count":23542113,"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":[],"created_at":"2025-02-04T22:39:02.664Z","updated_at":"2025-07-07T02:07:39.419Z","avatar_url":"https://github.com/nlfmt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buzzer Music\n\nThis repo contains code to create shell commands from songs using the /dev/speaker device in OpenBSD\n\n## How to import a song from `arduino-songs`:\n\n1. Clone this repository\n2. Make sure [NodeJS](https://nodejs.org) is installed\n2. Install packages using `npm i`\n3. Visit [arduino-songs](https://github.com/robsoncouto/arduino-songs)\n5. Pick a song of your choice and note the folder name in the repo (i.e. `imperialmarch`)\n8. Run the converter\n```sh\nnpm run convert -- imperialmarch\n```\nwith config options:\n```sh\nnpm run convert -- imperialmarch --octaveShift=-2 --bpm=120\n```\n\n1. Copy the command to your machine and run it!\n\n## How to add a custom note definition\n\n1. Add a new file to `/songs`.\n3. Add your song definition as a default export\n```ts\nimport { NOTE, REST } from \"../src/note\"\n\nexport default [\n    NOTE.A4, 4, REST, 2, NOTE.A5, 4\n]\n```\n4. Go to `main.ts`, import your song definition and add the code to convert:\n```ts\nimport mySong from \"./songs/mySong\"\n\nconst song = Song.from(mySong, { octaveShift: -2 })\nconsole.log(song.toShellCommand())\n```\n5. Run the program using `npm start` (run `npm i` first if you haven't yet)\n6. Run the code on your machine!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlfmt%2Fbuzzer-music","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlfmt%2Fbuzzer-music","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlfmt%2Fbuzzer-music/lists"}