{"id":13526850,"url":"https://github.com/bbc/r-audio","last_synced_at":"2025-04-12T21:21:42.161Z","repository":{"id":32977817,"uuid":"129927133","full_name":"bbc/r-audio","owner":"bbc","description":"  A library of React components for building Web Audio graphs.","archived":false,"fork":false,"pushed_at":"2024-11-27T15:15:14.000Z","size":3278,"stargazers_count":183,"open_issues_count":10,"forks_count":14,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-04T04:45:51.659Z","etag":null,"topics":["audio-processing","react","web-audio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-04-17T15:37:15.000Z","updated_at":"2025-03-25T01:55:52.000Z","dependencies_parsed_at":"2024-01-13T21:43:00.936Z","dependency_job_id":"2ded5fd6-dcb2-4416-80ae-f8fe320d1e7e","html_url":"https://github.com/bbc/r-audio","commit_stats":{"total_commits":119,"total_committers":4,"mean_commits":29.75,"dds":0.2184873949579832,"last_synced_commit":"742fc268242b06463bdba5a7611bdeb70dc69d53"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fr-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fr-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fr-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fr-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbc","download_url":"https://codeload.github.com/bbc/r-audio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248632431,"owners_count":21136685,"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":["audio-processing","react","web-audio"],"created_at":"2024-08-01T06:01:35.900Z","updated_at":"2025-04-12T21:21:42.127Z","avatar_url":"https://github.com/bbc.png","language":"JavaScript","readme":"# r-audio\nA library of React components for building [Web Audio](https://www.w3.org/TR/webaudio/) graphs.\n\n## Objectives\n👉 make Web Audio graph code more readable and representative of the graph shape\n\n👉 make it easier to create reusable graphs\n\n👉 make state management easier with React's one-way data bindings and single source of state\n\n👉 represent any arbitrary directed graphs in JSX\n\n👉 support all non-deprecated audio nodes including `AudioWorklet`\n\n👉 allow interspersed HTML components in audio components\n\n## Installation\n\n```bash\nnpm install r-audio\n```\n\n## Usage example\n\nStereo waveshaper + amplitude modulation on a WAV loop\n```jsx\n\u003cRAudioContext debug={true} onInit={ctx =\u003e this.audioContext = ctx}\u003e\n  \u003cRPipeline\u003e\n    \u003cRBufferSource buffer={this.state.buffer} loop/\u003e\n    \u003cRSplitChannels channelCount={2}\u003e\n      \u003cRPipeline\u003e\n        \u003cRWaveShaper curve={this.makeDistortionCurve(200)} /\u003e\n        \u003cRConvolver buffer={this.state.buffer} /\u003e\n        \u003cRDynamicsCompressor threshold={-50} knee={40}/\u003e\n        \u003cRGain gain={.5} /\u003e\n      \u003c/RPipeline\u003e\n      \u003cRPipeline\u003e\n        \u003cROscillator frequency={1} type=\"sine\" detune={0} connectToParam=\"gain\" /\u003e\n        \u003cRGain gain={1} /\u003e\n      \u003c/RPipeline\u003e\n    \u003c/RSplitChannels\u003e\n  \u003c/RPipeline\u003e\n\u003c/RAudioContext\u003e\n```\n\n## Useful links\n- [Full usage examples](https://github.com/bbc/r-audio/tree/master/examples)\n- [API Reference](https://github.com/bbc/r-audio/wiki/API-Reference)\n\n## Development setup\n\n```bash\nnpm install\nnpm run dev\n```\n\nThe demo page will be served at `localhost:8080`. Use a recent version of Chrome or Firefox for the best experience.\n\nFirefox Web Audio developer tool is especially handy (bear in mind Firefox does not support AudioWorklet as of 17 April 2018).\n\n","funding_links":[],"categories":["JavaScript","UI components and libraries"],"sub_categories":["React components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Fr-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbc%2Fr-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Fr-audio/lists"}