{"id":16125690,"url":"https://github.com/dy/piano-keyboard","last_synced_at":"2025-09-12T20:32:20.219Z","repository":{"id":34547506,"uuid":"38492141","full_name":"dy/piano-keyboard","owner":"dy","description":":musical_keyboard: Piano readable stream/component","archived":false,"fork":false,"pushed_at":"2015-08-29T02:18:42.000Z","size":251,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T13:30:13.059Z","etag":null,"topics":["piano","piano-keyboard"],"latest_commit_sha":null,"homepage":"http://audio-lab.github.io/piano-keyboard","language":"JavaScript","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/dy.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}},"created_at":"2015-07-03T12:41:31.000Z","updated_at":"2025-04-06T21:16:43.000Z","dependencies_parsed_at":"2022-07-16T09:06:02.629Z","dependency_job_id":null,"html_url":"https://github.com/dy/piano-keyboard","commit_stats":null,"previous_names":["dfcreative/piano-keyboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/piano-keyboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-keyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-keyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-keyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-keyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/piano-keyboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fpiano-keyboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274873290,"owners_count":25365823,"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-09-12T02:00:09.324Z","response_time":60,"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":["piano","piano-keyboard"],"created_at":"2024-10-09T21:30:42.907Z","updated_at":"2025-09-12T20:32:19.946Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Visualize piano in DOM. [Demo](http://dfcreative.github.io/piano-keyboard).\n\n[![npm install piano-keyboard](https://nodei.co/npm/piano-keyboard.png?mini=true)](https://nodei.co/npm/piano-keyboard/)\n\n\n```js\nvar Keyboard = require('piano-keyboard');\n\n//options\nvar keyboad = new Keyboard({\n\telement: document.querySelector('.my-piano'), //if omitted, element is created\n\trange: ['c4', 'c#6'], //notes range, numbers or names\n\ta11y: false //focusable \u0026 keyboard interactions\n});\n\n//events\nkeyboard\n\t.on('noteOn', function ({which, volume, target}) {})\n\t.on('noteOff', function ({which, volume, target}) {});\n\n//API\nkeyboard.noteOn(['a4', 'c2', 'c3'], [127, 80, 80]);\nkeyboard.activeNotes; // Set \u003c49, 16, 28\u003e\nkeyboard.noteOff(['a4', 'c2']);\n\n//pipe to midi\nkeyboard.pipe(require('web-midi')('Launchpad'));\n\n//pipe from midi\nvar midiIn = require('midi-qwerty-keys')({\n\tmode: 'piano',\n\toffset: keyboard.range[0]\n});\nmidiIn.pipe(keyboard);\n\n//pipe to simple synthesizer WIP\nkeyboard.pipe(require('synthesizer'));\n\n//change orientation to vertical\nkeyboard.element.classList.add('piano-keyboard-vertical');\nkeyboard.element.classList.remove('piano-keyboard-vertical');\n\n//call on changing orientation, resize etc\nkeyboard.update();\n```\n\n## Analogs\n\n* [qwerty-hancock](https://github.com/stuartmemo/qwerty-hancock)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fpiano-keyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fpiano-keyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fpiano-keyboard/lists"}