{"id":13341580,"url":"https://github.com/micahscopes/all-around-keyboard","last_synced_at":"2025-10-13T09:30:44.587Z","repository":{"id":143035476,"uuid":"81324680","full_name":"micahscopes/all-around-keyboard","owner":"micahscopes","description":"a web component for piano keyboards","archived":false,"fork":false,"pushed_at":"2022-06-22T17:17:55.000Z","size":1736,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T07:10:04.550Z","etag":null,"topics":["d3","keyboard","music","piano","web-components"],"latest_commit_sha":null,"homepage":"https://micahscopes.github.io/all-around-keyboard/","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/micahscopes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"micahscopes"}},"created_at":"2017-02-08T11:50:19.000Z","updated_at":"2023-11-20T08:12:03.000Z","dependencies_parsed_at":"2023-09-01T20:15:40.568Z","dependency_job_id":null,"html_url":"https://github.com/micahscopes/all-around-keyboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micahscopes/all-around-keyboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micahscopes%2Fall-around-keyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micahscopes%2Fall-around-keyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micahscopes%2Fall-around-keyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micahscopes%2Fall-around-keyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micahscopes","download_url":"https://codeload.github.com/micahscopes/all-around-keyboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micahscopes%2Fall-around-keyboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014521,"owners_count":26085536,"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-13T02:00:06.723Z","response_time":61,"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":["d3","keyboard","music","piano","web-components"],"created_at":"2024-07-29T19:25:38.941Z","updated_at":"2025-10-13T09:30:44.007Z","avatar_url":"https://github.com/micahscopes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/micahscopes"],"categories":[],"sub_categories":[],"readme":"# all-around keyboards\na web component for round pianos\n\n### [demo](http://micahscopes.github.io/all-around-keyboard)\n\n## usage:\n```html\n\u003cscript src=\".../all-around-keyboard.min.js\"\u003e\u003c/script\u003e\n\u003call-around-keyboard\u003e\u003c/all-around-keyboard\u003e\n```\nYou can also customize the keyboard with the following attributes:\n```html\n\u003call-around-keyboard  notes-in-octave=12\n                      raised-notes=\"[2,4,7,9,11]\"\n                      sweep=270 octaves=2\n                      depth=100 width=500\n                      overlapping=0.75 \u003e\n\u003c/all-around-keyboard\u003e\n```\n### Pressing and releasing keys\n``` javascript\n// select the keyboard\nlet kb = document.querySelector('all-around-keyboard');\n\nkb.keysPress([2,6,9,11,18])\nsetTimeout(() =\u003e { kb.keysRelease([2,6,9,11,18]) }, 4000);\n```\n\n### Lighting and dimming keys\n``` javascript\nkb.keysLight([2,6,9,11,18])\nsetTimeout(() =\u003e { kb.keysDim([2,6,9,11,18]) }, 4000);\n```\n\n### Lighting and dimming notes (pitch classes)\n``` javascript\nkb.notesLight([2,4,6,7,9,11,1])\nsetTimeout(() =\u003e { kb.notesDim([2,4,6,7,9,11,1]) }, 4000);\n```\n##### *inspired by mbostock's example for d3: https://bl.ocks.org/mbostock/5723d93e4f617b542991*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicahscopes%2Fall-around-keyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicahscopes%2Fall-around-keyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicahscopes%2Fall-around-keyboard/lists"}