{"id":13768726,"url":"https://github.com/iBundin/Open-Web-Piano","last_synced_at":"2025-05-10T23:31:44.237Z","repository":{"id":184657971,"uuid":"83213979","full_name":"iBundin/Open-Web-Piano","owner":"iBundin","description":"Virtual piano based on Web Audio API and Web MIDI API","archived":false,"fork":false,"pushed_at":"2017-04-13T23:09:02.000Z","size":785,"stargazers_count":30,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T03:31:53.866Z","etag":null,"topics":["musical-instrument","piano","webaudio-api","webmidi"],"latest_commit_sha":null,"homepage":"http://ibundin.github.io/Open-Web-Piano","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/iBundin.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}},"created_at":"2017-02-26T14:18:05.000Z","updated_at":"2024-08-19T18:26:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ca1033d-ba77-44ab-bd3d-55c2ffe8786b","html_url":"https://github.com/iBundin/Open-Web-Piano","commit_stats":null,"previous_names":["ibundin/open-web-piano"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBundin%2FOpen-Web-Piano","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBundin%2FOpen-Web-Piano/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBundin%2FOpen-Web-Piano/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBundin%2FOpen-Web-Piano/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBundin","download_url":"https://codeload.github.com/iBundin/Open-Web-Piano/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253497297,"owners_count":21917683,"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":["musical-instrument","piano","webaudio-api","webmidi"],"created_at":"2024-08-03T16:01:25.054Z","updated_at":"2025-05-10T23:31:43.389Z","avatar_url":"https://github.com/iBundin.png","language":"JavaScript","funding_links":[],"categories":["MIDI instruments"],"sub_categories":["Piano"],"readme":"Lightweight virtual web piano. There is only one sample per octave, however samples are mixed with each other for realistic sound with correct full-length sustain. Lowpass filters are used to emulate dynamics. This instrument works well with sustain pedal.\n\n## Installation\n\nSimply copy **_openWebPiano.js_** and **_audio_** folder. See index.html for the example.\n\n## API\n\n0. **init(context)** - load all samples and start;\n1. **noteOn(note 21 - 105, velocity 0 - 127 )** - start a note with a particular velocity level in standard MIDI format;\n2. **noteOff(note)** - stop a note;\n3. **sustain(value)** - any value higher then 0 switches sustain on, 0 value switches sustain off.\n\n## Example\n\n```javascript\n\u003cscript src=\"OpenWebPiano.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var audioCtx = new AudioContext();\n  openWebPiano.init(audioCtx);\n  //on event(note,velocity) -\u003e\n  openWebPiano.noteOn(note, velocity);\n\u003c/script\u003e\n```\n## License\n\n[MIT](https://github.com/nishanths/license/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiBundin%2FOpen-Web-Piano","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FiBundin%2FOpen-Web-Piano","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FiBundin%2FOpen-Web-Piano/lists"}