{"_id":"beepbox","_rev":"4-0cb5b8c2847d235bc8085e1beb56c9c7","name":"beepbox","dist-tags":{"latest":"4.2.0"},"versions":{"0.0.1":{"name":"beepbox","version":"0.0.1","author":{"url":"http://zackurben.com","name":"Zack Urben","email":"zackurben@gmail.com"},"license":"MIT","_id":"beepbox@0.0.1","maintainers":[{"name":"zackurben","email":"zackurben@gmail.com"}],"dist":{"shasum":"1a7a73a119e8a2b0b88c9d60aaff567086409a82","tarball":"https://registry.npmjs.org/beepbox/-/beepbox-0.0.1.tgz","fileCount":15,"integrity":"sha512-kzd/caBcUFJDWr2VfM+T4eV9Wrhh0Hh/8B8r9HhGeNjP3h6yGN4gDTBf8O8VYtxineR/D/Y+i7M30CbK5JDXsg==","signatures":[{"sig":"MEUCIDxUzlrZ+CPoJMcP4W3PvbjX22XZEaoItfAdmi7ZkM/cAiEAqec77zRyaQ9QP4gm09rG+EGb4M1S5gvKX29ml2q81lc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbss+rCRA9TVsSAnZWagAAlYoP/2Zeg0Yh12Z1tLcPH0PC\nMSemWDFPQmNLs8MqxggDZYAYeQFl17++NR/LY0QpDM7bsrGE2k4VBr+0bUSv\na7Ueu/d/ciI1SbXzSclr+aWoQSdYnX3I8fERmgnhoFDGmpFZM4Z+ReRK4K3Y\nhARqq/aCss2oa/LiTFPttd74fT1E/wiSNmWtbTe04bEvBC/UvW9f8klNOhLe\ngZP3LdroiV0CTIlC6XKCWS63AcCvXwlGNUqiIdyuWEICZUL90mTNCfpwKpxc\nnGt2b5TTmYNgsxCu1k6pGQclKAuDuCf53hlcKhpQt/QSJqiaBsQN6P6QsNl1\nf7zdT37sDYW6fvxXAer//2J8YZDv+fgV/K1XQ8LG0GqSWNZqWpNpTrLokWqQ\n/aPdQgQxMcloLm+HvWaRY/NgDRYbuQyoNIjgmZavlQJsACUblPwIKzdL6Bjl\nxhRTqky80rlSumlQxaxzB2krhxK6KgHHqvLWcchS6jSZc/WTePdTaYiEM50V\nGYPzTzntbkPfEqgeqrBLTle1q/tkjpt4pL//Vb9GZjeqWu/20hpLom65feLC\nTBO+BTqzpuj6ltsIptZzTvg6gaYfiY9mZbtsL5yFJYCWeXs+BV/f94fcRJpt\nmicGjPAo6AU/viq6kpSbo62+3Qk6oJyk5aeG4sBKpMsSCsLJ7BsIlAbZNipg\neA4e\r\n=UQTH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"c2fdbb51e152c9522ac72dcbe179f2582dce2ef8","scripts":{"lint":"prettier {,src/**/}*.js --single-quote --write","build":"webpack --config webpack.prod.js","start":"webpack-dev-server --config webpack.dev.js --open","watch":"webpack --config webpack.dev.js --progress --watch","build:test":"webpack --config webpack.test.js"},"_npmUser":{"name":"zackurben","email":"zackurben@gmail.com"},"_npmVersion":"6.4.1","description":"A simple beepbox player!","directories":{},"_nodeVersion":"8.12.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^4.20.2","prettier":"^1.14.3","@babel/core":"^7.1.2","webpack-cli":"^3.1.2","babel-loader":"^8.0.4","webpack-merge":"^4.1.4","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.9","html-webpack-plugin":"^3.2.0","clean-webpack-plugin":"^0.1.19"},"_npmOperationalInternal":{"tmp":"tmp/beepbox_0.0.1_1538445227131_0.9890768533971999","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"beepbox","version":"1.0.0","author":{"url":"http://zackurben.com","name":"Zack Urben","email":"zackurben@gmail.com"},"license":"MIT","_id":"beepbox@1.0.0","maintainers":[{"name":"zackurben","email":"zackurben@gmail.com"}],"dist":{"shasum":"2d619682667d63b27978bf17b10af9704d7eb27a","tarball":"https://registry.npmjs.org/beepbox/-/beepbox-1.0.0.tgz","fileCount":15,"integrity":"sha512-gWJGo6MnoeTr55B9uf3yiwRNeZo85c1wZPWNB3XyxM/N5B6Rx3Z3MkU+RF4ST93ekLnE6qFgB0OzvxBUmRS59w==","signatures":[{"sig":"MEQCIBPUHOZXYuZzQFpBkQ9hxTR/gROIsCJ6nJJYpn8zuO6kAiASaUyImr7lAhBKHmF1mt7TOwHlyNxQ1EZmlIojM+ya+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtB2VCRA9TVsSAnZWagAA8ecP/R3JjQbTdtfJCpxgZHgE\nk+cwifn1i49hMimCayOohznzpXd6WDN1tG4GWJoAShQqcpW47bWCswj44ZZH\nLDVQOgy0a5fQ6KyzihvPIZrFgcoSY0mhMrvilRLzdHPfaIS/bV2/CIZL4X9v\nNruYs8mdwFmZHc9+OyWjho3WIXdFvVFN1Ug59P5eTkwFMtQPdKlAzUjWePGf\n9k1yLlLPnBOTbSxOGs9FuIqkHP6VWGnPEDyBr7qG5I1zePIONHLot1PrBywN\nYYmEa7HBeykF9kbMNqs8lOUWByaO9SeRZBrQoQTycYV80ilWu3GlXXl+Fvlg\naqC1SfZ/1D4TOcrQwDJiMjQXarJILbHuW+bB1LJZlPypnjHKis8DI0MlTua7\nrv0ViIRhUE43WkvZJwXA+WaYCjpY3O3ei0gGVfx4k2luV7+FKjla8EkHbkB0\nbiDRREk3UpEghlIJYDZ3BXnpD3PFQrJ8j4Nj6NWIdh69gn8XQEuHyODbSi4O\nr8Fey0QLkRPu5E8x9du157clQD3Pdgf41chEeIHV5xnGgs7iFQLoogOwrxnC\nGjEQW9XJ9FaLXoglyjZwSXKtnh3oATimoRLhe65XWV2QeUUHExfLm0mxt3WX\nGqeIY+MgEeR0WWxQsgpOjN2TOh2KWSRzZisqEX3eiL7CYn2qvlMzwsS+7P6P\nFe+T\r\n=irGp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"37b2fe9cce88b0e8eebb4cbb8879d1ad8e829e88","scripts":{"lint":"prettier {,{src,test}/**/,}*.js --single-quote --write","build":"webpack --config webpack.prod.js","start":"webpack-dev-server --config webpack.dev.js --open","watch":"webpack --config webpack.dev.js --progress --watch","build:test":"webpack --config webpack.test.js"},"_npmUser":{"name":"zackurben","email":"zackurben@gmail.com"},"_npmVersion":"6.4.1","description":"A simple beepbox player!","directories":{},"_nodeVersion":"8.12.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"webpack":"^4.20.2","prettier":"^1.14.3","@babel/core":"^7.1.2","webpack-cli":"^3.1.2","babel-loader":"^8.0.4","webpack-merge":"^4.1.4","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.9","html-webpack-plugin":"^3.2.0","clean-webpack-plugin":"^0.1.19"},"_npmOperationalInternal":{"tmp":"tmp/beepbox_1.0.0_1538530708784_0.39113054334814334","host":"s3://npm-registry-packages"}},"4.2.0":{"name":"beepbox","version":"4.2.0","author":{"name":"John Nesky"},"homepage":"https://www.beepbox.co","description":"BeepBox is an online tool for sketching and sharing instrumental music.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnnesky/beepbox.git"},"bugs":{"url":"https://github.com/johnnesky/beepbox/issues"},"funding":"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=QZJTX9GRYEV9N&currency_code=USD","type":"module","main":"esm/synth/index.js","module":"esm/synth/index.js","browser":"esm/synth/index.js","types":"esm/synth/index.d.ts","keywords":["beepbox","music","composition","tool","synth","synthesizer","daw","tracker","instrument","song","melody","chiptune","free","javascript","browser"],"gitHead":"0c51be8332180387eec5b668f7ca296d4d54d22e","_id":"beepbox@4.2.0","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-OQ1woUdH1MgPUYsQWrsJ/4v7f7NuY5OY76LksqP/Z2Yu/zb0mKLgPxqsEhqLyXXRCb4uYURQjeykcLY03qlt3w==","shasum":"a00ab527d3bc9cf6970618aaddcb9519b275e1d1","tarball":"https://registry.npmjs.org/beepbox/-/beepbox-4.2.0.tgz","fileCount":37,"unpackedSize":3591339,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeq5LdvtnTLKu5X+MH+pn9Ur+qIC+QenNc5pRRVJHjYAiBEmwptz6ystA4yJ+7wVHmZqggS3+L2SSwxKbZkF1Vv2g=="}]},"_npmUser":{"name":"johnnesky","email":"johnnesky@gmail.com"},"directories":{},"maintainers":[{"name":"zackurben","email":"zackurben@gmail.com"},{"name":"johnnesky","email":"johnnesky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/beepbox_4.2.0_1724658579936_0.48586428340367127"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-02T01:53:47.130Z","modified":"2024-08-26T07:49:40.368Z","0.0.1":"2018-10-02T01:53:47.243Z","1.0.0":"2018-10-03T01:38:29.023Z","4.2.0":"2024-08-26T07:49:40.176Z"},"author":{"name":"John Nesky"},"license":"MIT","description":"BeepBox is an online tool for sketching and sharing instrumental music.","maintainers":[{"name":"zackurben","email":"zackurben@gmail.com"},{"name":"johnnesky","email":"johnnesky@gmail.com"}],"readme":"# BeepBox\n\nBeepBox is a music synthesizer, along with an online editor for authoring songs that you can try out at [beepbox.co](https://www.beepbox.co)!\n\nThe editor stores all song data in the URL as text after the hash mark, and this song data can be easily copied and shared. You can use the code in this npm package to synthesize music out loud from this song data, just like in the editor!\n\nBeepBox is a passion project, and will always be free to use. If you find it valuable and have the means, any gratuity via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=QZJTX9GRYEV9N&currency_code=USD) would be appreciated! BeepBox is developed by [John Nesky](https://johnnesky.com/), and this code is available under the [MIT license](https://github.com/johnnesky/beepbox/blob/main/LICENSE.md).\n\n## Getting the synthesizer without installing anything\n\nYou can easily use a script tag to load the synthesizer code, then use the global `beepbox` namespace to access the synthesizer:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/beepbox/global/beepbox_synth.min.js\"></script>\n<script>\n\tconst {Synth} = beepbox;\n</script>\n```\n\n## Installing the code from npm\n\nIf you're using npm, you can use that to install the synthesizer on the command line:\n\n```shell\nnpm install beepbox\n```\n\nAnd then in your code you can import the synthesizer as a module:\n\n```javascript\nimport {Synth} from \"beepbox\";\n```\n\nDeploying code to your website that was written in this manner is a complex subject that's outside the scope of this README, but the advantage is that you can use many advanced tools, including TypeScript.\n\n## Using the synthesizer\n\nEither way, you can use the Synth class in your code to play and pause songs using the song data that you can copy from the URL above BeepBox's online editor:\n\n```javascript\nvar synth = new Synth(\"#9n30sbk7l00e00t2-a7g00j00r1i0o443T0v2u00f0qw02d03w2h0E0T0v2u00f0qw02d03w2h0E0T0v0u00f0qw02d03w1h0E0bUp1OFEYtghQ4sBihS7dQQuwE8W2eywzwPbGcKCzZk4t17hghQCngpo\");\n\ndocument.getElementById(\"playButton\").addEventListener(\"click\", event => {\n\tif (synth.isPlayingSong) {\n\t\tsynth.pause();\n\t} else {\n\t\tsynth.play();\n\t}\n});\n```\n\nMake sure that the playback is [triggered by a user input event](https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide), such as a \"click\" event.\n\n## Beepbox-Lite\n\nThe npm package called `beepbox` has changed. If you were using npm to access the `beepbox` package before 2024-09, that version of the package has moved to [beepbox-lite](https://www.npmjs.com/package/beepbox-lite). Please update your dependencies!\n","readmeFilename":"README.md","homepage":"https://www.beepbox.co","keywords":["beepbox","music","composition","tool","synth","synthesizer","daw","tracker","instrument","song","melody","chiptune","free","javascript","browser"],"repository":{"type":"git","url":"git+https://github.com/johnnesky/beepbox.git"},"bugs":{"url":"https://github.com/johnnesky/beepbox/issues"}}