{"_id":"@1d10t/strudel-webaudio","name":"@1d10t/strudel-webaudio","dist-tags":{"latest":"1.2.7-alpha.0"},"versions":{"1.2.7-alpha.0":{"name":"@1d10t/strudel-webaudio","version":"1.2.7-alpha.0","description":"Web Audio helpers for Strudel","main":"dist/index.mjs","type":"module","directories":{"example":"examples"},"repository":{"type":"git","url":"git+https://codeberg.org/uzu/strudel.git"},"keywords":["tidalcycles","strudel","pattern","livecoding","algorave"],"author":{"name":"Felix Roos","email":"flix91@gmail.com"},"license":"AGPL-3.0-or-later","bugs":{"url":"https://codeberg.org/uzu/strudel/issues"},"homepage":"https://codeberg.org/uzu/strudel#readme","dependencies":{"@strudel/core":"1.2.6-alpha.0","superdough":"1.2.7-alpha.0","@strudel/draw":"1.2.6-alpha.0","supradough":"1.2.5-alpha.0"},"devDependencies":{"vite":"^6.0.11"},"engines":{"node":">=18.0.0"},"scripts":{"example":"npx parcel examples/repl.html","build":"vite build"},"_id":"@1d10t/strudel-webaudio@1.2.7-alpha.0","_integrity":"sha512-9kQU5P2X5pPbG5qUV09hGXDhLi+8qW/bC0q4AdurFlhBZVxSV4bJvQPl5AHy5XsB4LuWCJv8U96YSYxvf+DeuQ==","_resolved":"/tmp/88b2c0fdc58ee419fe4db96b6e637219/1d10t-strudel-webaudio-1.2.7-alpha.0.tgz","_from":"file:1d10t-strudel-webaudio-1.2.7-alpha.0.tgz","_nodeVersion":"22.17.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9kQU5P2X5pPbG5qUV09hGXDhLi+8qW/bC0q4AdurFlhBZVxSV4bJvQPl5AHy5XsB4LuWCJv8U96YSYxvf+DeuQ==","shasum":"39028c78367ca51184de1ac69f45b98a18a3dbba","tarball":"https://registry.npmjs.org/@1d10t/strudel-webaudio/-/strudel-webaudio-1.2.7-alpha.0.tgz","fileCount":10,"unpackedSize":57188,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGxEJRpVHomdgH2c4Ewcl7maqbnvLH3tMn2llnKCzVgqAiEAs8EQYTeQRXBGDycAMDUwANctNmX2fmaAkPHY9BA6gh0="}]},"_npmUser":{"name":"1d10t","email":"npmjs-com@idiot.org.ru"},"maintainers":[{"name":"1d10t","email":"npmjs-com@idiot.org.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strudel-webaudio_1.2.7-alpha.0_1765611598957_0.4183070509420972"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-13T07:39:58.893Z","1.2.7-alpha.0":"2025-12-13T07:39:59.098Z","modified":"2025-12-13T07:39:59.362Z"},"maintainers":[{"name":"1d10t","email":"npmjs-com@idiot.org.ru"}],"description":"Web Audio helpers for Strudel","homepage":"https://codeberg.org/uzu/strudel#readme","keywords":["tidalcycles","strudel","pattern","livecoding","algorave"],"repository":{"type":"git","url":"git+https://codeberg.org/uzu/strudel.git"},"author":{"name":"Felix Roos","email":"flix91@gmail.com"},"bugs":{"url":"https://codeberg.org/uzu/strudel/issues"},"license":"AGPL-3.0-or-later","readme":"# @strudel/webaudio\n\nThis package contains helpers to make music with strudel and the Web Audio API.\nIt is a thin binding to [superdough](https://www.npmjs.com/package/superdough).\n\n## Install\n\n```sh\nnpm i @strudel/webaudio --save\n```\n\n## Example\n\n```js\nimport { repl, note } from \"@strudel/core\";\nimport { initAudioOnFirstClick, getAudioContext, webaudioOutput } from \"@strudel/webaudio\";\n\ninitAudioOnFirstClick();\nconst ctx = getAudioContext();\n\nconst { scheduler } = repl({\n  defaultOutput: webaudioOutput,\n  getTime: () => ctx.currentTime\n});\n\nconst pattern = note(\"c3\", [\"eb3\", \"g3\"]).s(\"sawtooth\");\n\nscheduler.setPattern(pattern);\ndocument.getElementById(\"start\").addEventListener(\"click\", () => scheduler.start());\ndocument.getElementById(\"stop\").addEventListener(\"click\", () => scheduler.stop());\n```\n\n[Play with the example codesandbox](https://codesandbox.io/s/amazing-dawn-gclfwg?file=/src/index.js).\n\nRead more in the docs about [samples](https://strudel.cc/learn/samples/), [synths](https://strudel.cc/learn/synths/) and [effects](https://strudel.cc/learn/effects/).\n","readmeFilename":"README.md","_rev":"1-f3ad2441d934970085110b61e11ced1f"}