{"_id":"@bp1410/spectro-vis","_rev":"3-dcdc4cbcae9be1a83ad594c98c79417c","name":"@bp1410/spectro-vis","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@bp1410/spectro-vis","version":"0.0.1","keywords":["fft","visualization"],"author":{"name":"Bolesław Potrac"},"license":"MIT","_id":"@bp1410/spectro-vis@0.0.1","maintainers":[{"name":"bp1410","email":"bp1410fx@gmail.com"}],"homepage":"https://github.com/bp1410/spectro-vis","bugs":{"url":"https://github.com/bp1410/spectro-vis/issues"},"dist":{"shasum":"ed6443c1b7adfd32bb828ef581ba29d85852547d","tarball":"https://registry.npmjs.org/@bp1410/spectro-vis/-/spectro-vis-0.0.1.tgz","fileCount":6,"integrity":"sha512-9EMfgPGzvm7Xvldj0NamWcPkjyYOgAQ1zYwrlnjEeNCOHbII8rxwtmPwnQ2CtMLQ9SXrianO0c5IshfHfgtcgw==","signatures":[{"sig":"MEUCIB5PJ2houDUKpIjEZMjjmth+fqeVsXZVXvqwt0BUgvyhAiEA+F9YsjqypLShE1c/MHWWVJvwe0jSzPbU8zMvccL/ASE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1632299},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.es.js","browser":"dist/index.umd.js","exports":{".":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"./umd":"./dist/index.umd.js"},"gitHead":"871dd9fe0c5d0a8016994b16ab575a89a5a3d814","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build"},"_npmUser":{"name":"bp1410","email":"bp1410fx@gmail.com"},"repository":{"url":"git+https://github.com/bp1410/spectro-vis.git","type":"git"},"_npmVersion":"10.9.2","description":"Spectrogram visualization library based on three.js.","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.11","three":"^0.172.0","three-spritetext":"^1.9.4","vite-plugin-glsl":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/spectro-vis_0.0.1_1739199653821_0.7445133545800704","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@bp1410/spectro-vis","version":"0.1.0","keywords":["fft","visualization"],"author":{"name":"Bolesław Potrac"},"license":"MIT","_id":"@bp1410/spectro-vis@0.1.0","maintainers":[{"name":"bp1410","email":"bp1410fx@gmail.com"}],"homepage":"https://github.com/bp1410/spectro-vis","bugs":{"url":"https://github.com/bp1410/spectro-vis/issues"},"dist":{"shasum":"b4b891e30b2246c0d067231c8fe59fba42cbcde7","tarball":"https://registry.npmjs.org/@bp1410/spectro-vis/-/spectro-vis-0.1.0.tgz","fileCount":7,"integrity":"sha512-43wg/xozydAUJnhlMvPsTF0Pf1K2UnbNjdEW61AoHqp8bsWb7kfgBfBYUJvlC+X3IX7yg6LVuOD2jjIZTGRiqg==","signatures":[{"sig":"MEYCIQDKDOSuRpSlMOCpVPqlFAk28gPP9Ftaz7iJwspP1Ip27AIhAIzdvP9cnk8AKXhxX2Gqukf2ezUNZi74jb50YwvDyOrP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1645342},"main":"dist/index.cjs","type":"module","types":"index.d.ts","module":"dist/index.es.js","browser":"dist/index.umd.js","exports":{".":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"./umd":"./dist/index.umd.js"},"gitHead":"e809dd29fb9308dcc3dd8b31c46a0c79f7830600","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"vite build","examples":"vite serve","postbuild":"cp dist/index.umd.js examples/index.umd.js"},"_npmUser":{"name":"bp1410","email":"bp1410fx@gmail.com"},"repository":{"url":"git+https://github.com/bp1410/spectro-vis.git","type":"git"},"_npmVersion":"10.9.2","description":"Spectrogram visualization library based on three.js.","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.11","three":"^0.172.0","three-spritetext":"^1.9.4","vite-plugin-glsl":"^1.3.1"},"_npmOperationalInternal":{"tmp":"tmp/spectro-vis_0.1.0_1741089105982_0.0318846410571203","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bp1410/spectro-vis","version":"0.1.1","description":"Spectrogram visualization library based on three.js.","type":"module","main":"dist/index.cjs","module":"dist/index.es.js","browser":"dist/index.umd.js","types":"index.d.ts","exports":{".":{"import":"./dist/index.es.js","require":"./dist/index.cjs"},"./umd":"./dist/index.umd.js"},"scripts":{"build":"vite build","postbuild":"cp dist/index.umd.js examples/index.umd.js","examples":"vite serve","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bp1410/spectro-vis.git"},"keywords":["fft","visualization"],"author":{"name":"Bolesław Potrac"},"license":"MIT","homepage":"https://github.com/bp1410/spectro-vis","devDependencies":{"three":"^0.172.0","three-spritetext":"^1.9.4","vite":"^6.0.11","vite-plugin-glsl":"^1.3.1"},"_id":"@bp1410/spectro-vis@0.1.1","gitHead":"d7168516dafdf46deb24af7cf7dedbef56890e72","bugs":{"url":"https://github.com/bp1410/spectro-vis/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-rXwIYVSBTV080uOwB0jCt66PTLcaVVt7ewFJeVlzuElhlcMgF8mT1VY5NthbhfvIEoTT4pcZ65XHWOjrKvI/TQ==","shasum":"64029ea190e855fae0026a9f203053d18cdc1f9d","tarball":"https://registry.npmjs.org/@bp1410/spectro-vis/-/spectro-vis-0.1.1.tgz","fileCount":7,"unpackedSize":1650854,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBtgmUx0aLWMJmWggg9ZoOi6MGSsVRXEpIJ/+kxbOt0kAiAlERh38HUZdIyEHZ1ETiJEjxbFYg8iZfYmy93nDS1Jcw=="}]},"_npmUser":{"name":"bp1410","email":"bp1410fx@gmail.com"},"directories":{},"maintainers":[{"name":"bp1410","email":"bp1410fx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/spectro-vis_0.1.1_1741270497578_0.12083758558345004"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-10T15:00:53.711Z","modified":"2025-03-06T14:14:58.013Z","0.0.1":"2025-02-10T15:00:54.080Z","0.1.0":"2025-03-04T11:51:46.206Z","0.1.1":"2025-03-06T14:14:57.834Z"},"bugs":{"url":"https://github.com/bp1410/spectro-vis/issues"},"author":{"name":"Bolesław Potrac"},"license":"MIT","homepage":"https://github.com/bp1410/spectro-vis","keywords":["fft","visualization"],"repository":{"type":"git","url":"git+https://github.com/bp1410/spectro-vis.git"},"description":"Spectrogram visualization library based on three.js.","maintainers":[{"name":"bp1410","email":"bp1410fx@gmail.com"}],"readme":"# spectro-vis v0.1.0\r\n\r\n# Usage:\r\n\r\n```javascript\r\nimport { SpectrogramThree } from '@bp1410/spectro-vis';\r\n\r\nconst spectrogram = new SpectrogramThree({\r\n    canvas: canvas,\r\n    fftSize: 16384,\r\n    sampling: 44100,\r\n    fontFace: \"Monospace\",\r\n    fontSize: \"24\",\r\n    fontColor: \"#777\",\r\n    bgColor: \"#121212\",\r\n    barColor: \"#ff1\",\r\n    peakColor: \"#f11\",\r\n    gridColor: \"#777\",\r\n});\r\n\r\n// Update the spectrogram with new data\r\nspectrogram.step(fftRow);\r\n\r\n// Reset the spectrogram\r\nspectrogram.reset();\r\n\r\n// Set visible rows in the spectrogram\r\nspectrogram.setVisibleRows(200);\r\n\r\n// Adjust frequency range\r\nspectrogram.setFreqRange(1000, 5000);\r\n\r\n// Set a custom color map (8 colors required)\r\nspectrogram.setBaseColors([0x440154, 0x482777, 0x3F4A8A, 0x31678E, 0x26838F, 0x1F9D88, 0x6CCE5A, 0xFDE725]);\r\n\r\n// Adjust the color mapping range (normalized between 0 and 1)\r\nspectrogram.setColorMapRange(0.2, 0.8);\r\n\r\n// Dispose of the spectrogram instance when no longer needed\r\nspectrogram.dispose();\r\n```\r\n\r\n\r\n","readmeFilename":"README.md"}