{"id":14990456,"url":"https://github.com/jazz-soft/polymer-midi-player","last_synced_at":"2025-04-12T02:24:03.932Z","repository":{"id":57147487,"uuid":"156950891","full_name":"jazz-soft/polymer-midi-player","owner":"jazz-soft","description":"MIDI Player Web Component","archived":false,"fork":false,"pushed_at":"2023-12-14T05:33:06.000Z","size":479,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T05:04:54.145Z","etag":null,"topics":["midi","midi-player","polymer","webcomponent"],"latest_commit_sha":null,"homepage":"","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/jazz-soft.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":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2018-11-10T05:32:02.000Z","updated_at":"2024-05-31T03:52:14.076Z","dependencies_parsed_at":"2024-05-31T03:52:12.615Z","dependency_job_id":"0389864c-e8c0-4afc-9d87-e57d333d7496","html_url":"https://github.com/jazz-soft/polymer-midi-player","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":"0.41025641025641024","last_synced_commit":"a06df846892172858ba69f71a164b77727d2aba2"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fpolymer-midi-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fpolymer-midi-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fpolymer-midi-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2Fpolymer-midi-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/polymer-midi-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859550,"owners_count":19708863,"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":["midi","midi-player","polymer","webcomponent"],"created_at":"2024-09-24T14:20:10.408Z","updated_at":"2025-02-20T16:30:23.046Z","avatar_url":"https://github.com/jazz-soft.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jazz-soft","https://paypal.me/jazzsoft"],"categories":[],"sub_categories":[],"readme":"# polymer-midi-player\n\n[![npm](https://img.shields.io/npm/v/polymer-midi-player.svg)](https://www.npmjs.com/package/polymer-midi-player)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/polymer-midi-player)\n\n## MIDI Player Web Component\nSupports MIDI 1.0 SMF and MIDI 2.0 Clips\n\n![midi-player](https://jazz-soft.github.io/img/midi-player.png)\n\nPlaying MIDI files via *Web Audio* and *Web MIDI*\n\n## Usage\n### Install the Web Component\n`npm install polymer-midi-player --save`\n\n### HTML\n\n```html\n\u003cscript src=\"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"module\"\u003e\n  import 'polymer-midi-player';\n\u003c/script\u003e\n```\n```html\n\u003cmidi-player src=\"test.mid\" loop=2 autoplay\u003e\u003c/midi-player\u003e\n```\n\n## Attributes\n`src` - MIDI file URL  \n`data` - contents of the MIDI file as String;\ncan be used as an alternative to `src`  \n`autoplay` - start playback immediately  \n`loop` - the number of repeats, or `true` for an infinite loop\n\n## API\n`play()`  \n`pause()`  \n`resume()`  \n`stop()`\n\n## Testing with Polymer\nMake sure the Polymer CLI is installed:\n`npm install -g polymer-cli`  \nIn the project directory:  \nrun `npm install`  \nrun `polymer serve --open`\n\n## See also:\nhttps://github.com/jazz-soft/JZZ-gui-Player  \nhttps://github.com/jazz-soft/react-midi-player\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fpolymer-midi-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fpolymer-midi-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fpolymer-midi-player/lists"}