{"_id":"@audio/synth-voice","_rev":"5-06c5c144ed297b5a541bb0897003769e","name":"@audio/synth-voice","dist-tags":{"latest":"1.1.3"},"versions":{"1.0.0":{"name":"@audio/synth-voice","version":"1.0.0","keywords":["audio","dsp","synth","voice"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-voice@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"f3103d68273c93a4e1f944f60f39982a03a6cf69","tarball":"https://registry.npmjs.org/@audio/synth-voice/-/synth-voice-1.0.0.tgz","fileCount":2,"integrity":"sha512-GqEmda5nDPCH5DHFnmZKkbIgyL4Gu29hckUg3qw0RtrzDMLwhjx/PgCDACOrtQWhw2RaW/HMm9XDQlHPILbxCw==","signatures":[{"sig":"MEUCIDueJtsu4KtHEf7zqjwIjcTGwdqlB4ktd5Y0r3pSSBC3AiEA8RGJsm0Iam2RS5dOY3W7D++F+IQCkNlfoVh3xqMgzYw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1537},"main":"voice.js","type":"module","engines":{"node":">=18"},"exports":{".":"./voice.js","./package.json":"./package.json"},"gitHead":"be1c6f489cc648aea537f6bc2faf84e4c5b85d00","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/synth-osc":"^1.0.0","@audio/synth-envelope":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-voice_1.0.0_1783540079759_0.7070643709770854","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/synth-voice","version":"1.1.0","keywords":["audio","dsp","synth","voice"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-voice@1.1.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"f25b3622bc428b9b24d744076af54657838b375a","tarball":"https://registry.npmjs.org/@audio/synth-voice/-/synth-voice-1.1.0.tgz","fileCount":3,"integrity":"sha512-crTvbdjDRxRmD9F3KPRWf1ZRwMqGaZcS1EXhl2SGc3UswkjzWdFhXq2yqR3TsFmYUXO3MBI8zwQIDv62ae7/AQ==","signatures":[{"sig":"MEUCIQDdysAkeeaQKmtcBpBEsF5kCUy/2GqoULzkFBm8clvNpQIgaNYL5Ype4gBQNDAGt5eFrfX6itD1dzzYUfWVDhRyAoo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4161},"main":"voice.js","type":"module","audio":"./audio.js","engines":{"node":">=18"},"exports":{".":"./voice.js","./audio":"./audio.js","./package.json":"./package.json"},"gitHead":"49defb57064a09d05ed79603fb9a6a44def5758d","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/synth-osc":"^1.0.0","@audio/synth-envelope":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-voice_1.1.0_1783646799917_0.06063058249793207","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@audio/synth-voice","version":"1.1.1","keywords":["audio","dsp","synth","voice"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-voice@1.1.1","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"5e7ef2e3e06b817919596d5542233732661ab75f","tarball":"https://registry.npmjs.org/@audio/synth-voice/-/synth-voice-1.1.1.tgz","fileCount":4,"integrity":"sha512-EcPksWlZz9CxZvzEtDhdSYW5iHSPzCqP7l7fdonCNCh8JygKifsJc2gHVPooekPploTw32LuamPlzO6XW5ujjQ==","signatures":[{"sig":"MEUCIEfgSEgxhKgORDFkodWSVHCjP76fR86J7+MqqXF8+4tqAiEAu17STWiCNue1b7nHb9JliCxqZxvkFT121ibK8giYRwM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6407},"main":"voice.js","type":"module","audio":"./audio.js","engines":{"node":">=18"},"exports":{".":"./voice.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"gitHead":"9f73eed77e399f2d104760a7c5a5ac1851f75d3d","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/synth-osc":"^1.0.0","@audio/synth-envelope":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-voice_1.1.1_1783701869030_0.676203918205381","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@audio/synth-voice","version":"1.1.2","keywords":["audio","dsp","synth","voice"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-voice@1.1.2","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"b5727e3900e69876fad51609ef0cad22b916b039","tarball":"https://registry.npmjs.org/@audio/synth-voice/-/synth-voice-1.1.2.tgz","fileCount":4,"integrity":"sha512-9tTIWN0ER2A+vaFhacMTlEysyQsWfHTvUiwDBW30AUwYNGVjfFsj2ug5HvEwAUXI9Dn3b4EEZiDAcFLQhKatCw==","signatures":[{"sig":"MEQCICzp+cpvqJPKjgtVhriAp57WoayGS2JBTFpMRyz86fg+AiBATTnH4q5MStq9mjtiEb8feXdO507VzlF8kP4kKYHJrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6421},"main":"voice.js","type":"module","audio":"./audio.js","engines":{"node":">=18"},"exports":{".":"./voice.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"gitHead":"6db0d7608a629be1075cb5eafcbc1282e757ab84","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/note":"^1.0.0","@audio/synth-osc":"^1.0.0","@audio/synth-envelope":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-voice_1.1.2_1783724404392_0.625321821310816","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@audio/synth-voice","version":"1.1.3","description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","type":"module","sideEffects":false,"main":"voice.js","exports":{".":"./voice.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"types":"voice.d.ts","dependencies":{"@audio/synth-osc":"^1.0.0","@audio/synth-envelope":"^1.0.0","@audio/note":"^1.0.0"},"keywords":["audio","dsp","synth","voice"],"license":"MIT","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"audio":"./audio.js","repository":{"type":"git","url":"git+https://github.com/audiojs/synth.git","directory":"packages/synth-voice"},"funding":"https://github.com/sponsors/audiojs","gitHead":"06ea1dd11eb9420b4aacd5ff05916db7c526c811","_id":"@audio/synth-voice@1.1.3","bugs":{"url":"https://github.com/audiojs/synth/issues"},"homepage":"https://github.com/audiojs/synth#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-fwxr+VHXHV5v0Rzf6V6+NgURd+wGgHZvSAkjDDLmOgppIx6THWhTGm6PWxoStOJUuztz9LeCnUfAZVMKmER3sw==","shasum":"e7d9b3c50e34d799c1535ac84ed39f6d90755e1c","tarball":"https://registry.npmjs.org/@audio/synth-voice/-/synth-voice-1.1.3.tgz","fileCount":6,"unpackedSize":9065,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCOWADw5HZAdAYG4x8oaRSbGEM+SHtnVBVgglQMX85H5gIgRv5JvJR3p2GXcMNfbRLXZoM9I3TakFx/NPGBp7AB1GY="}]},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/synth-voice_1.1.3_1783731962294_0.6661165174385242"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-08T19:47:59.579Z","modified":"2026-07-11T01:06:02.631Z","1.0.0":"2026-07-08T19:47:59.913Z","1.1.0":"2026-07-10T01:26:40.095Z","1.1.1":"2026-07-10T16:44:29.167Z","1.1.2":"2026-07-10T23:00:04.530Z","1.1.3":"2026-07-11T01:06:02.444Z"},"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","keywords":["audio","dsp","synth","voice"],"description":"Synth voice — osc × ADSR through envelope-scaled lowpass (Tone.js Synth class)","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/synth-voice [![npm](https://img.shields.io/npm/v/@audio/synth-voice)](https://www.npmjs.com/package/@audio/synth-voice) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nOsc + envelope voice (Tone.js Synth class)\n\n```\nnpm install @audio/synth-voice\n```\n\n```js\nimport voice from '@audio/synth-voice'\n```\n\nComposed voice — [`synth-osc`](https://github.com/audiojs/synth/tree/main/packages/synth-osc) through a one-pole lowpass whose cutoff is scaled by an [`synth-envelope`](https://github.com/audiojs/synth/tree/main/packages/synth-envelope) ADSR, the Tone.js Synth/MonoSynth class. Pitched — `(freq, opts)`.\n\n```js\nvoice(440, { type: 'sawtooth', cutoff: 3000, envAmount: 0.6 })   // → Float32Array\n```\n\n| Param | Default | |\n|---|---|---|\n| `freq` | — | Hz (positional) |\n| `fs` | `44100` | Sample rate |\n| `type` | `'sawtooth'` | Oscillator waveform — see `synth-osc` |\n| `duration` | `0.6` | Note-on length, seconds |\n| `attack` / `decay` / `sustain` / `release` | `0.01` / `0.15` / `0.6` / `0.25` | ADSR, seconds/level |\n| `cutoff` | `3000` | Lowpass cutoff at full envelope, Hz |\n| `envAmount` | `0.6` | 0..1 — how much the envelope scales the cutoff |\n| `amp` | `0.7` | Peak amplitude |\n\n**Use when:** a ready-made subtractive voice for `synth-poly`, without composing osc+envelope+filter by hand.\n\n---\n\nPart of [@audio/synth](https://github.com/audiojs/synth) — the synth family umbrella.\n\nMIT © [audiojs](https://github.com/audiojs)\n","readmeFilename":"README.md","homepage":"https://github.com/audiojs/synth#readme","repository":{"type":"git","url":"git+https://github.com/audiojs/synth.git","directory":"packages/synth-voice"},"bugs":{"url":"https://github.com/audiojs/synth/issues"}}