{"id":31622657,"url":"https://github.com/oki07/sf2-synth-audio-worklet","last_synced_at":"2025-10-06T17:10:03.275Z","repository":{"id":65437207,"uuid":"591657787","full_name":"oki07/sf2-synth-audio-worklet","owner":"oki07","description":"An Audio Worklet-based SoundFont2 synthesizer for the browser","archived":false,"fork":false,"pushed_at":"2024-06-16T06:09:27.000Z","size":36505,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-08T20:15:07.700Z","etag":null,"topics":["audio-worklet","javascript","library","npm-package","soundfont2","synthesizer"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sf2-synth-audio-worklet","language":"TypeScript","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/oki07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-01-21T12:50:15.000Z","updated_at":"2024-06-16T06:09:30.000Z","dependencies_parsed_at":"2024-01-26T12:42:41.488Z","dependency_job_id":"6a62d23a-404b-4d4d-a46e-474fa807e288","html_url":"https://github.com/oki07/sf2-synth-audio-worklet","commit_stats":{"total_commits":53,"total_committers":1,"mean_commits":53.0,"dds":0.0,"last_synced_commit":"5fc1b53581530c488a207ccfe144c7bb75f7e018"},"previous_names":["ne-oki/sf2-synth-audio-worklet","neokidev/sf2-synth-audio-worklet","neoki07/sf2-synth-audio-worklet","oki07/sf2-synth-audio-worklet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oki07/sf2-synth-audio-worklet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oki07%2Fsf2-synth-audio-worklet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oki07%2Fsf2-synth-audio-worklet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oki07%2Fsf2-synth-audio-worklet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oki07%2Fsf2-synth-audio-worklet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oki07","download_url":"https://codeload.github.com/oki07/sf2-synth-audio-worklet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oki07%2Fsf2-synth-audio-worklet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278646783,"owners_count":26021512,"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-06T02:00:05.630Z","response_time":65,"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":["audio-worklet","javascript","library","npm-package","soundfont2","synthesizer"],"created_at":"2025-10-06T17:10:00.108Z","updated_at":"2025-10-06T17:10:03.259Z","avatar_url":"https://github.com/oki07.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sf2-synth-audio-worklet\n\n[![license](https://img.shields.io/npm/l/sf2-synth-audio-worklet.svg)](https://github.com/neoki07/sf2-synth-audio-worklet/blob/main/LICENSE.md)\n[![npm](https://img.shields.io/npm/v/sf2-synth-audio-worklet.svg)](https://www.npmjs.com/package/sf2-synth-audio-worklet)\n[![npm downloads](https://img.shields.io/npm/dm/sf2-synth-audio-worklet)](https://www.npmjs.com/package/sf2-synth-audio-worklet)\n[![ci](https://github.com/neoki07/sf2-synth-audio-worklet/actions/workflows/ci.yml/badge.svg)](https://github.com/neoki07/sf2-synth-audio-worklet/actions/workflows/ci.yml)\n\nAn Audio Worklet-based SoundFont2 synthesizer for the browser.\n\n## Installation\n\n```bash\nnpm install sf2-synth-audio-worklet\n```\n\n## Getting Started\n\nThis code sets up a simple SoundFont2 player in React using the library.\n\n```tsx\nimport { useState } from 'react'\nimport {\n  createSoundFont2SynthNode,\n  type SoundFont2SynthNode,\n} from 'sf2-synth-audio-worklet'\n\nfunction App() {\n  const [node, setNode] = useState\u003cSoundFont2SynthNode\u003e()\n\n  const setup = async () =\u003e {\n    const audioContext = new AudioContext()\n    const sf2Url = 'path/to/soundfont2' // Replace with the SoundFont2 file path\n    const node = await createSoundFont2SynthNode(audioContext, sf2Url)\n    node.connect(audioContext.destination)\n    setNode(node)\n  }\n\n  const noteOn = () =\u003e node?.noteOn(0, 60, 100, 0)\n  const noteOff = () =\u003e node?.noteOff(0, 60, 0)\n\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={setup} disabled={!!node}\u003e\n        Setup\n      \u003c/button\u003e\n      \u003cbutton onMouseDown={noteOn} onMouseUp={noteOff} disabled={!node}\u003e\n        Sound\n      \u003c/button\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foki07%2Fsf2-synth-audio-worklet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foki07%2Fsf2-synth-audio-worklet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foki07%2Fsf2-synth-audio-worklet/lists"}