From 6a51e1385d2b48c244852f53f375ab595cdeccdd Mon Sep 17 00:00:00 2001 From: danigb Date: Mon, 30 Sep 2024 03:20:52 +0200 Subject: [PATCH] Updates --- 404.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 _next/static/chunks/13-cace8c72f81b85be.js | 1 - _next/static/chunks/205-457e9c6d9d25f104.js | 1 + .../docs/[[...slug]]/page-7ee8e69a488f8f91.js | 1 - .../docs/[[...slug]]/page-9e368e715115b7c3.js | 1 + .../app/docs/layout-155e67df8f74940f.js | 1 - .../app/docs/layout-1b2b46740b89150f.js | 1 + docs/ad-amp.html | 4 +-- docs/ad-amp.txt | 36 +++++++++---------- docs/ad.html | 4 +-- docs/ad.txt | 34 +++++++++--------- docs/adsr-amp.html | 4 +-- docs/adsr-amp.txt | 36 +++++++++---------- docs/adsr.html | 4 +-- docs/adsr.txt | 32 ++++++++--------- docs/arp.html | 4 +-- docs/arp.txt | 34 +++++++++--------- docs/chorus-t.html | 4 +-- docs/chorus-t.txt | 32 ++++++++--------- docs/chorus.html | 4 +-- docs/chorus.txt | 34 +++++++++--------- docs/clip-amp.html | 4 +-- docs/clip-amp.txt | 32 ++++++++--------- docs/clock.html | 4 +-- docs/clock.txt | 34 +++++++++--------- docs/dattorro.html | 4 +-- docs/dattorro.txt | 34 +++++++++--------- docs/dsl.html | 4 +-- docs/dsl.txt | 32 ++++++++--------- docs/euclid.html | 4 +-- docs/euclid.txt | 34 +++++++++--------- docs/guide.html | 4 +-- docs/guide.txt | 36 +++++++++---------- docs/impulse.html | 4 +-- docs/impulse.txt | 34 +++++++++--------- docs/index.html | 4 +-- docs/ks.html | 20 +++++++++++ docs/ks.txt | 32 +++++++++++++++++ docs/lfo.html | 4 +-- docs/lfo.txt | 32 ++++++++--------- docs/noise.html | 4 +-- docs/noise.txt | 34 +++++++++--------- docs/param.html | 4 +-- docs/param.txt | 32 ++++++++--------- docs/polyblep.html | 4 +-- docs/polyblep.txt | 34 +++++++++--------- docs/quick-start.html | 4 +-- docs/quick-start.txt | 36 +++++++++---------- docs/state-variable-filter.html | 4 +-- docs/state-variable-filter.txt | 36 +++++++++---------- docs/synths.html | 4 +-- docs/synths.txt | 36 +++++++++---------- docs/troubleshoo.html | 4 +-- docs/troubleshoo.txt | 30 ++++++++-------- docs/wavetable.html | 4 +-- docs/wavetable.txt | 34 +++++++++--------- index.html | 2 +- index.txt | 2 +- 60 files changed, 495 insertions(+), 443 deletions(-) rename _next/static/{PQyO1LBxNzTA8qq9LWefV => AHEqoYS5YYaainxerm8YO}/_buildManifest.js (100%) rename _next/static/{PQyO1LBxNzTA8qq9LWefV => AHEqoYS5YYaainxerm8YO}/_ssgManifest.js (100%) delete mode 100644 _next/static/chunks/13-cace8c72f81b85be.js create mode 100644 _next/static/chunks/205-457e9c6d9d25f104.js delete mode 100644 _next/static/chunks/app/docs/[[...slug]]/page-7ee8e69a488f8f91.js create mode 100644 _next/static/chunks/app/docs/[[...slug]]/page-9e368e715115b7c3.js delete mode 100644 _next/static/chunks/app/docs/layout-155e67df8f74940f.js create mode 100644 _next/static/chunks/app/docs/layout-1b2b46740b89150f.js create mode 100644 docs/ks.html create mode 100644 docs/ks.txt diff --git a/404.html b/404.html index 6722bc4..d2c99af 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/PQyO1LBxNzTA8qq9LWefV/_buildManifest.js b/_next/static/AHEqoYS5YYaainxerm8YO/_buildManifest.js similarity index 100% rename from _next/static/PQyO1LBxNzTA8qq9LWefV/_buildManifest.js rename to _next/static/AHEqoYS5YYaainxerm8YO/_buildManifest.js diff --git a/_next/static/PQyO1LBxNzTA8qq9LWefV/_ssgManifest.js b/_next/static/AHEqoYS5YYaainxerm8YO/_ssgManifest.js similarity index 100% rename from _next/static/PQyO1LBxNzTA8qq9LWefV/_ssgManifest.js rename to _next/static/AHEqoYS5YYaainxerm8YO/_ssgManifest.js diff --git a/_next/static/chunks/13-cace8c72f81b85be.js b/_next/static/chunks/13-cace8c72f81b85be.js deleted file mode 100644 index 1881ee3..0000000 --- a/_next/static/chunks/13-cace8c72f81b85be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13],{7897:function(e,t,r){var a=r(7949),n=r(4645),o=r(2576),s=r(1471),i=r(9237);let l=e=>{let t=(0,n.KM)(e),r=t.param(),a=t.param(.01),o=t.param(.3);return t.withParams(t.conn.serial(t.osc.sin(440),t.amp.perc(r,a,o)),{trigger:r,attack:a,release:o})};function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[(0,a.jsx)(s.i,{label:"Attack",inputClassName:"col-span-2",param:e.attack}),(0,a.jsx)(s.i,{label:"Release",inputClassName:"col-span-2",max:5,param:e.release})]}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(o.yR,{trigger:e.trigger})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"AD",children:(0,a.jsx)(u,{})})},1978:function(e,t,r){var a=r(7949),n=r(4645),o=r(2576),s=r(9237);let i=e=>{let t=(0,n.KM)(e),r=t.param();return t.withParams(t.conn.serial(t.osc.sin(440),t.amp.adsr(r)),{gate:r})};function l(){let e=(0,s.Z)(i);return e?(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(o.Gp,{gate:e.gate})}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"ADSR",children:(0,a.jsx)(l,{})})},2954:function(e,t,r){var a=r(7949),n=r(6265),o=r(4645),s=r(2576),i=r(1471),l=r(9237);function u(e){let t=(0,o.SU)(e,{bpm:120}),r=(0,o.Ek)(e,{clock:t,beats:5,steps:16}),a=(0,o.km)(e,{trigger:r,type:o.Co.Random,scale:o.ji.Major,octaves:2}),n=(0,o.op)(e,{gate:r,frequency:a}),s=(0,o.U)(e,{decay:.9});return n.connect(s),Object.assign(s,{synth1:n,arp:a,clock:t,euclid:r})}function c(){let[e,t]=(0,n.useState)(o.Z9.White),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-col-4 gap-2",children:[(0,a.jsx)(i.i,{label:"Tempo",inputClassName:"col-span-2",min:60,max:180,units:"bpm",param:r.clock.bpm}),(0,a.jsx)(i.i,{label:"Beats",inputClassName:"col-span-2",min:1,max:16,step:1,param:r.euclid.beats})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Arpeggiator",children:(0,a.jsx)(c,{})})},1987:function(e,t,r){r.d(t,{AttackDecayExample:function(){return u}});var a=r(7949),n=r(1471),o=r(6265),s=r(4645),i=r(9237);let l=e=>{let t=(0,s.KM)(e),r=t.param(),a=t.param(),n=t.param();return t.synth({out:t.conn.serial(t.osc.sin(t.env.ad(r,{attack:n,decay:a,offset:440,gain:2e3})),t.amp(.2)),params:{trigger:r,attack:n,decay:a}})};function u(){let[e,t]=(0,o.useState)(!1);return e?(0,a.jsx)(c,{onClose:()=>t(!1)}):(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:()=>t(!0),children:"Open example"})}function c(e){let{onClose:t}=e,r=(0,i.Z)(l);return r?(0,a.jsxs)("div",{className:"bg-fd-card text-fd-foreground p-2 border rounded",children:[(0,a.jsx)("div",{className:"text-xl mb-4",children:"AttackDecay generator example"}),(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(n.i,{label:"Attack",labelClassName:"w-20 text-right mr-2",min:0,max:1,step:.001,param:r.attack})}),(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(n.i,{label:"Decay",labelClassName:"w-20 text-right mr-2",min:0,max:1,step:.001,param:r.decay})}),(0,a.jsx)("div",{className:"flex mb-4",children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{r.trigger.value=1},onMouseUp:()=>{r.trigger.value=0},children:"Trigger"})}),(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:t,children:"Close"})]}):null}},5778:function(e,t,r){r.d(t,{default:function(){return d}});var a,n=r(7949),o=r(4645);let s=(a={processorName:"ChorusProcessor",paramNames:["delay","rate","depth","deviation"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})},function(e){var t;let r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new AudioWorkletNode(e,a.processorName,a.workletOptions(n));o.__PROCESSOR_NAME__=a.processorName;let s=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(o,a.paramNames,n);return null===(t=a.postCreate)||void 0===t||t.call(a,o),r=!1,Object.assign(o,{dispose(){var e,t;if(!r&&(r=!0,o.disconnect(),null===(e=o.port)||void 0===e||e.postMessage({type:"DISPOSE"}),s))for(;s.length;){let e=s.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});var i=r(2576),l=r(1471),u=r(9237);function c(e){let t=(0,o.dO)(e,{input:.1}),r=(0,o.D_)(e,{frequency:440}),a=(0,o.wF)(e,{gate:t}),n=s(e,{});return r.connect(a).connect(n),Object.assign(n,{osc:r,amp:a,gate:t,chorus:n})}function p(){let e=(0,u.Z)(c);return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[(0,n.jsx)(l.i,{label:"Delay",inputClassName:"col-span-2",param:e.chorus.delay}),(0,n.jsx)(l.i,{label:"Rate",inputClassName:"col-span-2",param:e.chorus.rate}),(0,n.jsx)(l.i,{label:"Depth",inputClassName:"col-span-2",param:e.chorus.depth}),(0,n.jsx)(l.i,{label:"Deviation",inputClassName:"col-span-2",param:e.chorus.deviation})]}),(0,n.jsx)(i.Gp,{gate:e.gate.input})]}):null}var d=()=>(0,n.jsx)(i.Yt,{label:"Chorus",children:(0,n.jsx)(p,{})})},7028:function(e,t,r){var a=r(7949),n=r(4645),o=r(2576),s=r(1471),i=r(9237);function l(e){let t=(0,n.dO)(e,{input:60}),r=(0,n.SU)(e,{bpm:t});return Object.assign((0,n.m7)(e,{trigger:r}),{bpm:t.input})}function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-4 gap-4",children:(0,a.jsx)(s.i,{label:"Tempo",inputClassName:"col-span-2",min:1,max:1e3,units:"bpm",param:e.bpm})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(s.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,units:"dB",param:e.volume})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Clock",children:(0,a.jsx)(u,{})})},8682:function(e,t,r){var a=r(7949),n=r(4645),o=r(2576),s=r(1471),i=r(9237);function l(e){let t=(0,n.m7)(e),r=(0,n.U)(e);return r.connect(e.destination),t.connect(r),Object.assign(t,{reverb:r})}function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.UC,{label:"Input",paneClassName:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)(s.i,{label:"Filter",inputClassName:"col-span-2",param:e.reverb.filter}),(0,a.jsx)(s.i,{label:"Diffusion 1",inputClassName:"col-span-2",param:e.reverb.inputDiffusion1}),(0,a.jsx)(s.i,{label:"Diffusion 2",inputClassName:"col-span-2",param:e.reverb.inputDiffusion2})]}),(0,a.jsxs)(o.UC,{label:"Feedback",paneClassName:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)(s.i,{label:"Diffusion 1",inputClassName:"col-span-2",param:e.reverb.decayDiffusion1}),(0,a.jsx)(s.i,{label:"Diffusion 2",inputClassName:"col-span-2",param:e.reverb.decayDiffusion2}),(0,a.jsx)(s.i,{label:"Decay",inputClassName:"col-span-2",param:e.reverb.decay}),(0,a.jsx)(s.i,{label:"Damping",inputClassName:"col-span-2",param:e.reverb.damping})]}),(0,a.jsx)(o.yR,{className:"mt-4",trigger:e.trigger})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Dattorro Reverb",children:(0,a.jsx)(u,{})})},5011:function(e,t,r){var a=r(7949),n=r(1471),o=r(6265),s=r(4645),i=r(2576),l=r(9237);let u={KickDrum:s.nl,SnareDrum:s.vD,ClaveDrum:s.m7,HiHatDrum:s.VR,CowBellDrum:s.Dr,CymbalDrum:s.e2,MaracasDrum:s._K,HandclapDrum:s.NR,TomDrum:s.IL,CongaDrum:s.q1};class c{getNames(){return Object.keys(u)}getSynth(e){if(!this.synths.has(e)){console.log("CREATE SYNTH",e);let t=u[e];if(!t)throw Error("Unknown instrument: ".concat(e));let r=t(this.context);r.connect(this.output),this.synths.set(e,Object.assign(r,{name:e}))}return this.synths.get(e)}dispose(){for(let e of this.synths.values())e.dispose()}constructor(e){this.context=e,this.output=e.createGain(),this.synths=new Map,this.connect=this.output.connect.bind(this.output)}}function p(e){let{}=e,t=(0,l.Z)(e=>new c(e)),[r,s]=(0,o.useState)(null);return t?(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)("div",{className:"col-span-4 font-bold border-b",children:r.name.slice(0,-4)}),(0,a.jsx)(n.i,{label:"Tone",inputClassName:"col-span-2",min:0,max:1,step:.01,param:r.tone}),(0,a.jsx)(n.i,{label:"Decay",inputClassName:"col-span-2",min:0,max:1,step:.01,param:r.decay}),(0,a.jsx)(n.i,{label:"Volume",inputClassName:"col-span-2",min:-60,max:0,step:1,units:"dB",param:r.volume})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:t.getNames().map(e=>(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onMouseDown:()=>{let r=t.getSynth(e);r.trigger.value=1,s(r)},onMouseUp:()=>{let r=t.getSynth(e);r.trigger.value=0,s(r)},children:e.slice(0,-4)},e))})]}):null}t.default=()=>(0,a.jsx)(i.Yt,{label:"Drums",children:(0,a.jsx)(p,{})})},4951:function(e,t,r){var a=r(7949),n=r(4645),o=r(2576),s=r(1471),i=r(9237);let l=e=>{let t=(0,n.KM)(e).use({clave:n.m7,kick:n.nl}),r=t.param(100),a=t.clock({bpm:r}),o=t.param.db(-12),s=t.clave({trigger:t.euclid({clock:a,steps:16,beats:7,subdivison:4,rotation:3}),volume:o}),i=t.kick({trigger:t.euclid({clock:a,steps:16,beats:5,subdivison:4}),volume:o});return t.withParams(t.conn([s,i],t.gain()),{bpm:r,volume:o})};function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-4 gap-4",children:(0,a.jsx)(s.i,{label:"Tempo",inputClassName:"col-span-2",min:1,max:1e3,param:e.bpm,units:"bpm"})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(s.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,param:e.volume,units:"dB"})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Euclid",children:(0,a.jsx)(u,{})})},2152:function(e,t,r){r.d(t,{ImpulseExample:function(){return l}});var a=r(7949),n=r(4645),o=r(2576),s=r(9237);let i=e=>{let t=(0,n.KM)(e),r=t.param();return t.synth({out:t.impulse.trigger(r),params:{trigger:r}})};function l(){let e=(0,s.Z)(i);return e?(0,a.jsx)(o.Yt,{label:"Impulse",children:(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(o.yR,{trigger:e.trigger})})}):null}},8773:function(e,t,r){r.d(t,{default:function(){return c}});var a=r(7949),n=r(4645),o=r(1471);function s(e){let{adsr:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.i,{label:"Attack",inputClassName:"col-span-2",min:.1,max:10,step:.1,param:t.attack,units:"secs"}),(0,a.jsx)(o.i,{label:"Decay",inputClassName:"col-span-2",min:.1,max:10,step:.1,param:t.decay,units:"secs"}),(0,a.jsx)(o.i,{label:"Sustain",inputClassName:"col-span-2",min:.1,max:1,step:.01,param:t.sustain}),(0,a.jsx)(o.i,{label:"Release",inputClassName:"col-span-2",min:.1,max:100,step:.2,param:t.release,units:"secs"})]})}var i=r(2576),l=r(9237);function u(){let e=(0,l.Z)(e=>(0,n.op)(e));return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.UC,{label:"Oscillator",paneClassName:"grid grid-cols-4 gap-2",children:[(0,a.jsx)(o.i,{label:"Frequency",inputClassName:"col-span-2",min:20,max:3e3,param:e.osc.frequency}),(0,a.jsx)(o.i,{label:"Vibrato depth",inputClassName:"col-span-2",max:20,param:e.vibrato.gain}),(0,a.jsx)(o.i,{label:"Vibrato freq",inputClassName:"col-span-2",min:0,max:100,param:e.vibrato.frequency})]}),(0,a.jsx)(i.UC,{label:"Filter",paneClassName:"grid grid-cols-4 gap-2",children:(0,a.jsx)(s,{adsr:e.filterEnv})}),(0,a.jsx)(i.UC,{label:"Amplifier",paneClassName:"grid grid-cols-4 gap-2",children:(0,a.jsx)(s,{adsr:e.amp})}),(0,a.jsx)("div",{className:"flex mt-2",children:(0,a.jsx)(i.Gp,{gate:e.gate})}),(0,a.jsx)("div",{className:"grid grid-cols-4 mt-4 pt-2 border-t",children:(0,a.jsx)(o.i,{label:"Volume",inputClassName:"col-span-2",min:-48,max:0,units:"dB",param:e.volume})})]}):null}var c=()=>(0,a.jsx)(i.Yt,{label:"Mono Synth",children:(0,a.jsx)(u,{})})},4702:function(e,t,r){r.r(t);var a=r(7949),n=r(6265),o=r(4645),s=r(2576),i=r(1471),l=r(9237);function u(e){let t=(0,o.KM)(e),r=t.param.db(-100),a=t.param(o.Z9.White);return t.withParams(t.conn.serial(t.noise({type:a}),t.amp(r)),{volume:r,noiseType:a})}function c(){let[e,t]=(0,n.useState)(o.Z9.White),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{children:"Noise type:"}),(0,a.jsxs)("select",{value:e,onChange:e=>{let a=parseInt(e.target.value);t(a),r.noiseType.value=a},children:[(0,a.jsx)("option",{value:o.Z9.White,children:"White"}),(0,a.jsx)("option",{value:o.Z9.Pink,children:"Pink"})]}),(0,a.jsx)("div",{className:"col-span-2"}),(0,a.jsx)(i.i,{label:"Volume",inputClassName:"col-span-2",min:-100,max:0,param:r.volume,units:"dB"})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Noise",children:(0,a.jsx)(c,{})})},4901:function(e,t,r){r.d(t,{default:function(){return d}});var a=r(7949),n=r(4645),o=r(2576),s=r(6265);function i(e){let{name:t,valueNames:r,labelClassName:n,inputClassName:o,param:i,hint:l}=e,[u,c]=(0,s.useState)(i.value);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n,children:t}),(0,a.jsx)("select",{className:o,value:u,onChange:e=>{let t=parseInt(e.target.value);c(t),i.value=t},children:r.map((e,t)=>(0,a.jsx)("option",{value:t,children:e},e))}),(0,a.jsx)("div",{children:l})]})}var l=r(1471),u=r(9237);function c(e){let t=n.dO.db(e,-24),r=(0,n.F2)(e,{frequency:1,gain:0}),a=(0,n.Zm)(e,{frequency:440,detune:r}),o=(0,n.S9)(e,{gain:t});return Object.assign((0,n.No)([a,o]),{osc:a,lfo:r,amp:o,volume:t.input})}function p(){let e=(0,u.Z)(c);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)(i,{name:"Waveform",inputClassName:"col-span-2",param:e.osc.type,valueNames:["Saw","Square","Triangle"]}),(0,a.jsx)(l.i,{label:"Frequency",inputClassName:"col-span-2",min:20,max:3e3,units:"Hz",param:e.osc.frequency}),(0,a.jsx)(l.i,{label:"Modulation",inputClassName:"col-span-2",min:0,max:1e3,param:e.lfo.gain})]}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(l.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,param:e.volume,units:"dB"})})]}):null}var d=()=>(0,a.jsx)(o.Yt,{label:"Polyblep oscillator",children:(0,a.jsx)(p,{})})},2148:function(e,t,r){var a=r(7949),n=r(6265),o=r(4645),s=r(2576),i=r(1471),l=r(9237);let u=e=>{let t=(0,o.D_)(e,{type:"sawtooth",frequency:1e3}),r=(0,o.$N)(e,{type:o.zX.LowPass,frequency:1e3,Q:1}),a=(0,o.dO)(e,{scale:o.$q.DbToGain,input:-12}),n=(0,o.F2)(e,{frequency:2,type:o.Pf.RampUp,gain:0}),s=(0,o.S9)(e,{gain:a});return t.connect(r).connect(s),n.connect(r.frequency),Object.assign(s,{osc:t,filter:r,volume:a.input,lfo:n})};function c(){let[e,t]=(0,n.useState)(o.zX.LowPass),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{children:"Filter type"}),(0,a.jsxs)("select",{className:"col-span-2",value:e,onChange:e=>{t(parseInt(e.target.value)),r.filter.type.value=parseInt(e.target.value)},children:[(0,a.jsx)("option",{value:o.zX.ByPass,children:"None"}),(0,a.jsx)("option",{value:o.zX.LowPass,children:"Low pass"}),(0,a.jsx)("option",{value:o.zX.HighPass,children:"High pass"}),(0,a.jsx)("option",{value:o.zX.BandPass,children:"Band pass"}),(0,a.jsx)("option",{value:o.zX.Notch,children:"Notch"}),(0,a.jsx)("option",{value:o.zX.Peak,children:"Peak"}),(0,a.jsx)("option",{value:o.zX.AllPass,children:"All pass"})]}),(0,a.jsx)("div",{}),(0,a.jsx)(i.i,{label:"Frequency",inputClassName:"col-span-2",param:r.filter.frequency,min:20,max:2e4}),(0,a.jsx)(i.i,{label:"Q",inputClassName:"col-span-2",param:r.filter.Q,min:0,max:40}),(0,a.jsx)(i.i,{label:"Modulation",inputClassName:"col-span-2",param:r.lfo.gain,min:0,max:1e3}),(0,a.jsx)(i.i,{label:"Volume",inputClassName:"col-span-2",param:r.volume,min:-60,max:0})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Svf",children:(0,a.jsx)(c,{})})},6683:function(e,t,r){var a=r(7949),n=r(6265),o=r(4645),s=r(2576),i=r(1471),l=r(9237);let u=()=>e=>{let t=(0,o.KM)(e),r=t.param(),a=t.param(440),n=t.param.db(-24),s=t.wt();return s.loadWavetable("ACCESS_V"),Object.assign(t.withParams(t.conn.serial(s,t.amp.adsr(r),t.amp(n)),{freq:a,volume:n,gate:r}),{osc:s})};function c(){let[e,t]=(0,n.useState)("ACCESS_V"),[r,c]=(0,n.useState)([]);(0,n.useEffect)(()=>{(0,o.Xi)().then(e=>{e.sort(),c(e)})},[]);let p=(0,l.Z)(u());return p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{className:"text-right",children:"Wavetable"}),(0,a.jsx)("select",{className:"col-span-2 bg-zinc-900 p-1 rounded border-zinc-300",value:e,onChange:e=>{t(e.target.value),p.osc.loadWavetable(e.target.value)},children:r.map(e=>(0,a.jsx)("option",{children:e},e))}),(0,a.jsx)("div",{}),(0,a.jsx)(i.i,{label:"Morph freq",labelClassName:"text-right",inputClassName:"col-span-2",min:0,max:10,step:.1,param:p.osc.morphFrequency})]}),(0,a.jsx)("div",{className:"flex mt-4",children:(0,a.jsx)(s.Gp,{gate:p.gate})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(i.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,units:"dB",param:p.volume})})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Wavetable",children:(0,a.jsx)(c,{})})},2576:function(e,t,r){r.d(t,{Gp:function(){return l},UC:function(){return s},Yt:function(){return o},yR:function(){return i}});var a=r(7949),n=r(6265);function o(e){let{label:t,header:r,children:o}=e,[s,i]=(0,n.useState)(!1);return s?(0,a.jsxs)("div",{className:"bg-fd-card text-fd-foreground p-2 border rounded",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsxs)("div",{className:"text-xl mb-4 flex-grow",children:[t," example"]}),r,(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:()=>{i(!1)},children:"Close"})]}),o]}):(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary text-nowrap",onClick:()=>{i(!0)},children:"Open example"})})}function s(e){let{label:t,children:r,paneClassName:o}=e,[s,i]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bold mt-4 border-b mb-1",children:(0,a.jsxs)("button",{onClick:()=>{i(!s)},children:[t,(0,a.jsx)("span",{className:"text-xs ml-2",children:s?"▼":"▶"})]})}),s&&(0,a.jsx)("div",{className:o,children:r})]})}function i(e){let{trigger:t,className:r}=e;return(0,a.jsx)("div",{className:"flex mb-4 "+(null!=r?r:""),children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{t.value=1},onMouseUp:()=>{t.value=0},children:"Trigger"})})}function l(e){let{gate:t}=e,[r,o]=(0,n.useState)(!1),[s,i]=(0,n.useState)(!1);return(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{let e=!r||!s;i(e),t.value=e?1:0},onMouseUp:()=>{r||(i(!1),t.value=0)},children:"Gate"}),(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{className:"mr-1",type:"checkbox",checked:r,onChange:()=>{o(!r)}}),"Sustain"]})]})}},1471:function(e,t,r){r.d(t,{i:function(){return o}});var a=r(7949),n=r(6265);function o(e){let{label:t,min:r=0,max:o=1,step:s,transform:i=e=>e,inputClassName:l,labelClassName:u,valueClassName:c,param:p,units:d}=e,[f,m]=(0,n.useState)(p.value);return(0,n.useEffect)(()=>{m(p.value)},[p]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:u,children:t}),(0,a.jsx)("input",{className:l,type:"range",min:r,max:o,step:null!=s?s:"any",value:f,onChange:e=>{let t=e.target.valueAsNumber;m(t),p.value=i(t)}}),(0,a.jsxs)("div",{className:c,children:[i(f).toFixed(2),d]})]})}},9237:function(e,t,r){let a;r.d(t,{Z:function(){return s}});var n=r(4645),o=r(6265);function s(e){let[t,r]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let t;console.log("useSynth connecting");let o=!1;return(a||(a=(0,n.K_)(new AudioContext)),a).then(a=>{o||((t=e(a)).connect(a.destination),console.log("useSynth connected",t),r(t))}),()=>{o=!0,console.log("useSynth dispose",t),null==t||t.dispose()}},[]),t}},4645:function(e,t,r){let a,n;r.d(t,{wF:function(){return ee},km:function(){return en},ji:function(){return er},Co:function(){return et},m7:function(){return e5},SU:function(){return ep},q1:function(){return tt},No:function(){return e$},Dr:function(){return e6},e2:function(){return e9},U:function(){return em},Ek:function(){return eg},S9:function(){return ez},NR:function(){return e8},VR:function(){return e7},nl:function(){return e2},F2:function(){return eM},Pf:function(){return ey},_K:function(){return e3},op:function(){return ta},Z9:function(){return ek},D_:function(){return eX},dO:function(){return eS},$q:function(){return eO},Zm:function(){return eC},vD:function(){return e4},$N:function(){return eW},zX:function(){return eD},IL:function(){return te},Xi:function(){return eZ},KM:function(){return eJ},K_:function(){return tn}});var o,s,i,l,u,c,p,d,f,m,h,g,b,v,y,x,N,M,k,w,j,O,A,P,S,_,R,C,D,E,W,I,V,F,q,L,U,T,B,Z,H,G,Y,K=(c='"use strict";(()=>{var M=class extends AudioWorkletProcessor{r;d;constructor(){super(),this.r=!0,this.d=O(sampleRate),this.port.onmessage=a=>{switch(a.data.type){case"DISPOSE":this.r=!1;break}}}process(a,n,t){return this.d.update(t.trigger[0],t.attack[0],t.decay[0]),this.d.gen(n[0][0],t.offset[0],t.gain[0]),this.r}static get parameterDescriptors(){return[["trigger",0,0,1],["attack",.01,0,10],["decay",.1,0,10],["offset",0,0,2e4],["gain",1,0,1e4]].map(([a,n,t,d])=>({name:a,defaultValue:n,minValue:t,maxValue:d,automationRate:"k-rate"}))}};registerProcessor("AdProcessor",M);function O(l){let D=l*.05,g=l*.1,u=!1,E=.1,f=.1,h=Math.exp(-1/(.1*D)),A=Math.exp(-1/(.1*g)),r=0,s=0;return{update(o,c,i){if(o===1?u||(u=!0,r=1):u=!1,c!==E){E=c;let e=Math.max(E*D,.001);h=Math.exp(-1/e)}if(i!==f){f=i;let e=Math.max(f*g,.001);A=Math.exp(-1/e)}},gen(o,c,i){let e=0;for(let p=0;p({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,p.processorName,p.workletOptions(a));n.__PROCESSOR_NAME__=p.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,p.paramNames,a);return null===(t=p.postCreate)||void 0===t||t.call(p,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});function X(e){return function(t){var r;let a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new AudioWorkletNode(t,e.processorName,e.workletOptions(n));o.__PROCESSOR_NAME__=e.processorName;let s=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(o,e.paramNames,n);return null===(r=e.postCreate)||void 0===r||r.call(e,o),a=!1,Object.assign(o,{dispose(){var e,t;if(!a&&(a=!0,o.disconnect(),null===(e=o.port)||void 0===e||e.postMessage({type:"DISPOSE"}),s))for(;s.length;){let e=s.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}}var Q=["gate","attack","decay","sustain","release","offset","gain"],$=(d='"use strict";(()=>{function I(){let u=!1;return r=>{if(u===!1&&r>=.9)return u=!0,!0;if(u===!0&&r<.1)return u=!1,!1}}function D(u){let r=Math.exp(-1.5),n=Math.exp(-4.95),s=0,o=0,l=0,b=0,p={b:0,c:0},y={b:0,c:0},A={b:0,c:0},x=I(),f=0,e=0;return k(.01,.1,.5,.3),function(a,i,c,m){F(m);let P=m.offset[0],R=m.gain[0];for(let d=0;d=1||s<=0)&&(e=1,f=2);break;case 2:e=y.b+e*y.c,(e<=b||o<=0)&&(e=b,f=3);break;case 3:e=b;break;case 4:e=A.b+e*A.c,(e<=0||l<=0)&&(e=0,f=0)}let S=c?a[d]*e:e;i[d]=S*R+P}};function F(t){k(t.attack[0],t.decay[0],t.sustain[0],t.release[0]);let a=x(t.gate[0]);a===!0?f=1:a===!1&&(f=4)}function k(t,a,i,c){(b!==i||o!==a)&&(b=i,o=a,h(y,o,b,n)),s!==t&&(s=t,h(p,s,1+2*r,r)),l!==c&&(l=c,h(A,l,0,n))}function h(t,a,i,c){let m=a*u;t.c=Math.exp(-Math.log((1+c)/c)/m),t.b=(i-c)*(1-t.c)}}var g=class extends AudioWorkletProcessor{p;r=!0;m;constructor(r){super(),this.m=r.processorOptions.mode==="modulator",this.p=D(sampleRate),this.port.onmessage=n=>{switch(n.data.type){case"DISPOSE":this.r=!1;break}}}process(r,n,s){let o=this.m?r[0][0]:void 0,l=n[0][0];return this.p(o,l,this.m,s),this.r}static get parameterDescriptors(){return[["gate",0,0,1],["attack",.01,0,10],["decay",.1,0,10],["sustain",.5,0,1],["release",.3,0,100],["offset",0,0,2e4],["gain",1,-2e4,2e4]].map(([r,n,s,o])=>({name:r,defaultValue:n,minValue:s,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("AdsrProcessor",g);})();',function(e){let t="__ADSR__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([d],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),J=X({processorName:"AdsrProcessor",paramNames:Q,workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1,processorOptions:{mode:"generator"}})}),ee=X({processorName:"AdsrProcessor",paramNames:Q,workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,processorOptions:{mode:"modulator"}})}),et=((f=et||{})[f.Random=0]="Random",f),er=((m=er||{})[m.Augmented=2457]="Augmented",m[m.Blues=1257]="Blues",m[m.Chromatic=4095]="Chromatic",m[m.Diminished=2925]="Diminished",m[m.Dominant7th=1169]="Dominant7th",m[m.Dorian=1709]="Dorian",m[m.HalfWholeDiminished=1755]="HalfWholeDiminished",m[m.HarmonicMinor=2477]="HarmonicMinor",m[m.Locrian=1387]="Locrian",m[m.Lydian=2773]="Lydian",m[m.Major6th=657]="Major6th",m[m.Major7th=2193]="Major7th",m[m.Major=2741]="Major",m[m.MelodicMinor=2733]="MelodicMinor",m[m.Minor7th=1161]="Minor7th",m[m.Minor=1453]="Minor",m[m.MinorMajor7th=2185]="MinorMajor7th",m[m.Mixolydian=1717]="Mixolydian",m[m.Pentatonic=1193]="Pentatonic",m[m.PentatonicMajor=661]="PentatonicMajor",m[m.PentatonicMinor=1193]="PentatonicMinor",m[m.Phrygian=1451]="Phrygian",m[m.Sus2=133]="Sus2",m[m.Sus4=161]="Sus4",m[m.TriadAugmented=273]="TriadAugmented",m[m.TriadDiminished=73]="TriadDiminished",m[m.TriadMajor=145]="TriadMajor",m[m.TriadMinor=137]="TriadMinor",m[m.WholeHalfDiminished=2925]="WholeHalfDiminished",m[m.WholeTone=1365]="WholeTone",m),ea=(h='"use strict";(()=>{function g(){let i=60,o=0,n=1,t=[0],e=0,s=1,u=!1,f=i;return function(h,a,y,m,x){return i=y,n=x,o!==m&&(o=m,t=D(m),s=t.length,e=e%s),h===1?u||(u=!0,f=M(a)):u=!1,440*Math.pow(2,(f-69)/12)};function M(r){switch(r){case 0:default:return b()}}function b(){let r=Math.floor(Math.random()*(n-1)),h=t[Math.floor(Math.random()*s)];return i+h+r*12}}function D(i){let o=i.toString(2),n=[];for(let t=0;t{switch(o.data.type){case"DISPOSE":this.r=!1;break}}}process(o,n,t){let e=this.a(t.trigger[0],t.type[0],t.baseNote[0],t.scale[0],t.octaves[0]),s=n[0][0];return s&&s.fill(e),this.r}static get parameterDescriptors(){return[["trigger",0,0,1],["type",0,0,1],["baseNote",60,0,200],["scale",1,1,2047],["octaves",1,1,10]].map(([o,n,t,e])=>({name:o,defaultValue:n,minValue:t,maxValue:e,automationRate:"k-rate"}))}};registerProcessor("ArpProcessor",d);})();',function(e){let t="__ARP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([h],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),en=(g={processorName:"ArpProcessor",paramNames:["trigger","type","baseNote","scale","octaves"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,g.processorName,g.workletOptions(a));n.__PROCESSOR_NAME__=g.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,g.paramNames,a);return null===(t=g.postCreate)||void 0===t||t.call(g,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eo=(b='"use strict";(()=>{function pt(i){let l=new Float32Array(65536),a=new Float32Array(65536),h=i,r=new Float32Array(2),t=new Float32Array(2),m=new Float32Array(2),p=new Float32Array(2),c=new Float32Array(2),n=new Float32Array(2),u=new Float32Array(2),f=new Float32Array(2),T=new Float32Array(2),y=new Float32Array(2),x=new Float32Array(2),o=new Float32Array(8192),e=0,w=new Int32Array(2),M=Math.min(192e3,Math.max(1,h)),v=Math.exp(-(44.12234/M)),D=1-v,ct=.33333334/M,ut=1/M,Tt=.14285715/M,yt=.5/M,xt=.25/M,At=.16666667/M,wt=.125/M,E=.5,G=.5,O=.5,L=.5;st(l,St),st(a,Vt);function Ft(F,I,k){let P=D*E,Rt=4.096*G,Ct=625e-7*O,bt=D*L;for(let A=0;A>>0,t[1]=t[0],n[1]=n[0],f[1]=f[0],u[1]=u[0],T[1]=T[0],y[1]=y[0],x[1]=x[0],m[1]=m[0],p[1]=p[0],c[1]=c[0]}}function dt(F,I,k,P){E=F,G=I,O=k,L=P}return{update:dt,compute:Ft}}var St=i=>Math.cos(958738e-10*i),Vt=i=>Math.sin(958738e-10*i);function st(i,l){if(i.length!==65536)throw new Error("Table must be 65536 samples long");let a=0,h=0,r=0,t=0;for(let m=0;m<65536;m++)a=1,r=(h+t)%65536,i[m]=Math.cos(958738e-10*r),h=a,t=r;return i}var B=class extends AudioWorkletProcessor{r;u;g;constructor(){super(),this.r=!0;let{compute:l,update:a}=pt(sampleRate);this.u=a,this.g=l,this.port.onmessage=h=>{switch(h.data.type){case"DISPOSE":this.r=!1;break}}}process(l,a,h){if(l[0].length===0)return this.r;this.u(h.delay[0],h.rate[0],h.depth[0],h.deviation[0]);let r=l[0][0],t=a[0][0],m=a[0][1];return this.g(r,t,m),this.r}static get parameterDescriptors(){return[["delay",.5,0,1],["rate",.5,0,1],["depth",.5,0,1],["deviation",.5,0,1]].map(([l,a,h,r])=>({name:l,defaultValue:a,minValue:h,maxValue:r,automationRate:"k-rate"}))}};registerProcessor("ChorusProcessor",B);})();',function(e){let t="__CHORUS__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([b],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),es=(v='"use strict";(()=>{function P(r){let e=S(),o=S(),t=S(),s=S(),a=.5,c=.83,b=7,d=k(r,1,a,b),g=k(r,0,a,b),u=k(r,0,c,b),m=k(r,1,c,b),i=!0,h=!0;return{update(p,y,n,f){i=p===1,h=y===1,n!==a&&(a=n,d.setLfoRate(n),g.setLfoRate(n)),f!==c&&(c=f,u.setLfoRate(f),m.setLfoRate(f))},process(p,y){let n=p[0],f=p.length>1?p[1]:n;for(let l=0;l=1&&(d=-1),c<=-1&&(d=1),c+=d*b,c}return{setLfoRate(n){b=4*n/r},process(n){n=n*.2;let f=(.3*y()+.4)*g,l=i-Math.floor(f);l<0&&(l+=u);let L=l-1;L<0&&(L+=u);let R=f-Math.floor(f);return h=m[L]+m[l]*(1-R)-(1-R)*s,s=h,h=p.tick(h),m[i]=n,i++,i>=u&&(i=0),h}}}var C=class extends AudioWorkletProcessor{r;p;constructor(){super(),this.r=!0,this.p=P(sampleRate),this.port.onmessage=e=>{switch(e.data.type){case"DISPOSE":this.r=!1;break}}}process(e,o,t){if(!(e.length<1||o.length<1))if(t.bypass[0]===1){let s=e[0].length===1;o[0][1].set(e[0][0]),o[0][0].set(e[0][s?0:1])}else this.p.update(t.enable1[0],t.enable2[0],t.lfoRate1[0],t.lfoRate2[0]),this.p.process(e[0],o[0]);return this.r}static get parameterDescriptors(){return[["bypass",0,0,1],["enable1",1,0,1],["enable2",1,0,1],["lfoRate1",.5,0,1],["lfoRate2",.83,0,1]].map(([e,o,t,s])=>({name:e,defaultValue:o,minValue:t,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("ChorusTWorkletProcessor",C);})();',function(e){let t="__CHORUS-T__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([v],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ei=(y={processorName:"ChorusTWorkletProcessor",paramNames:["bypass","enable1","enable2","lfoRate1","lfoRate2"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1}),postCreate(e){e.setBypass=t=>{e.bypass.value=t?1:0}}},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,y.processorName,y.workletOptions(a));n.__PROCESSOR_NAME__=y.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,y.paramNames,a);return null===(t=y.postCreate)||void 0===t||t.call(y,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),el=((x=el||{})[x.Bypass=0]="Bypass",x[x.Tanh=1]="Tanh",x),eu=(N='"use strict";(()=>{function i(e){switch(e){case 1:return f;case 0:default:return h}}var h=e=>e,f=Math.tanh;var p=class extends AudioWorkletProcessor{r;g;t;fn;constructor(){super(),this.r=!0,this.g=!1,this.t=0,this.fn=i(0),this.port.onmessage=s=>{switch(s.data.type){case"DISPOSE":this.r=!1;break}}}process(s,n,t){this.t!==t.type[0]&&(this.t=t.type[0],this.fn=i(this.t));let o=t.preGain[0],c=t.postGain[0],a=s[0][0],u=n[0][0];if(a&&u)for(let r=0;r({name:s,defaultValue:n,minValue:t,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("ClipAmpProcessor",p);})();',function(e){let t="__CLIP_AMP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([N],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ec=(M={processorName:"ClipAmpProcessor",paramNames:["type","preGain","postGain"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,M.processorName,M.workletOptions(a));n.__PROCESSOR_NAME__=M.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,M.paramNames,a);return null===(t=M.postCreate)||void 0===t||t.call(M,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ep=(k={processorName:"ClockWorkletProcessor",paramNames:["bpm"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,k.processorName,k.workletOptions(a));n.__PROCESSOR_NAME__=k.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,k.paramNames,a);return null===(t=k.postCreate)||void 0===t||t.call(k,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ed=(w='"use strict";(()=>{var i=class extends AudioWorkletProcessor{r;bpm;i;p;constructor(){super(),this.r=!0,this.bpm=120,this.i=this.bpm/60/sampleRate,this.p=0,this.port.onmessage=s=>{switch(s.data.type){case"DISPOSE":this.r=!1;break}}}process(s,e,r){r.bpm[0]!==this.bpm&&(this.bpm=r.bpm[0],this.i=this.bpm/60/sampleRate);let t=this.p+e[0][0].length*this.i;t>1&&(t-=1);let a=t({name:s,defaultValue:e,minValue:r,maxValue:t,automationRate:"k-rate"}))}};registerProcessor("ClockWorkletProcessor",i);})();',function(e){let t="__CLOCK__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([w],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ef=(j='"use strict";(()=>{function V0(z){let t=44.1/z,f=1-t,l=-6,w=0,s=.7,B=.625,G=.625,H=.7,J=.625,K=.625,L=.625,e=0,p=[0,0],V=[0,0],m=[0,0],o=[0,0,0],r=[0,0],N=new Array(256).fill(0),A=[0,0],Q=new Array(128).fill(0),T=[0,0],c=[0,0],X=new Array(512).fill(0),h=[0,0],Y=new Array(512).fill(0),R=[0,0],n=[0,0],u=[0,0],i=[0,0],Z=new Array(1024).fill(0),b=[0,0],_=new Array(8192).fill(0),D=[0,0],a=[0,0],$=new Array(4096).fill(0),S=[0,0],e0=new Array(4096).fill(0),F=[0,0],t0=new Array(1024).fill(0),g=[0,0],l0=new Array(8192).fill(0),C=[0,0],f0=new Array(2048).fill(0),k=[0,0],r0=new Array(2048).fill(0),x=[0,0];function A0(y,O,P,U,W,v,I,j,E){l=y,w=O,s=P,B=U,G=W,H=v,J=I,K=j,L=E}function T0(y,O,P){let U=y[0],W=y.length===1?y[0]:y[1],v=O[0],I=O[1],j=t*Math.pow(10,.05*l),E=t*w,h0=t*s,b0=t*B,D0=t*G,S0=t*H,F0=t*J,g0=t*K,C0=t*L;for(let d=0;d{switch(l.data.type){case"DISPOSE":this.r=!1;break}}}process(t,f,l){this.u(l.filter[0],l.inputDiffusion1[0],l.inputDiffusion2[0],l.decayDiffusion1[0],l.decayDiffusion2[0],l.decay[0],l.damping[0],l.dryWet[0],l.level[0]);let w=t[0],s=f[0];return w.length===0||s.length===0?this.r:(this.c(w,s,s[0].length),this.r)}static get parameterDescriptors(){return[["filter",.7,0,1],["inputDiffusion1",.75,0,1],["inputDiffusion2",.625,0,1],["decayDiffusion1",.7,0,.999999],["decayDiffusion2",.5,0,.999999],["decay",.5,0,1],["damping",.25,0,1],["dryWet",1,-1,1],["level",0,0,1]].map(t=>new Object({name:t[0],defaultValue:t[1],minValue:t[2],maxValue:t[3],automationRate:"k-rate"}))}};registerProcessor("DattorroReverbProcessor",q);})();',function(e){let t="__DATTORRO_REVERB__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([j],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),em=(O={processorName:"DattorroReverbProcessor",paramNames:["filter","inputDiffusion1","inputDiffusion2","decayDiffusion1","decayDiffusion2","decay","damping"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,O.processorName,O.workletOptions(a));n.__PROCESSOR_NAME__=O.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,O.paramNames,a);return null===(t=O.postCreate)||void 0===t||t.call(O,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eh=(A='"use strict";(()=>{var l=class extends AudioWorkletProcessor{r;g;u;constructor(){super(),this.r=!0;let[e,t]=m();this.g=e,this.u=t,this.port.onmessage=r=>{switch(r.data.type){case"DISPOSE":this.r=!1;break}}}process(e,t,r){return this.u(r.steps[0],r.beats[0],r.rotation[0]),this.g(t[0][0],r.clock[0],r.subdivision[0]),this.r}static get parameterDescriptors(){return[["clock",0,0,1],["steps",0,0,100],["beats",0,0,100],["subdivision",1,1,20],["rotation",0,0,100]].map(([e,t,r,o])=>({name:e,defaultValue:t,minValue:r,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("EuclidProcessor",l);function m(){let n=1,e=1,t=0,r=[1],o=0,u=0;function b(i,s,c){let a=s*c;for(;a>1;)a-=1;let d=a({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,P.processorName,P.workletOptions(a));n.__PROCESSOR_NAME__=P.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,P.paramNames,a);return null===(t=P.postCreate)||void 0===t||t.call(P,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eb=(S='"use strict";(()=>{var s=class extends AudioWorkletProcessor{r;g;constructor(){super(),this.r=!0,this.g=!1,this.port.onmessage=r=>{switch(r.data.type){case"DISPOSE":this.r=!1;break}}}process(r,e,t){return e[0][0].fill(0),t.trigger[0]===1?this.g||(this.g=!0,e[0][0][0]=1):this.g=!1,this.r}static get parameterDescriptors(){return[["trigger",0,0,1]].map(([r,e,t,a])=>({name:r,defaultValue:e,minValue:t,maxValue:a,automationRate:"k-rate"}))}};registerProcessor("ImpulseProcessor",s);})();',function(e){let t="__IMPULSE__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([S],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ev=(_={processorName:"ImpulseProcessor",paramNames:["trigger"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,_.processorName,_.workletOptions(a));n.__PROCESSOR_NAME__=_.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,_.paramNames,a);return null===(t=_.postCreate)||void 0===t||t.call(_,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ey=((R=ey||{})[R.None=0]="None",R[R.Sine=1]="Sine",R[R.Triangle=2]="Triangle",R[R.RampUp=3]="RampUp",R[R.RampDown=4]="RampDown",R[R.Square=5]="Square",R[R.ExpRampUp=6]="ExpRampUp",R[R.ExpRampDown=7]="ExpRampDown",R[R.ExpTriangle=8]="ExpTriangle",R[R.RandSampleHold=9]="RandSampleHold",R[R.Impulse=10]="Impulse",R);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5/12,t=Math.pow(10,-1/e)}(),a=!0,(e,t)=>{let r=a?1:0;return a=t2*Math.random()-1;n=ex(),(e,t)=>{let r=n;return t{function c(e){return 2*e-1}function v(e=5/12){let n=Math.pow(10,-1/e),t=e*Math.log10(1+n),r=1/(-e*Math.log10(n)+t);return s=>{if(s>=1)return 1;if(s<=0)return 0;let l=-e*r*Math.log10(1-s+n)+t;return Math.max(0,Math.min(1,l))}}function A(){let e=M();return(n,t)=>{let r=e;return t{let r=e?1:0;return e=t0,q=S(),w=e=>Math.sin(e*2*Math.PI),D=e=>1-2*Math.abs(c(e)),E=e=>c(e),F=e=>-c(e),I=e=>e<=.5?1:-1,M=()=>c(Math.random()),U=e=>c(d(e)),$=e=>c(d(1-e)),H=e=>c(d(Math.abs(c(e)))),k=A();function R(e,n){let t=1/e,r=[b,w,D,E,F,I,U,$,H,k,q],s=1,l=10,m=1,h=0,p=r[1]??b,u=0;function x(a){a.type[0]!==s&&(s=a.type[0],p=r[Math.floor(s)]??b),l=a.frequency[0],h=a.offset[0],m=a.gain[0]}function P(a,g){x(g);let o=u+a.length*t*l;o>=1&&(o-=1);let i=p(u,o)*m+h;a.fill(i),u=o}function f(a,g){x(g);for(let o=0;o=1&&(i-=1),a[o]=p(u,i)*m+h,u=i}}return n?f:P}var G=class extends AudioWorkletProcessor{r;g;constructor(n){super(),this.g=R(sampleRate,!1),this.r=!0,this.port.onmessage=t=>{switch(t.data.type){case"DISPOSE":this.r=!1;break}}}process(n,t,r){return this.g(t[0][0],r),this.r}static get parameterDescriptors(){return[["type",1,0,100],["frequency",10,0,200],["gain",1,0,1e4],["offset",0,-1e3,1e3]].map(([n,t,r,s])=>({name:n,defaultValue:t,minValue:r,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("LfoProcessor",G);})();',function(e){let t="__LFO__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([C],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eM=(D={processorName:"LfoProcessor",paramNames:["type","frequency","gain","offset"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,D.processorName,D.workletOptions(a));n.__PROCESSOR_NAME__=D.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,D.paramNames,a);return null===(t=D.postCreate)||void 0===t||t.call(D,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ek=((E=ek||{})[E.White=0]="White",E[E.Pink=1]="Pink",E),ew=(W='"use strict";(()=>{function g(o,t){switch(t){case 0:return b;case 1:return w();case 2:return k(o);default:return console.warn("Unknown noise type: "+t),b}}function b(o){for(let t=0;tMath.pow(10,h/20),u=h=>20*Math.log10(h),l=0,r=0,f=0,m=o/(2*Math.PI)-1;for(;m>1;)t[l]=2*Math.PI*m/o,m=m/4,l++;for(c=l;l-- >0;)n[l]=a(r),f+=a(r),r-=6;return i=a(-u(f)),h=>{for(let p=0;p{for(let a=0;a{switch(t.data.type){case"DISPOSE":this.r=!1;break}}}process(t,n,e){return this.t!==e.type[0]&&(this.t=e.type[0],this.d=g(sampleRate,e.type[0])),this.d(n[0][0]),this.r}static get parameterDescriptors(){return[["type",0,0,100]].map(([t,n,e,i])=>({name:t,defaultValue:n,minValue:e,maxValue:i,automationRate:"k-rate"}))}};registerProcessor("NoiseWorkletProcessor",d);})();',function(e){let t="__NOISE__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([W],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ej=(I={processorName:"NoiseWorkletProcessor",paramNames:["type"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,I.processorName,I.workletOptions(a));n.__PROCESSOR_NAME__=I.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,I.paramNames,a);return null===(t=I.postCreate)||void 0===t||t.call(I,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eO=((V=eO||{})[V.Bypass=0]="Bypass",V[V.DbToGain=1]="DbToGain",V[V.GainToDb=2]="GainToDb",V[V.Linear=3]="Linear",V),eA=(F='"use strict";(()=>{function o(t){switch(t){case 0:return u;case 1:return a;case 2:return b;case 3:return h;default:return u}}function u(t){return t}function a(t){return Math.pow(10,t/20)}function b(t){return 20*Math.log10(t)}function h(t,n,r){return n+t*(r-n)}var i=class extends AudioWorkletProcessor{r;s;c;constructor(){super(),this.r=!0,this.s=0,this.c=o(this.s),this.port.onmessage=n=>{switch(n.data.type){case"DISPOSE":this.r=!1;break}}}process(n,r,e){this.s!==e.scale[0]&&(this.s=e.scale[0],this.c=o(this.s));let s=e.input[0]+e.mod[0],c=this.c(s,e.min[0],e.max[0])*e.gain[0]+e.offset[0];return r[0][0].fill(c),this.r}static get parameterDescriptors(){return[["scale",0,0,10],["input",0,-2e4,2e4],["offset",0,-2e4,2e4],["min",0,-2e4,2e4],["max",1,-2e4,2e4],["gain",1,-2e4,2e4],["mod",0,-2e4,2e4]].map(([n,r,e,s])=>({name:n,defaultValue:r,minValue:e,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("ParamProcessor",i);})();',function(e){let t="__PARAM__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([F],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eP=(q={processorName:"ParamProcessor",paramNames:["scale","input","offset","min","max","gain","mod"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,q.processorName,q.workletOptions(a));n.__PROCESSOR_NAME__=q.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,q.paramNames,a);return null===(t=q.postCreate)||void 0===t||t.call(q,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eS=Object.assign(eP,{input:(e,t)=>eP(e,{input:t}),db:(e,t)=>eP(e,{scale:1,input:t}),inv:(e,t)=>eP(e,{input:t,gain:-1})}),e_=((L=e_||{})[L.Sawtooth=0]="Sawtooth",L[L.Square=1]="Square",L[L.Triangle=2]="Triangle",L),eR=(U='"use strict";(()=>{function q(f){let u=1/f,s=0,o=440,t=0,a=o*u,m=0,x=Math.exp(-1/(.0025*f)),b=0,c=0,l=[y,d,S],p=l[0],A=0;return function(e,r,F,g){if(s!==r&&(s=r,p=l[s]??l[0]),o!==F||g!==A){o=F,A=g;let D=Math.pow(2,g/1200);a=o*D*u}p(e)};function y(n){for(let e=0;e1&&(t-=1)}function d(n){for(let e=0;e1&&(t-=1)}function S(n){for(let e=0;e1&&(t-=1)}}function i(n,e){if(n1-e){let r=(n-1)/e;return r+r+r*r+1}else return 0}}var h=class extends AudioWorkletProcessor{r;g;constructor(){super(),this.r=!0,this.g=q(sampleRate),this.port.onmessage=u=>{switch(u.data.type){case"DISPOSE":this.r=!1;break}}}process(u,s,o){let t=s[0][0];return this.g(t,o.type[0],o.frequency[0],o.detune[0]),this.r}static get parameterDescriptors(){return[["type",0,0,2],["frequency",440,0,2e4],["detune",0,0,1e4]].map(([u,s,o,t])=>({name:u,defaultValue:s,minValue:o,maxValue:t,automationRate:"k-rate"}))}};registerProcessor("PolyBLEProcessor",h);})();',function(e){let t="__POLY_BLEP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([U],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eC=(T={processorName:"PolyBLEProcessor",paramNames:["type","frequency","detune"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,T.processorName,T.workletOptions(a));n.__PROCESSOR_NAME__=T.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,T.paramNames,a);return null===(t=T.postCreate)||void 0===t||t.call(T,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eD=((B=eD||{})[B.ByPass=0]="ByPass",B[B.LowPass=1]="LowPass",B[B.BandPass=2]="BandPass",B[B.HighPass=3]="HighPass",B[B.Notch=4]="Notch",B[B.Peak=5]="Peak",B[B.AllPass=6]="AllPass",B),eE=(Z='"use strict";(()=>{function M(p){let a=1/p,n=0,e=0,l=0,t=0,s=0,o=0,m=0,P=0,k=0,_=0,g=0,A=-1,d=0,x=0;function w(b,c,h){if(c===d&&A===b&&h===x)return;A=b,d=c,x=h;let i=Math.tan(c*a*Math.PI),r=1/Math.max(h,1e-4);switch(n=1/(1+i*(i+r)),e=i*n,l=i*e,b){case 1:t=0,s=0,o=1;break;case 2:t=0,s=1,o=0;break;case 3:t=1,s=-r,o=-1;break;case 4:t=1,s=-r,o=0;break;case 5:t=1,s=-r,o=-2;break;case 6:t=1,s=-2*r,o=0;default:t=1,s=0,o=0;break}}return function(c,h,i,r,R){w(i,r[0],R);let Q=r.length===c.length;for(let u=0;u{switch(a.data.type){case"STOP":this.r=!1;break}}}process(a,n,e){if(a[0].length===0)return this.r;let l=a[0][0],t=n[0][0];return this.p(l,t,e.type[0],e.frequency,e.Q[0]),this.r}static get parameterDescriptors(){return[["type",1,0,10,"k"],["frequency",1e3,20,2e4,"a"],["Q",.5,.025,40,"k"]].map(([a,n,e,l,t])=>({name:a,defaultValue:n,minValue:e,maxValue:l,automationRate:t+"-rate"}))}};registerProcessor("SvfProcessor",F);})();',function(e){let t="__SVF__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([Z],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eW=(H={processorName:"SvfProcessor",paramNames:["type","frequency","Q"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,H.processorName,H.workletOptions(a));n.__PROCESSOR_NAME__=H.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,H.paramNames,a);return null===(t=H.postCreate)||void 0===t||t.call(H,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eI=r(9802),eV=r(8336),eF=r(3793),eq=r(8672),eL=r(6117),eU=(o=new WeakMap,s=new WeakMap,i=new WeakMap,l=new WeakSet,u=class{static async fetchAvailableNames(){let e=await fetch("https://smpldsnds.github.io/wavedit-online/samples/files.json");if(!e.ok)throw Error("Failed to load wavetable list.");return await e.json()}onLoad(){return(0,eI._)(this,i)}getData(){return(0,eI._)(this,s)}static decodeWavetable(e){let t=new DataView(e),r=t.getUint16(20,!0),a=t.getUint32(24,!0),n=t.getUint16(22,!0),o=t.getUint16(34,!0),s=t.getUint32(40,!0);if(1!==r)throw Error("Invalid format. Only PCM supported.");if(1!==n)throw Error("Invalid format. Only mono supported.");let i=32===o,l=o/8,u=s/(l*n),c=new Float32Array(u);for(let e=0;e{function F(l){let e=220,r=440,a=.005,o=new Float32Array(0),n=0,i=0,s=0,u=0,c=0,b=2,q=W(l),d=P();function A(t){(t.frequency[0]!==r||t.baseFrequency[0]!==e)&&(e=t.baseFrequency[0],r=t.frequency[0],b=r/e),a=t.morphFrequency[0]}function V(t,m){o=t,n=Math.min(m,t.length),i=Math.floor(t.length/n),s=0,u=(s+1)%i}function x(t,m){if(n===0||i===0){t.fill(0);return}A(m);for(let f=0;f=n&&(c-=n),c<0&&(c+=n),d(h)&&(s=u,u=(u+1)%i)}}return{agen:x,set:V}}function g(l,e,r,a){let o=Math.floor(a),n=a-o,i=(o+1)%e,s=l[r*e+o],u=l[r*e+i];return s+(u-s)*n}function W(l){let e=1/l,r=0;return a=>{for(r+=a*e;r>=1;)r-=1;for(;r<0;)r+=1;return r}}function P(){let l=0,e=!1;return function(a){let n=Math.abs(a-l)>.5;return l=a,a===0||e===!0?(e=!1,!1):(e=n,n)}}var y=class extends AudioWorkletProcessor{static parameterDescriptors=[{name:"baseFrequency",defaultValue:220,minValue:0,maxValue:2e4,automationRate:"k-rate"},{name:"frequency",defaultValue:440,minValue:0,maxValue:2e4,automationRate:"k-rate"},{name:"morphFrequency",defaultValue:.05,minValue:0,maxValue:10,automationRate:"k-rate"}];u;r;constructor(){super(),this.u=F(sampleRate),this.r=!0,this.port.onmessage=e=>{switch(e.data.type){case"WAVETABLE":this.u.set(e.data.wavetable,e.data.length);break;case"DISPOSE":this.r=!1;break}}}process(e,r,a){return this.u.agen(r[0][0],a),this.r}};registerProcessor("WavetableOscillatorWorkletProcessor",y);})();',function(e){let t="__WT__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([G],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eB=(Y={processorName:"WavetableOscillatorWorkletProcessor",paramNames:["baseFrequency","frequency","morphFrequency"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1}),postCreate(e){e.setWavetable=t=>{e.port.postMessage({type:"WAVETABLE",wavetable:t.data,length:t.length})},e.fetchWavetableNames=eZ,e.loadWavetable=t=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256;return new eU(e.startsWith("http")?e:"https://smpldsnds.github.io/wavedit-online/samples/".concat(e.toUpperCase(),".WAV"),t).onLoad()})(t).then(t=>{e.setWavetable(t)})}},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,Y.processorName,Y.workletOptions(a));n.__PROCESSOR_NAME__=Y.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,Y.paramNames,a);return null===(t=Y.postCreate)||void 0===t||t.call(Y,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});function eZ(){return eU.fetchAvailableNames()}async function eH(){let e=await fetch(this.url);if(!e.ok)throw Error("Failed to load ".concat(this.url));let t=await e.arrayBuffer(),r=u.decodeWavetable(t);return(0,eF._)(this,o,r.sampleRate),(0,eF._)(this,s,r.data),{data:(0,eI._)(this,s),length:this.wavetableLength,sampleRate:(0,eI._)(this,o)}}function eG(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}function eY(e,t){let r=!1;return Object.assign(e,{dispose(){var a,n;if(!r&&(r=!0,e.disconnect(),null===(a=e.port)||void 0===a||a.postMessage({type:"DISPOSE"}),t))for(;t.length;){let e=t.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(n=e.dispose)||void 0===n||n.call(e):e.disconnect():"function"==typeof e&&e()}}})}function eK(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new GainNode(e),a=eG(r,["gain"],t);return eY(r,a)}var ez=Object.assign(eK,{val:(e,t)=>eK(e,{gain:t})});function eX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new OscillatorNode(e,{type:t.type});r.start();let a=eG(r,["frequency","detune"],t);return eY(r,a)}function eQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new BiquadFilterNode(e,{type:t.type}),a=eG(r,["frequency","detune","Q","gain"],t);return eY(r,a)}function e$(e){return eY(e.reduce((e,t)=>(e.connect(t),t)),e)}function eJ(e){return e.__synthlet||(e.__synthlet=function(e){let t=t=>r=>t(e,r),r=t(ez),a=t(eX),n=t(eQ),o=t(z),s=t(ee),i=t(J),l=t(ei),u=t(ep),c=t(eg),p=t(ev),d=t(eM),f=t(ej),m=t(eC),h=t(eW),g=t(eS),b=t(eB),v=t(ec),y={param:Object.assign((e,t)=>g({input:e,...t}),{db:(e,t)=>g({scale:eO.DbToGain,input:e,...t}),lin:(e,t,r,a)=>g({scale:eO.Linear,input:r,min:e,max:t,...a}),add:(e,t,r)=>g({scale:eO.Bypass,input:t,offset:e,...r}),mul:(e,t,r)=>g({scale:eO.Bypass,input:t,gain:e,...r})}),conn:function(e){let t=(e,t)=>e.connect(t),r=e=>e1(e.reduce((e,t)=>(e.connect(t),t)),e),a=(e,t)=>(e.forEach(e=>e.connect(t)),e1(t,e));return Object.assign(function(e,n){for(var o=arguments.length,s=Array(o>2?o-2:0),i=2;i0?r([l,...s]):l},{pair:t,chain:r,mixInto:a,serial:function(){for(var e=arguments.length,t=Array(e),a=0;ar({gain:e}),{adsr:(e,t)=>s({gate:e,...t}),perc:(e,t,a,n)=>r({gain:o({trigger:e,attack:t,decay:a,...n})})}),clock:Object.assign(u,{}),clip:Object.assign(v,{soft:(e,t)=>v({type:el.Tanh,preGain:e,postGain:t})}),chorusT:Object.assign(l,{}),euclid:Object.assign(c,{}),impulse:Object.assign(p,{trigger:e=>p({trigger:e})}),lfo:Object.assign(d,{sin:(e,t)=>d({type:ey.Sine,frequency:e,...t}),tri:(e,t)=>d({type:ey.Triangle,frequency:e,...t}),rampUp:(e,t)=>d({type:ey.RampUp,frequency:e,...t}),rampDown:(e,t)=>d({type:ey.RampDown,frequency:e,...t}),square:(e,t)=>d({type:ey.Square,frequency:e,...t}),expRampUp:(e,t)=>d({type:ey.ExpRampUp,frequency:e,...t}),expRampDown:(e,t)=>d({type:ey.ExpRampDown,frequency:e,...t}),expTriangle:(e,t)=>d({type:ey.ExpTriangle,frequency:e,...t}),sh:(e,t)=>d({type:ey.RandSampleHold,frequency:e,...t}),impulse:(e,t)=>d({type:ey.Impulse,frequency:e,...t})}),noise:Object.assign(f,{white:()=>f({type:ek.White}),pink:()=>f({type:ek.Pink})}),polyblep:Object.assign(m,{}),svf:Object.assign(h,{lp:(e,t)=>h({type:eD.LowPass,frequency:e,...t}),hp:(e,t)=>h({type:eD.HighPass,frequency:e,...t}),bp:(e,t)=>h({type:eD.BandPass,frequency:e,...t})}),env:Object.assign(i,{adsr:(e,t)=>i({gate:e,...t}),ad:(e,t)=>o({trigger:e,...t})}),bqf:Object.assign(n,{lp:(e,t)=>n({type:"lowpass",frequency:e,...t}),hi:(e,t)=>n({type:"highpass",frequency:e,...t}),bandpass:(e,t)=>n({type:"bandpass",frequency:e,...t}),allpass:(e,t)=>n({type:"allpass",frequency:e,...t}),highshelf:(e,t)=>n({type:"highshelf",frequency:e,...t}),lowshelf:(e,t)=>n({type:"lowshelf",frequency:e,...t}),peak:(e,t)=>n({type:"peaking",frequency:e,...t}),notch:(e,t)=>n({type:"notch",frequency:e,...t})}),gain:e=>r({gain:e}),osc:Object.assign(a,{sin:(e,t)=>a({type:"sine",frequency:e,...t}),saw:(e,t)=>a({type:"sawtooth",frequency:e,...t}),square:(e,t)=>a({type:"square",frequency:e,...t}),tri:(e,t)=>a({type:"triangle",frequency:e,...t})}),wt:Object.assign(b,{}),withParams:e0,synth:e=>Object.assign(e0(e.out,e.params),e.modules),op:t=>r=>t(e,r)};return Object.assign(y,{use:t=>{let r={};for(let a in t)r[a]=r=>t[a](e,r);return Object.assign(y,r)}})}(e)),e.__synthlet}function e0(e,t){return Object.assign(eY(e,Object.values(t)),function(e){let t={};if(e)for(let r in e)t[r]=e[r].input;return t}(t))}function e1(e,t){let r=e.dispose,a=!1;return e.dispose=()=>{a||(a=!0,r(),t.forEach(e=>{"dispose"in e&&e.dispose()}))},e}var e2=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(20,100,a.tone),o=r.conn.serial(r.conn.mix(r.osc.sin(r.env.ad(a.trigger,{attack:.1,decay:a.decay,offset:n,gain:50})),r.impulse.trigger(a.trigger)),r.amp.perc(a.trigger,.01,a.decay),r.clip.soft(5,.6));return r.withParams(o,a)},e4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.conn.mixInto([r.osc.sin(100),r.osc.sin(200)],r.amp.perc(a.trigger,.01,a.decay)),o=r.conn.serial(r.noise.white(),r.amp.perc(a.trigger,.01,a.decay)),s=r.conn.mixInto([n,o],r.gain(a.volume));return r.withParams(s,a)},e5=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(2400,2500,a.tone),o=r.param.lin(1e3,3e3,a.tone);return r.withParams(r.conn.serial(r.osc.tri(n),r.amp.perc(a.trigger,.01,a.decay),r.bqf.bandpass(o),r.amp(a.volume)),a)},e7=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(8e3,12e3,a.tone),o=r.param.add(-2e3,n),s=r.conn([263,400,421,474,587,845].map(e=>r.osc.square(e)),r.amp(.3));return r.withParams(r.conn(s,r.bqf.bandpass(n),r.bqf.hi(o),r.amp.perc(a.trigger,.01,a.decay),r.gain(a.volume)),a)},e6=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),{trigger:a,decay:n,volume:o,tone:s}=tr(r,t),i=r.param.lin(700,900,s),l=r.param.lin(440,540,s),u=r.param.mul(.1,n),c=r.conn([r.conn.serial(r.osc.square(i),r.amp.perc(a,.001,n)),r.conn.serial(r.osc.square(l),r.amp.perc(a,.001,u))],r.amp(o));return r.withParams(c,{trigger:a,volume:o,tone:s,decay:n})},e9=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),{trigger:a,decay:n,volume:o,tone:s}=tr(r,t),i=r.param.lin(440,540,s),l=r.param.lin(600,1700,s),u=r.param.lin(2e3,5e3,s),c=r.param.mul(.5,n),p=r.param.mul(.2,n),d=r.param.mul(5,n),f=r.conn([263,400,421,474,587,845].map(e=>r.osc.square(e)),r.amp(.3)),m=r.conn([r.conn(f,r.bqf.lp(i),r.amp.perc(a,.001,c)),r.conn(f,r.bqf.bandpass(l),r.amp.perc(a,.001,p)),r.conn(f,r.bqf.hi(u),r.amp.perc(a,.001,d))],r.amp(o));return r.withParams(m,{trigger:a,volume:o,tone:s,decay:n})},e3=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(4e3,6e3,a.tone),o=r.conn(r.noise.white(),r.bqf.hi(n),r.amp.perc(a.trigger,.02,a.decay),r.amp(a.volume));return r.withParams(o,a)},e8=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(500,1500,a.tone),o=r.conn([r.conn(r.noise.white(),r.bqf.bandpass(n),r.amp.perc(a.trigger,.02,a.decay),r.gain(r.lfo.rampUp(100))),r.impulse.trigger(a.trigger)],r.clip.soft(2,.5),r.gain(a.volume));return r.withParams(o,a)},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(125,240,a.tone),o=r.conn([r.conn(r.osc.sin(n),r.amp.perc(a.trigger,.01,a.decay)),r.conn(r.impulse.trigger(a.trigger),r.gain(.3)),r.conn(r.noise.pink(),r.amp.perc(a.trigger,.01,a.decay))],r.amp(a.volume));return r.withParams(o,a)},tt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=eJ(e),a=tr(r,t),n=r.param.lin(220,455,a.tone),o=r.conn([r.conn(r.osc.sin(n),r.amp.perc(a.trigger,.001,a.decay)),r.conn(r.impulse.trigger(a.trigger),r.gain(.3))],r.amp(1));return r.withParams(o,a)};function tr(e){var t,r,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.param(n.trigger);return{trigger:o,decay:e.param(null!==(t=n.decay)&&void 0!==t?t:.5),volume:e.param.db(null!==(r=n.volume)&&void 0!==r?r:0),tone:e.param(null!==(a=n.tone)&&void 0!==a?a:.5)}}function ta(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=eJ(e),n=a.param(r.gate),o=a.param.db(null!==(t=r.volume)&&void 0!==t?t:0),s=a.polyblep({frequency:r.frequency,...r.osc}),i=a.lfo({type:ey.Sine,gain:0,frequency:10});i.connect(s.frequency);let l=a.env.adsr(n,{gain:3e3,offset:2e3}),u=a.svf({frequency:l}),c=a.amp.adsr(n,{...r.amp});return a.synth({out:a.conn.serial(s,u,c,a.amp(o)),params:{gate:n,volume:o},modules:{osc:s,filterEnv:l,filter:u,amp:c,vibrato:i}})}function tn(e){return Promise.all([K(e),$(e),ea(e),eo(e),es(e),eu(e),ed(e),ef(e),eh(e),eb(e),eR(e),eN(e),ew(e),eA(e),ew(e),eE(e),eT(e)]).then(()=>e)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/205-457e9c6d9d25f104.js b/_next/static/chunks/205-457e9c6d9d25f104.js new file mode 100644 index 0000000..aba3a7f --- /dev/null +++ b/_next/static/chunks/205-457e9c6d9d25f104.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[205],{7897:function(e,t,r){var a=r(7949),n=r(8098),o=r(2576),s=r(1471),i=r(9237);let l=e=>{let t=(0,n.KM)(e),r=t.param(),a=t.param(.01),o=t.param(.3);return t.withParams(t.conn.serial(t.osc.sin(440),t.amp.perc(r,a,o)),{trigger:r,attack:a,release:o})};function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[(0,a.jsx)(s.i,{label:"Attack",inputClassName:"col-span-2",param:e.attack}),(0,a.jsx)(s.i,{label:"Release",inputClassName:"col-span-2",max:5,param:e.release})]}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(o.yR,{trigger:e.trigger})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"AD",children:(0,a.jsx)(u,{})})},1978:function(e,t,r){var a=r(7949),n=r(8098),o=r(2576),s=r(9237);let i=e=>{let t=(0,n.KM)(e),r=t.param();return t.withParams(t.conn.serial(t.osc.sin(440),t.amp.adsr(r)),{gate:r})};function l(){let e=(0,s.Z)(i);return e?(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(o.Gp,{gate:e.gate})}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"ADSR",children:(0,a.jsx)(l,{})})},2954:function(e,t,r){var a=r(7949),n=r(6265),o=r(8098),s=r(2576),i=r(1471),l=r(9237);function u(e){let t=(0,o.SU)(e,{bpm:120}),r=(0,o.Ek)(e,{clock:t,beats:5,steps:16}),a=(0,o.km)(e,{trigger:r,type:o.Co.Random,scale:o.ji.Major,octaves:2}),n=(0,o.op)(e,{gate:r,frequency:a}),s=(0,o.U)(e,{decay:.9});return n.connect(s),Object.assign(s,{synth1:n,arp:a,clock:t,euclid:r})}function c(){let[e,t]=(0,n.useState)(o.Z9.White),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-col-4 gap-2",children:[(0,a.jsx)(i.i,{label:"Tempo",inputClassName:"col-span-2",min:60,max:180,units:"bpm",param:r.clock.bpm}),(0,a.jsx)(i.i,{label:"Beats",inputClassName:"col-span-2",min:1,max:16,step:1,param:r.euclid.beats})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Arpeggiator",children:(0,a.jsx)(c,{})})},1987:function(e,t,r){r.d(t,{AttackDecayExample:function(){return u}});var a=r(7949),n=r(1471),o=r(6265),s=r(8098),i=r(9237);let l=e=>{let t=(0,s.KM)(e),r=t.param(),a=t.param(),n=t.param();return t.synth({out:t.conn.serial(t.osc.sin(t.env.ad(r,{attack:n,decay:a,offset:440,gain:2e3})),t.amp(.2)),params:{trigger:r,attack:n,decay:a}})};function u(){let[e,t]=(0,o.useState)(!1);return e?(0,a.jsx)(c,{onClose:()=>t(!1)}):(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:()=>t(!0),children:"Open example"})}function c(e){let{onClose:t}=e,r=(0,i.Z)(l);return r?(0,a.jsxs)("div",{className:"bg-fd-card text-fd-foreground p-2 border rounded",children:[(0,a.jsx)("div",{className:"text-xl mb-4",children:"AttackDecay generator example"}),(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(n.i,{label:"Attack",labelClassName:"w-20 text-right mr-2",min:0,max:1,step:.001,param:r.attack})}),(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(n.i,{label:"Decay",labelClassName:"w-20 text-right mr-2",min:0,max:1,step:.001,param:r.decay})}),(0,a.jsx)("div",{className:"flex mb-4",children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{r.trigger.value=1},onMouseUp:()=>{r.trigger.value=0},children:"Trigger"})}),(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:t,children:"Close"})]}):null}},5778:function(e,t,r){r.d(t,{default:function(){return d}});var a,n=r(7949),o=r(8098);let s=(a={processorName:"ChorusProcessor",paramNames:["delay","rate","depth","deviation"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})},function(e){var t;let r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new AudioWorkletNode(e,a.processorName,a.workletOptions(n));o.__PROCESSOR_NAME__=a.processorName;let s=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(o,a.paramNames,n);return null===(t=a.postCreate)||void 0===t||t.call(a,o),r=!1,Object.assign(o,{dispose(){var e,t;if(!r&&(r=!0,o.disconnect(),null===(e=o.port)||void 0===e||e.postMessage({type:"DISPOSE"}),s))for(;s.length;){let e=s.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});var i=r(2576),l=r(1471),u=r(9237);function c(e){let t=(0,o.dO)(e,{input:.1}),r=(0,o.D_)(e,{frequency:440}),a=(0,o.wF)(e,{gate:t}),n=s(e,{});return r.connect(a).connect(n),Object.assign(n,{osc:r,amp:a,gate:t,chorus:n})}function p(){let e=(0,u.Z)(c);return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[(0,n.jsx)(l.i,{label:"Delay",inputClassName:"col-span-2",param:e.chorus.delay}),(0,n.jsx)(l.i,{label:"Rate",inputClassName:"col-span-2",param:e.chorus.rate}),(0,n.jsx)(l.i,{label:"Depth",inputClassName:"col-span-2",param:e.chorus.depth}),(0,n.jsx)(l.i,{label:"Deviation",inputClassName:"col-span-2",param:e.chorus.deviation})]}),(0,n.jsx)(i.Gp,{gate:e.gate.input})]}):null}var d=()=>(0,n.jsx)(i.Yt,{label:"Chorus",children:(0,n.jsx)(p,{})})},7028:function(e,t,r){var a=r(7949),n=r(8098),o=r(2576),s=r(1471),i=r(9237);function l(e){let t=(0,n.dO)(e,{input:60}),r=(0,n.SU)(e,{bpm:t});return Object.assign((0,n.m7)(e,{trigger:r}),{bpm:t.input})}function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-4 gap-4",children:(0,a.jsx)(s.i,{label:"Tempo",inputClassName:"col-span-2",min:1,max:1e3,units:"bpm",param:e.bpm})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(s.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,units:"dB",param:e.volume})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Clock",children:(0,a.jsx)(u,{})})},8682:function(e,t,r){var a=r(7949),n=r(8098),o=r(2576),s=r(1471),i=r(9237);function l(e){let t=(0,n.m7)(e),r=(0,n.U)(e);return r.connect(e.destination),t.connect(r),Object.assign(t,{reverb:r})}function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.UC,{label:"Input",paneClassName:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)(s.i,{label:"Filter",inputClassName:"col-span-2",param:e.reverb.filter}),(0,a.jsx)(s.i,{label:"Diffusion 1",inputClassName:"col-span-2",param:e.reverb.inputDiffusion1}),(0,a.jsx)(s.i,{label:"Diffusion 2",inputClassName:"col-span-2",param:e.reverb.inputDiffusion2})]}),(0,a.jsxs)(o.UC,{label:"Feedback",paneClassName:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)(s.i,{label:"Diffusion 1",inputClassName:"col-span-2",param:e.reverb.decayDiffusion1}),(0,a.jsx)(s.i,{label:"Diffusion 2",inputClassName:"col-span-2",param:e.reverb.decayDiffusion2}),(0,a.jsx)(s.i,{label:"Decay",inputClassName:"col-span-2",param:e.reverb.decay}),(0,a.jsx)(s.i,{label:"Damping",inputClassName:"col-span-2",param:e.reverb.damping})]}),(0,a.jsx)(o.yR,{className:"mt-4",trigger:e.trigger})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Dattorro Reverb",children:(0,a.jsx)(u,{})})},5011:function(e,t,r){var a=r(7949),n=r(1471),o=r(6265),s=r(8098),i=r(2576),l=r(9237);let u={KickDrum:s.nl,SnareDrum:s.vD,ClaveDrum:s.m7,HiHatDrum:s.VR,CowBellDrum:s.Dr,CymbalDrum:s.e2,MaracasDrum:s._K,HandclapDrum:s.NR,TomDrum:s.IL,CongaDrum:s.q1};class c{getNames(){return Object.keys(u)}getSynth(e){if(!this.synths.has(e)){console.log("CREATE SYNTH",e);let t=u[e];if(!t)throw Error("Unknown instrument: ".concat(e));let r=t(this.context);r.connect(this.output),this.synths.set(e,Object.assign(r,{name:e}))}return this.synths.get(e)}dispose(){for(let e of this.synths.values())e.dispose()}constructor(e){this.context=e,this.output=e.createGain(),this.synths=new Map,this.connect=this.output.connect.bind(this.output)}}function p(e){let{}=e,t=(0,l.Z)(e=>new c(e)),[r,s]=(0,o.useState)(null);return t?(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-2 mb-4",children:[(0,a.jsx)("div",{className:"col-span-4 font-bold border-b",children:r.name.slice(0,-4)}),(0,a.jsx)(n.i,{label:"Tone",inputClassName:"col-span-2",min:0,max:1,step:.01,param:r.tone}),(0,a.jsx)(n.i,{label:"Decay",inputClassName:"col-span-2",min:0,max:1,step:.01,param:r.decay}),(0,a.jsx)(n.i,{label:"Volume",inputClassName:"col-span-2",min:-60,max:0,step:1,units:"dB",param:r.volume})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:t.getNames().map(e=>(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onMouseDown:()=>{let r=t.getSynth(e);r.trigger.value=1,s(r)},onMouseUp:()=>{let r=t.getSynth(e);r.trigger.value=0,s(r)},children:e.slice(0,-4)},e))})]}):null}t.default=()=>(0,a.jsx)(i.Yt,{label:"Drums",children:(0,a.jsx)(p,{})})},4951:function(e,t,r){var a=r(7949),n=r(8098),o=r(2576),s=r(1471),i=r(9237);let l=e=>{let t=(0,n.KM)(e).use({clave:n.m7,kick:n.nl}),r=t.param(100),a=t.clock({bpm:r}),o=t.param.db(-12),s=t.clave({trigger:t.euclid({clock:a,steps:16,beats:7,subdivison:4,rotation:3}),volume:o}),i=t.kick({trigger:t.euclid({clock:a,steps:16,beats:5,subdivison:4}),volume:o});return t.withParams(t.conn([s,i],t.gain()),{bpm:r,volume:o})};function u(){let e=(0,i.Z)(l);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-4 gap-4",children:(0,a.jsx)(s.i,{label:"Tempo",inputClassName:"col-span-2",min:1,max:1e3,param:e.bpm,units:"bpm"})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(s.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,param:e.volume,units:"dB"})})]}):null}t.default=()=>(0,a.jsx)(o.Yt,{label:"Euclid",children:(0,a.jsx)(u,{})})},2152:function(e,t,r){r.d(t,{ImpulseExample:function(){return l}});var a=r(7949),n=r(8098),o=r(2576),s=r(9237);let i=e=>{let t=(0,n.KM)(e),r=t.param();return t.synth({out:t.impulse.trigger(r),params:{trigger:r}})};function l(){let e=(0,s.Z)(i);return e?(0,a.jsx)(o.Yt,{label:"Impulse",children:(0,a.jsx)("div",{className:"flex ",children:(0,a.jsx)(o.yR,{trigger:e.trigger})})}):null}},1604:function(e,t,r){r.d(t,{default:function(){return f}});var a,n=r(7949),o=r(6265),s=r(8098);let i=(a={processorName:"KsProcessor",paramNames:["trigger","frequency","decay"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new AudioWorkletNode(e,a.processorName,a.workletOptions(n));o.__PROCESSOR_NAME__=a.processorName;let s=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(o,a.paramNames,n);return null===(t=a.postCreate)||void 0===t||t.call(a,o),r=!1,Object.assign(o,{dispose(){var e,t;if(!r&&(r=!0,o.disconnect(),null===(e=o.port)||void 0===e||e.postMessage({type:"DISPOSE"}),s))for(;s.length;){let e=s.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});var l=r(2576),u=r(1471),c=r(9237);function p(e){let t=s.dO.input(e),r=s.dO.db(e,-24),a=i(e,{trigger:t});return Object.assign((0,s.No)([a,s.S9.val(e,r)]),{ks:a,volume:r.input,trigger:t.input})}function d(){let[e,t]=(0,o.useState)(s.Z9.White),r=(0,c.Z)(p);return r?(0,n.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,n.jsx)(u.i,{label:"Frequency",inputClassName:"col-span-2",min:100,max:2e3,param:r.ks.frequency}),(0,n.jsx)(u.i,{label:"Decay",inputClassName:"col-span-2",param:r.ks.decay,min:.01,max:1}),(0,n.jsx)("div",{className:"col-span-4",children:(0,n.jsx)(l.yR,{trigger:r.trigger})}),(0,n.jsx)(u.i,{label:"Volume",inputClassName:"col-span-2",min:-100,max:0,param:r.volume,units:"dB"})]}):null}var f=()=>(0,n.jsx)(l.Yt,{label:"Noise",children:(0,n.jsx)(d,{})})},8773:function(e,t,r){r.d(t,{default:function(){return c}});var a=r(7949),n=r(8098),o=r(1471);function s(e){let{adsr:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.i,{label:"Attack",inputClassName:"col-span-2",min:.1,max:10,step:.1,param:t.attack,units:"secs"}),(0,a.jsx)(o.i,{label:"Decay",inputClassName:"col-span-2",min:.1,max:10,step:.1,param:t.decay,units:"secs"}),(0,a.jsx)(o.i,{label:"Sustain",inputClassName:"col-span-2",min:.1,max:1,step:.01,param:t.sustain}),(0,a.jsx)(o.i,{label:"Release",inputClassName:"col-span-2",min:.1,max:100,step:.2,param:t.release,units:"secs"})]})}var i=r(2576),l=r(9237);function u(){let e=(0,l.Z)(e=>(0,n.op)(e));return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.UC,{label:"Oscillator",paneClassName:"grid grid-cols-4 gap-2",children:[(0,a.jsx)(o.i,{label:"Frequency",inputClassName:"col-span-2",min:20,max:3e3,param:e.osc.frequency}),(0,a.jsx)(o.i,{label:"Vibrato depth",inputClassName:"col-span-2",max:20,param:e.vibrato.gain}),(0,a.jsx)(o.i,{label:"Vibrato freq",inputClassName:"col-span-2",min:0,max:100,param:e.vibrato.frequency})]}),(0,a.jsx)(i.UC,{label:"Filter",paneClassName:"grid grid-cols-4 gap-2",children:(0,a.jsx)(s,{adsr:e.filterEnv})}),(0,a.jsx)(i.UC,{label:"Amplifier",paneClassName:"grid grid-cols-4 gap-2",children:(0,a.jsx)(s,{adsr:e.amp})}),(0,a.jsx)("div",{className:"flex mt-2",children:(0,a.jsx)(i.Gp,{gate:e.gate})}),(0,a.jsx)("div",{className:"grid grid-cols-4 mt-4 pt-2 border-t",children:(0,a.jsx)(o.i,{label:"Volume",inputClassName:"col-span-2",min:-48,max:0,units:"dB",param:e.volume})})]}):null}var c=()=>(0,a.jsx)(i.Yt,{label:"Mono Synth",children:(0,a.jsx)(u,{})})},4702:function(e,t,r){r.r(t);var a=r(7949),n=r(6265),o=r(8098),s=r(2576),i=r(1471),l=r(9237);function u(e){let t=o.dO.db(e,-24),r=(0,o.cy)(e,{type:o.Z9.White}),a=o.S9.val(e,t);return Object.assign((0,o.No)([r,a]),{noise:r,volume:t.input})}function c(){let[e,t]=(0,n.useState)(o.Z9.White),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{children:"Noise type:"}),(0,a.jsxs)("select",{value:e,onChange:e=>{let a=parseInt(e.target.value);t(a),r.noise.type.value=a},children:[(0,a.jsx)("option",{value:o.Z9.White,children:"White"}),(0,a.jsx)("option",{value:o.Z9.Pink,children:"Pink"})]}),(0,a.jsx)("div",{className:"col-span-2"}),(0,a.jsx)(i.i,{label:"Volume",inputClassName:"col-span-2",min:-100,max:0,param:r.volume,units:"dB"})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Noise",children:(0,a.jsx)(c,{})})},4901:function(e,t,r){r.d(t,{default:function(){return d}});var a=r(7949),n=r(8098),o=r(2576),s=r(6265);function i(e){let{name:t,valueNames:r,labelClassName:n,inputClassName:o,param:i,hint:l}=e,[u,c]=(0,s.useState)(i.value);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n,children:t}),(0,a.jsx)("select",{className:o,value:u,onChange:e=>{let t=parseInt(e.target.value);c(t),i.value=t},children:r.map((e,t)=>(0,a.jsx)("option",{value:t,children:e},e))}),(0,a.jsx)("div",{children:l})]})}var l=r(1471),u=r(9237);function c(e){let t=n.dO.db(e,-24),r=(0,n.F2)(e,{frequency:1,gain:0}),a=(0,n.Zm)(e,{frequency:440,detune:r}),o=(0,n.S9)(e,{gain:t});return Object.assign((0,n.No)([a,o]),{osc:a,lfo:r,amp:o,volume:t.input})}function p(){let e=(0,u.Z)(c);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)(i,{name:"Waveform",inputClassName:"col-span-2",param:e.osc.type,valueNames:["Saw","Square","Triangle"]}),(0,a.jsx)(l.i,{label:"Frequency",inputClassName:"col-span-2",min:20,max:3e3,units:"Hz",param:e.osc.frequency}),(0,a.jsx)(l.i,{label:"Modulation",inputClassName:"col-span-2",min:0,max:1e3,param:e.lfo.gain})]}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(l.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,param:e.volume,units:"dB"})})]}):null}var d=()=>(0,a.jsx)(o.Yt,{label:"Polyblep oscillator",children:(0,a.jsx)(p,{})})},2148:function(e,t,r){var a=r(7949),n=r(6265),o=r(8098),s=r(2576),i=r(1471),l=r(9237);let u=e=>{let t=(0,o.D_)(e,{type:"sawtooth",frequency:1e3}),r=(0,o.$N)(e,{type:o.zX.LowPass,frequency:1e3,Q:1}),a=(0,o.dO)(e,{scale:o.$q.DbToGain,input:-12}),n=(0,o.F2)(e,{frequency:2,type:o.Pf.RampUp,gain:0}),s=(0,o.S9)(e,{gain:a});return t.connect(r).connect(s),n.connect(r.frequency),Object.assign(s,{osc:t,filter:r,volume:a.input,lfo:n})};function c(){let[e,t]=(0,n.useState)(o.zX.LowPass),r=(0,l.Z)(u);return r?(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{children:"Filter type"}),(0,a.jsxs)("select",{className:"col-span-2",value:e,onChange:e=>{t(parseInt(e.target.value)),r.filter.type.value=parseInt(e.target.value)},children:[(0,a.jsx)("option",{value:o.zX.ByPass,children:"None"}),(0,a.jsx)("option",{value:o.zX.LowPass,children:"Low pass"}),(0,a.jsx)("option",{value:o.zX.HighPass,children:"High pass"}),(0,a.jsx)("option",{value:o.zX.BandPass,children:"Band pass"}),(0,a.jsx)("option",{value:o.zX.Notch,children:"Notch"}),(0,a.jsx)("option",{value:o.zX.Peak,children:"Peak"}),(0,a.jsx)("option",{value:o.zX.AllPass,children:"All pass"})]}),(0,a.jsx)("div",{}),(0,a.jsx)(i.i,{label:"Frequency",inputClassName:"col-span-2",param:r.filter.frequency,min:20,max:2e4}),(0,a.jsx)(i.i,{label:"Q",inputClassName:"col-span-2",param:r.filter.Q,min:0,max:40}),(0,a.jsx)(i.i,{label:"Modulation",inputClassName:"col-span-2",param:r.lfo.gain,min:0,max:1e3}),(0,a.jsx)(i.i,{label:"Volume",inputClassName:"col-span-2",param:r.volume,min:-60,max:0})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Svf",children:(0,a.jsx)(c,{})})},6683:function(e,t,r){var a=r(7949),n=r(6265),o=r(8098),s=r(2576),i=r(1471),l=r(9237);let u=()=>e=>{let t=(0,o.KM)(e),r=t.param(),a=t.param(440),n=t.param.db(-24),s=t.wt();return s.loadWavetable("ACCESS_V"),Object.assign(t.withParams(t.conn.serial(s,t.amp.adsr(r),t.amp(n)),{freq:a,volume:n,gate:r}),{osc:s})};function c(){let[e,t]=(0,n.useState)("ACCESS_V"),[r,c]=(0,n.useState)([]);(0,n.useEffect)(()=>{(0,o.Xi)().then(e=>{e.sort(),c(e)})},[]);let p=(0,l.Z)(u());return p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-4",children:[(0,a.jsx)("div",{className:"text-right",children:"Wavetable"}),(0,a.jsx)("select",{className:"col-span-2 bg-zinc-900 p-1 rounded border-zinc-300",value:e,onChange:e=>{t(e.target.value),p.osc.loadWavetable(e.target.value)},children:r.map(e=>(0,a.jsx)("option",{children:e},e))}),(0,a.jsx)("div",{}),(0,a.jsx)(i.i,{label:"Morph freq",labelClassName:"text-right",inputClassName:"col-span-2",min:0,max:10,step:.1,param:p.osc.morphFrequency})]}),(0,a.jsx)("div",{className:"flex mt-4",children:(0,a.jsx)(s.Gp,{gate:p.gate})}),(0,a.jsx)("div",{className:"flex px-1 pt-2 mt-2 border-t border-fd-border gap-4",children:(0,a.jsx)(i.i,{label:"Volume",inputClassName:"flex-grow",min:-36,max:0,units:"dB",param:p.volume})})]}):null}t.default=()=>(0,a.jsx)(s.Yt,{label:"Wavetable",children:(0,a.jsx)(c,{})})},2576:function(e,t,r){r.d(t,{Gp:function(){return l},UC:function(){return s},Yt:function(){return o},yR:function(){return i}});var a=r(7949),n=r(6265);function o(e){let{label:t,header:r,children:o}=e,[s,i]=(0,n.useState)(!1);return s?(0,a.jsxs)("div",{className:"bg-fd-card text-fd-foreground p-2 border rounded",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsxs)("div",{className:"text-xl mb-4 flex-grow",children:[t," example"]}),r,(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary",onClick:()=>{i(!1)},children:"Close"})]}),o]}):(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-secondary text-nowrap",onClick:()=>{i(!0)},children:"Open example"})})}function s(e){let{label:t,children:r,paneClassName:o}=e,[s,i]=(0,n.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bold mt-4 border-b mb-1",children:(0,a.jsxs)("button",{onClick:()=>{i(!s)},children:[t,(0,a.jsx)("span",{className:"text-xs ml-2",children:s?"▼":"▶"})]})}),s&&(0,a.jsx)("div",{className:o,children:r})]})}function i(e){let{trigger:t,className:r}=e;return(0,a.jsx)("div",{className:"flex mb-4 "+(null!=r?r:""),children:(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{t.value=1},onMouseUp:()=>{t.value=0},children:"Trigger"})})}function l(e){let{gate:t}=e,[r,o]=(0,n.useState)(!1),[s,i]=(0,n.useState)(!1);return(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("button",{className:"border px-2 py-1 rounded bg-fd-primary text-fd-primary-foreground",onMouseDown:()=>{let e=!r||!s;i(e),t.value=e?1:0},onMouseUp:()=>{r||(i(!1),t.value=0)},children:"Gate"}),(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{className:"mr-1",type:"checkbox",checked:r,onChange:()=>{o(!r)}}),"Sustain"]})]})}},1471:function(e,t,r){r.d(t,{i:function(){return o}});var a=r(7949),n=r(6265);function o(e){let{label:t,min:r=0,max:o=1,step:s,transform:i=e=>e,inputClassName:l,labelClassName:u,valueClassName:c,param:p,units:d}=e,[f,m]=(0,n.useState)(p.value);return(0,n.useEffect)(()=>{m(p.value)},[p]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:u,children:t}),(0,a.jsx)("input",{className:l,type:"range",min:r,max:o,step:null!=s?s:"any",value:f,onChange:e=>{let t=e.target.valueAsNumber;m(t),p.value=i(t)}}),(0,a.jsxs)("div",{className:c,children:[i(f).toFixed(2),d]})]})}},9237:function(e,t,r){let a;r.d(t,{Z:function(){return s}});var n=r(8098),o=r(6265);function s(e){let[t,r]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let t;console.log("useSynth connecting");let o=!1;return(a||(a=(0,n.K_)(new AudioContext)),a).then(a=>{o||((t=e(a)).connect(a.destination),console.log("useSynth connected",t),r(t))}),()=>{o=!0,console.log("useSynth dispose",t),null==t||t.dispose()}},[]),t}},8098:function(e,t,r){let a,n;r.d(t,{wF:function(){return et},km:function(){return eo},ji:function(){return ea},Co:function(){return er},m7:function(){return e9},SU:function(){return ed},q1:function(){return ta},No:function(){return e0},Dr:function(){return e6},e2:function(){return e8},U:function(){return eh},Ek:function(){return eb},S9:function(){return eQ},NR:function(){return tt},VR:function(){return e3},nl:function(){return e7},F2:function(){return ew},Pf:function(){return eN},_K:function(){return te},op:function(){return to},cy:function(){return eA},Z9:function(){return ej},D_:function(){return e$},dO:function(){return eR},$q:function(){return eP},Zm:function(){return eE},vD:function(){return e5},$N:function(){return eV},zX:function(){return eW},IL:function(){return tr},Xi:function(){return eG},KM:function(){return e1},K_:function(){return ts}});var o,s,i,l,u,c,p,d,f,m,h,g,b,v,y,x,N,M,k,w,j,O,A,P,S,_,R,C,D,E,W,I,V,q,F,L,U,T,B,Z,H,G,Y,K,z=(c='"use strict";(()=>{var M=class extends AudioWorkletProcessor{r;d;constructor(){super(),this.r=!0,this.d=O(sampleRate),this.port.onmessage=a=>{switch(a.data.type){case"DISPOSE":this.r=!1;break}}}process(a,n,t){return this.d.update(t.trigger[0],t.attack[0],t.decay[0]),this.d.gen(n[0][0],t.offset[0],t.gain[0]),this.r}static get parameterDescriptors(){return[["trigger",0,0,1],["attack",.01,0,10],["decay",.1,0,10],["offset",0,0,2e4],["gain",1,0,1e4]].map(([a,n,t,d])=>({name:a,defaultValue:n,minValue:t,maxValue:d,automationRate:"k-rate"}))}};registerProcessor("AdProcessor",M);function O(l){let D=l*.05,g=l*.1,u=!1,E=.1,f=.1,h=Math.exp(-1/(.1*D)),A=Math.exp(-1/(.1*g)),r=0,s=0;return{update(o,c,i){if(o===1?u||(u=!0,r=1):u=!1,c!==E){E=c;let e=Math.max(E*D,.001);h=Math.exp(-1/e)}if(i!==f){f=i;let e=Math.max(f*g,.001);A=Math.exp(-1/e)}},gen(o,c,i){let e=0;for(let p=0;p({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,p.processorName,p.workletOptions(a));n.__PROCESSOR_NAME__=p.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,p.paramNames,a);return null===(t=p.postCreate)||void 0===t||t.call(p,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});function Q(e){return function(t){var r;let a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new AudioWorkletNode(t,e.processorName,e.workletOptions(n));o.__PROCESSOR_NAME__=e.processorName;let s=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(o,e.paramNames,n);return null===(r=e.postCreate)||void 0===r||r.call(e,o),a=!1,Object.assign(o,{dispose(){var e,t;if(!a&&(a=!0,o.disconnect(),null===(e=o.port)||void 0===e||e.postMessage({type:"DISPOSE"}),s))for(;s.length;){let e=s.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}}var $=["gate","attack","decay","sustain","release","offset","gain"],J=(d='"use strict";(()=>{function I(){let u=!1;return r=>{if(u===!1&&r>=.9)return u=!0,!0;if(u===!0&&r<.1)return u=!1,!1}}function D(u){let r=Math.exp(-1.5),n=Math.exp(-4.95),s=0,o=0,l=0,b=0,p={b:0,c:0},y={b:0,c:0},A={b:0,c:0},x=I(),f=0,e=0;return k(.01,.1,.5,.3),function(a,i,c,m){F(m);let P=m.offset[0],R=m.gain[0];for(let d=0;d=1||s<=0)&&(e=1,f=2);break;case 2:e=y.b+e*y.c,(e<=b||o<=0)&&(e=b,f=3);break;case 3:e=b;break;case 4:e=A.b+e*A.c,(e<=0||l<=0)&&(e=0,f=0)}let S=c?a[d]*e:e;i[d]=S*R+P}};function F(t){k(t.attack[0],t.decay[0],t.sustain[0],t.release[0]);let a=x(t.gate[0]);a===!0?f=1:a===!1&&(f=4)}function k(t,a,i,c){(b!==i||o!==a)&&(b=i,o=a,h(y,o,b,n)),s!==t&&(s=t,h(p,s,1+2*r,r)),l!==c&&(l=c,h(A,l,0,n))}function h(t,a,i,c){let m=a*u;t.c=Math.exp(-Math.log((1+c)/c)/m),t.b=(i-c)*(1-t.c)}}var g=class extends AudioWorkletProcessor{p;r=!0;m;constructor(r){super(),this.m=r.processorOptions.mode==="modulator",this.p=D(sampleRate),this.port.onmessage=n=>{switch(n.data.type){case"DISPOSE":this.r=!1;break}}}process(r,n,s){let o=this.m?r[0][0]:void 0,l=n[0][0];return this.p(o,l,this.m,s),this.r}static get parameterDescriptors(){return[["gate",0,0,1],["attack",.01,0,10],["decay",.1,0,10],["sustain",.5,0,1],["release",.3,0,100],["offset",0,0,2e4],["gain",1,-2e4,2e4]].map(([r,n,s,o])=>({name:r,defaultValue:n,minValue:s,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("AdsrProcessor",g);})();',function(e){let t="__ADSR__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([d],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ee=Q({processorName:"AdsrProcessor",paramNames:$,workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1,processorOptions:{mode:"generator"}})}),et=Q({processorName:"AdsrProcessor",paramNames:$,workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,processorOptions:{mode:"modulator"}})}),er=((f=er||{})[f.Random=0]="Random",f),ea=((m=ea||{})[m.Augmented=2457]="Augmented",m[m.Blues=1257]="Blues",m[m.Chromatic=4095]="Chromatic",m[m.Diminished=2925]="Diminished",m[m.Dominant7th=1169]="Dominant7th",m[m.Dorian=1709]="Dorian",m[m.HalfWholeDiminished=1755]="HalfWholeDiminished",m[m.HarmonicMinor=2477]="HarmonicMinor",m[m.Locrian=1387]="Locrian",m[m.Lydian=2773]="Lydian",m[m.Major6th=657]="Major6th",m[m.Major7th=2193]="Major7th",m[m.Major=2741]="Major",m[m.MelodicMinor=2733]="MelodicMinor",m[m.Minor7th=1161]="Minor7th",m[m.Minor=1453]="Minor",m[m.MinorMajor7th=2185]="MinorMajor7th",m[m.Mixolydian=1717]="Mixolydian",m[m.Pentatonic=1193]="Pentatonic",m[m.PentatonicMajor=661]="PentatonicMajor",m[m.PentatonicMinor=1193]="PentatonicMinor",m[m.Phrygian=1451]="Phrygian",m[m.Sus2=133]="Sus2",m[m.Sus4=161]="Sus4",m[m.TriadAugmented=273]="TriadAugmented",m[m.TriadDiminished=73]="TriadDiminished",m[m.TriadMajor=145]="TriadMajor",m[m.TriadMinor=137]="TriadMinor",m[m.WholeHalfDiminished=2925]="WholeHalfDiminished",m[m.WholeTone=1365]="WholeTone",m),en=(h='"use strict";(()=>{function g(){let i=60,o=0,n=1,t=[0],e=0,s=1,u=!1,f=i;return function(h,a,y,m,x){return i=y,n=x,o!==m&&(o=m,t=D(m),s=t.length,e=e%s),h===1?u||(u=!0,f=M(a)):u=!1,440*Math.pow(2,(f-69)/12)};function M(r){switch(r){case 0:default:return b()}}function b(){let r=Math.floor(Math.random()*(n-1)),h=t[Math.floor(Math.random()*s)];return i+h+r*12}}function D(i){let o=i.toString(2),n=[];for(let t=0;t{switch(o.data.type){case"DISPOSE":this.r=!1;break}}}process(o,n,t){let e=this.a(t.trigger[0],t.type[0],t.baseNote[0],t.scale[0],t.octaves[0]),s=n[0][0];return s&&s.fill(e),this.r}static get parameterDescriptors(){return[["trigger",0,0,1],["type",0,0,1],["baseNote",60,0,200],["scale",1,1,2047],["octaves",1,1,10]].map(([o,n,t,e])=>({name:o,defaultValue:n,minValue:t,maxValue:e,automationRate:"k-rate"}))}};registerProcessor("ArpProcessor",d);})();',function(e){let t="__ARP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([h],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eo=(g={processorName:"ArpProcessor",paramNames:["trigger","type","baseNote","scale","octaves"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,g.processorName,g.workletOptions(a));n.__PROCESSOR_NAME__=g.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,g.paramNames,a);return null===(t=g.postCreate)||void 0===t||t.call(g,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),es=(b='"use strict";(()=>{function pt(i){let l=new Float32Array(65536),a=new Float32Array(65536),h=i,r=new Float32Array(2),t=new Float32Array(2),m=new Float32Array(2),p=new Float32Array(2),c=new Float32Array(2),n=new Float32Array(2),u=new Float32Array(2),f=new Float32Array(2),T=new Float32Array(2),y=new Float32Array(2),x=new Float32Array(2),o=new Float32Array(8192),e=0,w=new Int32Array(2),M=Math.min(192e3,Math.max(1,h)),v=Math.exp(-(44.12234/M)),D=1-v,ct=.33333334/M,ut=1/M,Tt=.14285715/M,yt=.5/M,xt=.25/M,At=.16666667/M,wt=.125/M,E=.5,G=.5,O=.5,L=.5;st(l,St),st(a,Vt);function Ft(F,I,k){let P=D*E,Rt=4.096*G,Ct=625e-7*O,bt=D*L;for(let A=0;A>>0,t[1]=t[0],n[1]=n[0],f[1]=f[0],u[1]=u[0],T[1]=T[0],y[1]=y[0],x[1]=x[0],m[1]=m[0],p[1]=p[0],c[1]=c[0]}}function dt(F,I,k,P){E=F,G=I,O=k,L=P}return{update:dt,compute:Ft}}var St=i=>Math.cos(958738e-10*i),Vt=i=>Math.sin(958738e-10*i);function st(i,l){if(i.length!==65536)throw new Error("Table must be 65536 samples long");let a=0,h=0,r=0,t=0;for(let m=0;m<65536;m++)a=1,r=(h+t)%65536,i[m]=Math.cos(958738e-10*r),h=a,t=r;return i}var B=class extends AudioWorkletProcessor{r;u;g;constructor(){super(),this.r=!0;let{compute:l,update:a}=pt(sampleRate);this.u=a,this.g=l,this.port.onmessage=h=>{switch(h.data.type){case"DISPOSE":this.r=!1;break}}}process(l,a,h){if(l[0].length===0)return this.r;this.u(h.delay[0],h.rate[0],h.depth[0],h.deviation[0]);let r=l[0][0],t=a[0][0],m=a[0][1];return this.g(r,t,m),this.r}static get parameterDescriptors(){return[["delay",.5,0,1],["rate",.5,0,1],["depth",.5,0,1],["deviation",.5,0,1]].map(([l,a,h,r])=>({name:l,defaultValue:a,minValue:h,maxValue:r,automationRate:"k-rate"}))}};registerProcessor("ChorusProcessor",B);})();',function(e){let t="__CHORUS__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([b],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ei=(v='"use strict";(()=>{function P(r){let e=S(),o=S(),t=S(),s=S(),a=.5,c=.83,b=7,d=k(r,1,a,b),g=k(r,0,a,b),u=k(r,0,c,b),m=k(r,1,c,b),i=!0,h=!0;return{update(p,y,n,f){i=p===1,h=y===1,n!==a&&(a=n,d.setLfoRate(n),g.setLfoRate(n)),f!==c&&(c=f,u.setLfoRate(f),m.setLfoRate(f))},process(p,y){let n=p[0],f=p.length>1?p[1]:n;for(let l=0;l=1&&(d=-1),c<=-1&&(d=1),c+=d*b,c}return{setLfoRate(n){b=4*n/r},process(n){n=n*.2;let f=(.3*y()+.4)*g,l=i-Math.floor(f);l<0&&(l+=u);let L=l-1;L<0&&(L+=u);let R=f-Math.floor(f);return h=m[L]+m[l]*(1-R)-(1-R)*s,s=h,h=p.tick(h),m[i]=n,i++,i>=u&&(i=0),h}}}var C=class extends AudioWorkletProcessor{r;p;constructor(){super(),this.r=!0,this.p=P(sampleRate),this.port.onmessage=e=>{switch(e.data.type){case"DISPOSE":this.r=!1;break}}}process(e,o,t){if(!(e.length<1||o.length<1))if(t.bypass[0]===1){let s=e[0].length===1;o[0][1].set(e[0][0]),o[0][0].set(e[0][s?0:1])}else this.p.update(t.enable1[0],t.enable2[0],t.lfoRate1[0],t.lfoRate2[0]),this.p.process(e[0],o[0]);return this.r}static get parameterDescriptors(){return[["bypass",0,0,1],["enable1",1,0,1],["enable2",1,0,1],["lfoRate1",.5,0,1],["lfoRate2",.83,0,1]].map(([e,o,t,s])=>({name:e,defaultValue:o,minValue:t,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("ChorusTWorkletProcessor",C);})();',function(e){let t="__CHORUS-T__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([v],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),el=(y={processorName:"ChorusTWorkletProcessor",paramNames:["bypass","enable1","enable2","lfoRate1","lfoRate2"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1}),postCreate(e){e.setBypass=t=>{e.bypass.value=t?1:0}}},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,y.processorName,y.workletOptions(a));n.__PROCESSOR_NAME__=y.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,y.paramNames,a);return null===(t=y.postCreate)||void 0===t||t.call(y,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eu=((x=eu||{})[x.Bypass=0]="Bypass",x[x.Tanh=1]="Tanh",x),ec=(N='"use strict";(()=>{function i(e){switch(e){case 1:return f;case 0:default:return h}}var h=e=>e,f=Math.tanh;var p=class extends AudioWorkletProcessor{r;g;t;fn;constructor(){super(),this.r=!0,this.g=!1,this.t=0,this.fn=i(0),this.port.onmessage=s=>{switch(s.data.type){case"DISPOSE":this.r=!1;break}}}process(s,n,t){this.t!==t.type[0]&&(this.t=t.type[0],this.fn=i(this.t));let o=t.preGain[0],c=t.postGain[0],a=s[0][0],u=n[0][0];if(a&&u)for(let r=0;r({name:s,defaultValue:n,minValue:t,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("ClipAmpProcessor",p);})();',function(e){let t="__CLIP_AMP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([N],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ep=(M={processorName:"ClipAmpProcessor",paramNames:["type","preGain","postGain"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,M.processorName,M.workletOptions(a));n.__PROCESSOR_NAME__=M.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,M.paramNames,a);return null===(t=M.postCreate)||void 0===t||t.call(M,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ed=(k={processorName:"ClockWorkletProcessor",paramNames:["bpm"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,k.processorName,k.workletOptions(a));n.__PROCESSOR_NAME__=k.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,k.paramNames,a);return null===(t=k.postCreate)||void 0===t||t.call(k,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ef=(w='"use strict";(()=>{var i=class extends AudioWorkletProcessor{r;bpm;i;p;constructor(){super(),this.r=!0,this.bpm=120,this.i=this.bpm/60/sampleRate,this.p=0,this.port.onmessage=s=>{switch(s.data.type){case"DISPOSE":this.r=!1;break}}}process(s,e,r){r.bpm[0]!==this.bpm&&(this.bpm=r.bpm[0],this.i=this.bpm/60/sampleRate);let t=this.p+e[0][0].length*this.i;t>1&&(t-=1);let a=t({name:s,defaultValue:e,minValue:r,maxValue:t,automationRate:"k-rate"}))}};registerProcessor("ClockWorkletProcessor",i);})();',function(e){let t="__CLOCK__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([w],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),em=(j='"use strict";(()=>{function V0(z){let t=44.1/z,f=1-t,l=-6,w=0,s=.7,B=.625,G=.625,H=.7,J=.625,K=.625,L=.625,e=0,p=[0,0],V=[0,0],m=[0,0],o=[0,0,0],r=[0,0],N=new Array(256).fill(0),A=[0,0],Q=new Array(128).fill(0),T=[0,0],c=[0,0],X=new Array(512).fill(0),h=[0,0],Y=new Array(512).fill(0),R=[0,0],n=[0,0],u=[0,0],i=[0,0],Z=new Array(1024).fill(0),b=[0,0],_=new Array(8192).fill(0),D=[0,0],a=[0,0],$=new Array(4096).fill(0),S=[0,0],e0=new Array(4096).fill(0),F=[0,0],t0=new Array(1024).fill(0),g=[0,0],l0=new Array(8192).fill(0),C=[0,0],f0=new Array(2048).fill(0),k=[0,0],r0=new Array(2048).fill(0),x=[0,0];function A0(y,O,P,U,W,v,I,j,E){l=y,w=O,s=P,B=U,G=W,H=v,J=I,K=j,L=E}function T0(y,O,P){let U=y[0],W=y.length===1?y[0]:y[1],v=O[0],I=O[1],j=t*Math.pow(10,.05*l),E=t*w,h0=t*s,b0=t*B,D0=t*G,S0=t*H,F0=t*J,g0=t*K,C0=t*L;for(let d=0;d{switch(l.data.type){case"DISPOSE":this.r=!1;break}}}process(t,f,l){this.u(l.filter[0],l.inputDiffusion1[0],l.inputDiffusion2[0],l.decayDiffusion1[0],l.decayDiffusion2[0],l.decay[0],l.damping[0],l.dryWet[0],l.level[0]);let w=t[0],s=f[0];return w.length===0||s.length===0?this.r:(this.c(w,s,s[0].length),this.r)}static get parameterDescriptors(){return[["filter",.7,0,1],["inputDiffusion1",.75,0,1],["inputDiffusion2",.625,0,1],["decayDiffusion1",.7,0,.999999],["decayDiffusion2",.5,0,.999999],["decay",.5,0,1],["damping",.25,0,1],["dryWet",1,-1,1],["level",0,0,1]].map(t=>new Object({name:t[0],defaultValue:t[1],minValue:t[2],maxValue:t[3],automationRate:"k-rate"}))}};registerProcessor("DattorroReverbProcessor",q);})();',function(e){let t="__DATTORRO_REVERB__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([j],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eh=(O={processorName:"DattorroReverbProcessor",paramNames:["filter","inputDiffusion1","inputDiffusion2","decayDiffusion1","decayDiffusion2","decay","damping"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,O.processorName,O.workletOptions(a));n.__PROCESSOR_NAME__=O.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,O.paramNames,a);return null===(t=O.postCreate)||void 0===t||t.call(O,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eg=(A='"use strict";(()=>{var l=class extends AudioWorkletProcessor{r;g;u;constructor(){super(),this.r=!0;let[e,t]=m();this.g=e,this.u=t,this.port.onmessage=r=>{switch(r.data.type){case"DISPOSE":this.r=!1;break}}}process(e,t,r){return this.u(r.steps[0],r.beats[0],r.rotation[0]),this.g(t[0][0],r.clock[0],r.subdivision[0]),this.r}static get parameterDescriptors(){return[["clock",0,0,1],["steps",0,0,100],["beats",0,0,100],["subdivision",1,1,20],["rotation",0,0,100]].map(([e,t,r,o])=>({name:e,defaultValue:t,minValue:r,maxValue:o,automationRate:"k-rate"}))}};registerProcessor("EuclidProcessor",l);function m(){let n=1,e=1,t=0,r=[1],o=0,u=0;function b(i,s,c){let a=s*c;for(;a>1;)a-=1;let d=a({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,P.processorName,P.workletOptions(a));n.__PROCESSOR_NAME__=P.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,P.paramNames,a);return null===(t=P.postCreate)||void 0===t||t.call(P,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ev=(S='"use strict";(()=>{var s=class extends AudioWorkletProcessor{r;g;constructor(){super(),this.r=!0,this.g=!1,this.port.onmessage=r=>{switch(r.data.type){case"DISPOSE":this.r=!1;break}}}process(r,e,t){return e[0][0].fill(0),t.trigger[0]===1?this.g||(this.g=!0,e[0][0][0]=1):this.g=!1,this.r}static get parameterDescriptors(){return[["trigger",0,0,1]].map(([r,e,t,a])=>({name:r,defaultValue:e,minValue:t,maxValue:a,automationRate:"k-rate"}))}};registerProcessor("ImpulseProcessor",s);})();',function(e){let t="__IMPULSE__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([S],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ey=(_={processorName:"ImpulseProcessor",paramNames:["trigger"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,_.processorName,_.workletOptions(a));n.__PROCESSOR_NAME__=_.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,_.paramNames,a);return null===(t=_.postCreate)||void 0===t||t.call(_,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ex=(R='"use strict";(()=>{function b(o,n){let e=Math.ceil(o/n)+2,t=new Float32Array(e),i=e-2,a=0,f=!1,h=0;return(c,y,S,A)=>{let g=c.length,I=.1*A*o,M=Math.pow(.001,1/I);if(y>=1&&h<.9){i=o/S,i=Math.min(Math.max(i,1),e-2);for(let r=0;r{switch(n.data.type){case"DISPOSE":this.r=!1;break}}}process(n,s,e){let t=s[0][0];return this.g(t,e.trigger[0],e.frequency[0],e.decay[0]),this.r}static get parameterDescriptors(){return[["trigger",0,0,1],["frequency",440,20,2e4],["decay",.1,.01,5]].map(([n,s,e,t])=>({name:n,defaultValue:s,minValue:e,maxValue:t,automationRate:"k-rate"}))}};registerProcessor("KsProcessor",d);})();',function(e){let t="__KS-OSC__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([R],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eN=((C=eN||{})[C.None=0]="None",C[C.Sine=1]="Sine",C[C.Triangle=2]="Triangle",C[C.RampUp=3]="RampUp",C[C.RampDown=4]="RampDown",C[C.Square=5]="Square",C[C.ExpRampUp=6]="ExpRampUp",C[C.ExpRampDown=7]="ExpRampDown",C[C.ExpTriangle=8]="ExpTriangle",C[C.RandSampleHold=9]="RandSampleHold",C[C.Impulse=10]="Impulse",C);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5/12,t=Math.pow(10,-1/e)}(),a=!0,(e,t)=>{let r=a?1:0;return a=t2*Math.random()-1;n=eM(),(e,t)=>{let r=n;return t{function c(e){return 2*e-1}function v(e=5/12){let n=Math.pow(10,-1/e),t=e*Math.log10(1+n),r=1/(-e*Math.log10(n)+t);return s=>{if(s>=1)return 1;if(s<=0)return 0;let l=-e*r*Math.log10(1-s+n)+t;return Math.max(0,Math.min(1,l))}}function A(){let e=M();return(n,t)=>{let r=e;return t{let r=e?1:0;return e=t0,q=S(),w=e=>Math.sin(e*2*Math.PI),D=e=>1-2*Math.abs(c(e)),E=e=>c(e),F=e=>-c(e),I=e=>e<=.5?1:-1,M=()=>c(Math.random()),U=e=>c(d(e)),$=e=>c(d(1-e)),H=e=>c(d(Math.abs(c(e)))),k=A();function R(e,n){let t=1/e,r=[b,w,D,E,F,I,U,$,H,k,q],s=1,l=10,m=1,h=0,p=r[1]??b,u=0;function x(a){a.type[0]!==s&&(s=a.type[0],p=r[Math.floor(s)]??b),l=a.frequency[0],h=a.offset[0],m=a.gain[0]}function P(a,g){x(g);let o=u+a.length*t*l;o>=1&&(o-=1);let i=p(u,o)*m+h;a.fill(i),u=o}function f(a,g){x(g);for(let o=0;o=1&&(i-=1),a[o]=p(u,i)*m+h,u=i}}return n?f:P}var G=class extends AudioWorkletProcessor{r;g;constructor(n){super(),this.g=R(sampleRate,!1),this.r=!0,this.port.onmessage=t=>{switch(t.data.type){case"DISPOSE":this.r=!1;break}}}process(n,t,r){return this.g(t[0][0],r),this.r}static get parameterDescriptors(){return[["type",1,0,100],["frequency",10,0,200],["gain",1,0,1e4],["offset",0,-1e3,1e3]].map(([n,t,r,s])=>({name:n,defaultValue:t,minValue:r,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("LfoProcessor",G);})();',function(e){let t="__LFO__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([D],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),ew=(E={processorName:"LfoProcessor",paramNames:["type","frequency","gain","offset"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,E.processorName,E.workletOptions(a));n.__PROCESSOR_NAME__=E.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,E.paramNames,a);return null===(t=E.postCreate)||void 0===t||t.call(E,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),ej=((W=ej||{})[W.White=0]="White",W[W.Pink=1]="Pink",W),eO=(I='"use strict";(()=>{function g(o,t){switch(t){case 0:return b;case 1:return w();case 2:return k(o);default:return console.warn("Unknown noise type: "+t),b}}function b(o){for(let t=0;tMath.pow(10,h/20),u=h=>20*Math.log10(h),l=0,r=0,f=0,m=o/(2*Math.PI)-1;for(;m>1;)t[l]=2*Math.PI*m/o,m=m/4,l++;for(c=l;l-- >0;)n[l]=a(r),f+=a(r),r-=6;return i=a(-u(f)),h=>{for(let p=0;p{for(let a=0;a{switch(t.data.type){case"DISPOSE":this.r=!1;break}}}process(t,n,e){return this.t!==e.type[0]&&(this.t=e.type[0],this.d=g(sampleRate,e.type[0])),this.d(n[0][0]),this.r}static get parameterDescriptors(){return[["type",0,0,100]].map(([t,n,e,i])=>({name:t,defaultValue:n,minValue:e,maxValue:i,automationRate:"k-rate"}))}};registerProcessor("NoiseWorkletProcessor",d);})();',function(e){let t="__NOISE__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([I],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eA=(V={processorName:"NoiseWorkletProcessor",paramNames:["type"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,V.processorName,V.workletOptions(a));n.__PROCESSOR_NAME__=V.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,V.paramNames,a);return null===(t=V.postCreate)||void 0===t||t.call(V,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eP=((q=eP||{})[q.Bypass=0]="Bypass",q[q.DbToGain=1]="DbToGain",q[q.GainToDb=2]="GainToDb",q[q.Linear=3]="Linear",q),eS=(F='"use strict";(()=>{function o(t){switch(t){case 0:return u;case 1:return a;case 2:return b;case 3:return h;default:return u}}function u(t){return t}function a(t){return Math.pow(10,t/20)}function b(t){return 20*Math.log10(t)}function h(t,n,r){return n+t*(r-n)}var i=class extends AudioWorkletProcessor{r;s;c;constructor(){super(),this.r=!0,this.s=0,this.c=o(this.s),this.port.onmessage=n=>{switch(n.data.type){case"DISPOSE":this.r=!1;break}}}process(n,r,e){this.s!==e.scale[0]&&(this.s=e.scale[0],this.c=o(this.s));let s=e.input[0]+e.mod[0],c=this.c(s,e.min[0],e.max[0])*e.gain[0]+e.offset[0];return r[0][0].fill(c),this.r}static get parameterDescriptors(){return[["scale",0,0,10],["input",0,-2e4,2e4],["offset",0,-2e4,2e4],["min",0,-2e4,2e4],["max",1,-2e4,2e4],["gain",1,-2e4,2e4],["mod",0,-2e4,2e4]].map(([n,r,e,s])=>({name:n,defaultValue:r,minValue:e,maxValue:s,automationRate:"k-rate"}))}};registerProcessor("ParamProcessor",i);})();',function(e){let t="__PARAM__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([F],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),e_=(L={processorName:"ParamProcessor",paramNames:["scale","input","offset","min","max","gain","mod"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,L.processorName,L.workletOptions(a));n.__PROCESSOR_NAME__=L.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,L.paramNames,a);return null===(t=L.postCreate)||void 0===t||t.call(L,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eR=Object.assign(e_,{input:(e,t)=>e_(e,{input:t}),db:(e,t)=>e_(e,{scale:1,input:t}),inv:(e,t)=>e_(e,{input:t,gain:-1})}),eC=((U=eC||{})[U.Sawtooth=0]="Sawtooth",U[U.Square=1]="Square",U[U.Triangle=2]="Triangle",U),eD=(T='"use strict";(()=>{function q(f){let u=1/f,s=0,o=440,t=0,a=o*u,m=0,x=Math.exp(-1/(.0025*f)),b=0,c=0,l=[y,d,S],p=l[0],A=0;return function(e,r,F,g){if(s!==r&&(s=r,p=l[s]??l[0]),o!==F||g!==A){o=F,A=g;let D=Math.pow(2,g/1200);a=o*D*u}p(e)};function y(n){for(let e=0;e1&&(t-=1)}function d(n){for(let e=0;e1&&(t-=1)}function S(n){for(let e=0;e1&&(t-=1)}}function i(n,e){if(n1-e){let r=(n-1)/e;return r+r+r*r+1}else return 0}}var h=class extends AudioWorkletProcessor{r;g;constructor(){super(),this.r=!0,this.g=q(sampleRate),this.port.onmessage=u=>{switch(u.data.type){case"DISPOSE":this.r=!1;break}}}process(u,s,o){let t=s[0][0];return this.g(t,o.type[0],o.frequency[0],o.detune[0]),this.r}static get parameterDescriptors(){return[["type",0,0,2],["frequency",440,0,2e4],["detune",0,0,1e4]].map(([u,s,o,t])=>({name:u,defaultValue:s,minValue:o,maxValue:t,automationRate:"k-rate"}))}};registerProcessor("PolyBLEProcessor",h);})();',function(e){let t="__POLY_BLEP__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([T],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eE=(B={processorName:"PolyBLEProcessor",paramNames:["type","frequency","detune"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,B.processorName,B.workletOptions(a));n.__PROCESSOR_NAME__=B.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,B.paramNames,a);return null===(t=B.postCreate)||void 0===t||t.call(B,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eW=((Z=eW||{})[Z.ByPass=0]="ByPass",Z[Z.LowPass=1]="LowPass",Z[Z.BandPass=2]="BandPass",Z[Z.HighPass=3]="HighPass",Z[Z.Notch=4]="Notch",Z[Z.Peak=5]="Peak",Z[Z.AllPass=6]="AllPass",Z),eI=(H='"use strict";(()=>{function M(p){let a=1/p,n=0,e=0,l=0,t=0,s=0,o=0,m=0,P=0,k=0,_=0,g=0,A=-1,d=0,x=0;function w(b,c,h){if(c===d&&A===b&&h===x)return;A=b,d=c,x=h;let i=Math.tan(c*a*Math.PI),r=1/Math.max(h,1e-4);switch(n=1/(1+i*(i+r)),e=i*n,l=i*e,b){case 1:t=0,s=0,o=1;break;case 2:t=0,s=1,o=0;break;case 3:t=1,s=-r,o=-1;break;case 4:t=1,s=-r,o=0;break;case 5:t=1,s=-r,o=-2;break;case 6:t=1,s=-2*r,o=0;default:t=1,s=0,o=0;break}}return function(c,h,i,r,R){w(i,r[0],R);let Q=r.length===c.length;for(let u=0;u{switch(a.data.type){case"STOP":this.r=!1;break}}}process(a,n,e){if(a[0].length===0)return this.r;let l=a[0][0],t=n[0][0];return this.p(l,t,e.type[0],e.frequency,e.Q[0]),this.r}static get parameterDescriptors(){return[["type",1,0,10,"k"],["frequency",1e3,20,2e4,"a"],["Q",.5,.025,40,"k"]].map(([a,n,e,l,t])=>({name:a,defaultValue:n,minValue:e,maxValue:l,automationRate:t+"-rate"}))}};registerProcessor("SvfProcessor",F);})();',function(e){let t="__SVF__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([H],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eV=(G={processorName:"SvfProcessor",paramNames:["type","frequency","Q"],workletOptions:()=>({numberOfInputs:1,numberOfOutputs:1})},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,G.processorName,G.workletOptions(a));n.__PROCESSOR_NAME__=G.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,G.paramNames,a);return null===(t=G.postCreate)||void 0===t||t.call(G,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})}),eq=r(9802),eF=r(8336),eL=r(3793),eU=r(8672),eT=r(6117),eB=(o=new WeakMap,s=new WeakMap,i=new WeakMap,l=new WeakSet,u=class{static async fetchAvailableNames(){let e=await fetch("https://smpldsnds.github.io/wavedit-online/samples/files.json");if(!e.ok)throw Error("Failed to load wavetable list.");return await e.json()}onLoad(){return(0,eq._)(this,i)}getData(){return(0,eq._)(this,s)}static decodeWavetable(e){let t=new DataView(e),r=t.getUint16(20,!0),a=t.getUint32(24,!0),n=t.getUint16(22,!0),o=t.getUint16(34,!0),s=t.getUint32(40,!0);if(1!==r)throw Error("Invalid format. Only PCM supported.");if(1!==n)throw Error("Invalid format. Only mono supported.");let i=32===o,l=o/8,u=s/(l*n),c=new Float32Array(u);for(let e=0;e{function F(l){let e=220,r=440,a=.005,o=new Float32Array(0),n=0,i=0,s=0,u=0,c=0,b=2,q=W(l),d=P();function A(t){(t.frequency[0]!==r||t.baseFrequency[0]!==e)&&(e=t.baseFrequency[0],r=t.frequency[0],b=r/e),a=t.morphFrequency[0]}function V(t,m){o=t,n=Math.min(m,t.length),i=Math.floor(t.length/n),s=0,u=(s+1)%i}function x(t,m){if(n===0||i===0){t.fill(0);return}A(m);for(let f=0;f=n&&(c-=n),c<0&&(c+=n),d(h)&&(s=u,u=(u+1)%i)}}return{agen:x,set:V}}function g(l,e,r,a){let o=Math.floor(a),n=a-o,i=(o+1)%e,s=l[r*e+o],u=l[r*e+i];return s+(u-s)*n}function W(l){let e=1/l,r=0;return a=>{for(r+=a*e;r>=1;)r-=1;for(;r<0;)r+=1;return r}}function P(){let l=0,e=!1;return function(a){let n=Math.abs(a-l)>.5;return l=a,a===0||e===!0?(e=!1,!1):(e=n,n)}}var y=class extends AudioWorkletProcessor{static parameterDescriptors=[{name:"baseFrequency",defaultValue:220,minValue:0,maxValue:2e4,automationRate:"k-rate"},{name:"frequency",defaultValue:440,minValue:0,maxValue:2e4,automationRate:"k-rate"},{name:"morphFrequency",defaultValue:.05,minValue:0,maxValue:10,automationRate:"k-rate"}];u;r;constructor(){super(),this.u=F(sampleRate),this.r=!0,this.port.onmessage=e=>{switch(e.data.type){case"WAVETABLE":this.u.set(e.data.wavetable,e.data.length);break;case"DISPOSE":this.r=!1;break}}}process(e,r,a){return this.u.agen(r[0][0],a),this.r}};registerProcessor("WavetableOscillatorWorkletProcessor",y);})();',function(e){let t="__WT__";if(t in e)return e[t];if(!e.audioWorklet||!e.audioWorklet.addModule)throw Error("AudioWorklet not supported");let r=new Blob([Y],{type:"application/javascript"}),a=URL.createObjectURL(r),n=e.audioWorklet.addModule(a);return e[t]=n,n}),eH=(K={processorName:"WavetableOscillatorWorkletProcessor",paramNames:["baseFrequency","frequency","morphFrequency"],workletOptions:()=>({numberOfInputs:0,numberOfOutputs:1}),postCreate(e){e.setWavetable=t=>{e.port.postMessage({type:"WAVETABLE",wavetable:t.data,length:t.length})},e.fetchWavetableNames=eG,e.loadWavetable=t=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256;return new eB(e.startsWith("http")?e:"https://smpldsnds.github.io/wavedit-online/samples/".concat(e.toUpperCase(),".WAV"),t).onLoad()})(t).then(t=>{e.setWavetable(t)})}},function(e){var t;let r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new AudioWorkletNode(e,K.processorName,K.workletOptions(a));n.__PROCESSOR_NAME__=K.processorName;let o=function(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}(n,K.paramNames,a);return null===(t=K.postCreate)||void 0===t||t.call(K,n),r=!1,Object.assign(n,{dispose(){var e,t;if(!r&&(r=!0,n.disconnect(),null===(e=n.port)||void 0===e||e.postMessage({type:"DISPOSE"}),o))for(;o.length;){let e=o.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(t=e.dispose)||void 0===t||t.call(e):e.disconnect():"function"==typeof e&&e()}}})});function eG(){return eB.fetchAvailableNames()}async function eY(){let e=await fetch(this.url);if(!e.ok)throw Error("Failed to load ".concat(this.url));let t=await e.arrayBuffer(),r=u.decodeWavetable(t);return(0,eL._)(this,o,r.sampleRate),(0,eL._)(this,s,r.data),{data:(0,eq._)(this,s),length:this.wavetableLength,sampleRate:(0,eq._)(this,o)}}function eK(e,t,r){let a=[];for(let n of t){e.parameters&&(e[n]=e.parameters.get(n));let t=e[n];if(!t)throw Error("Invalid param name: "+n);let o=r[n];if("number"==typeof o)t.value=o;else if(o instanceof AudioNode)t.value=0,o.connect(t),a.push(o);else if("function"==typeof o){t.value=0;let r=o(e.context);r.connect(t),a.push(r)}}return a}function ez(e,t){let r=!1;return Object.assign(e,{dispose(){var a,n;if(!r&&(r=!0,e.disconnect(),null===(a=e.port)||void 0===a||a.postMessage({type:"DISPOSE"}),t))for(;t.length;){let e=t.pop();e instanceof AudioNode?"function"==typeof e.dispose?null===(n=e.dispose)||void 0===n||n.call(e):e.disconnect():"function"==typeof e&&e()}}})}function eX(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new GainNode(e),a=eK(r,["gain"],t);return ez(r,a)}var eQ=Object.assign(eX,{val:(e,t)=>eX(e,{gain:t})});function e$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new OscillatorNode(e,{type:t.type});r.start();let a=eK(r,["frequency","detune"],t);return ez(r,a)}function eJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new BiquadFilterNode(e,{type:t.type}),a=eK(r,["frequency","detune","Q","gain"],t);return ez(r,a)}function e0(e){return ez(e.reduce((e,t)=>(e.connect(t),t)),e)}function e1(e){return e.__synthlet||(e.__synthlet=function(e){let t=t=>r=>t(e,r),r=t(eQ),a=t(e$),n=t(eJ),o=t(X),s=t(et),i=t(ee),l=t(el),u=t(ed),c=t(eb),p=t(ey),d=t(ew),f=t(eA),m=t(eE),h=t(eV),g=t(eR),b=t(eH),v=t(ep),y={param:Object.assign((e,t)=>g({input:e,...t}),{db:(e,t)=>g({scale:eP.DbToGain,input:e,...t}),lin:(e,t,r,a)=>g({scale:eP.Linear,input:r,min:e,max:t,...a}),add:(e,t,r)=>g({scale:eP.Bypass,input:t,offset:e,...r}),mul:(e,t,r)=>g({scale:eP.Bypass,input:t,gain:e,...r})}),conn:function(e){let t=(e,t)=>e.connect(t),r=e=>e4(e.reduce((e,t)=>(e.connect(t),t)),e),a=(e,t)=>(e.forEach(e=>e.connect(t)),e4(t,e));return Object.assign(function(e,n){for(var o=arguments.length,s=Array(o>2?o-2:0),i=2;i0?r([l,...s]):l},{pair:t,chain:r,mixInto:a,serial:function(){for(var e=arguments.length,t=Array(e),a=0;ar({gain:e}),{adsr:(e,t)=>s({gate:e,...t}),perc:(e,t,a,n)=>r({gain:o({trigger:e,attack:t,decay:a,...n})})}),clock:Object.assign(u,{}),clip:Object.assign(v,{soft:(e,t)=>v({type:eu.Tanh,preGain:e,postGain:t})}),chorusT:Object.assign(l,{}),euclid:Object.assign(c,{}),impulse:Object.assign(p,{trigger:e=>p({trigger:e})}),lfo:Object.assign(d,{sin:(e,t)=>d({type:eN.Sine,frequency:e,...t}),tri:(e,t)=>d({type:eN.Triangle,frequency:e,...t}),rampUp:(e,t)=>d({type:eN.RampUp,frequency:e,...t}),rampDown:(e,t)=>d({type:eN.RampDown,frequency:e,...t}),square:(e,t)=>d({type:eN.Square,frequency:e,...t}),expRampUp:(e,t)=>d({type:eN.ExpRampUp,frequency:e,...t}),expRampDown:(e,t)=>d({type:eN.ExpRampDown,frequency:e,...t}),expTriangle:(e,t)=>d({type:eN.ExpTriangle,frequency:e,...t}),sh:(e,t)=>d({type:eN.RandSampleHold,frequency:e,...t}),impulse:(e,t)=>d({type:eN.Impulse,frequency:e,...t})}),noise:Object.assign(f,{white:()=>f({type:ej.White}),pink:()=>f({type:ej.Pink})}),polyblep:Object.assign(m,{}),svf:Object.assign(h,{lp:(e,t)=>h({type:eW.LowPass,frequency:e,...t}),hp:(e,t)=>h({type:eW.HighPass,frequency:e,...t}),bp:(e,t)=>h({type:eW.BandPass,frequency:e,...t})}),env:Object.assign(i,{adsr:(e,t)=>i({gate:e,...t}),ad:(e,t)=>o({trigger:e,...t})}),bqf:Object.assign(n,{lp:(e,t)=>n({type:"lowpass",frequency:e,...t}),hi:(e,t)=>n({type:"highpass",frequency:e,...t}),bandpass:(e,t)=>n({type:"bandpass",frequency:e,...t}),allpass:(e,t)=>n({type:"allpass",frequency:e,...t}),highshelf:(e,t)=>n({type:"highshelf",frequency:e,...t}),lowshelf:(e,t)=>n({type:"lowshelf",frequency:e,...t}),peak:(e,t)=>n({type:"peaking",frequency:e,...t}),notch:(e,t)=>n({type:"notch",frequency:e,...t})}),gain:e=>r({gain:e}),osc:Object.assign(a,{sin:(e,t)=>a({type:"sine",frequency:e,...t}),saw:(e,t)=>a({type:"sawtooth",frequency:e,...t}),square:(e,t)=>a({type:"square",frequency:e,...t}),tri:(e,t)=>a({type:"triangle",frequency:e,...t})}),wt:Object.assign(b,{}),withParams:e2,synth:e=>Object.assign(e2(e.out,e.params),e.modules),op:t=>r=>t(e,r)};return Object.assign(y,{use:t=>{let r={};for(let a in t)r[a]=r=>t[a](e,r);return Object.assign(y,r)}})}(e)),e.__synthlet}function e2(e,t){return Object.assign(ez(e,Object.values(t)),function(e){let t={};if(e)for(let r in e)t[r]=e[r].input;return t}(t))}function e4(e,t){let r=e.dispose,a=!1;return e.dispose=()=>{a||(a=!0,r(),t.forEach(e=>{"dispose"in e&&e.dispose()}))},e}var e7=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(20,100,a.tone),o=r.conn.serial(r.conn.mix(r.osc.sin(r.env.ad(a.trigger,{attack:.1,decay:a.decay,offset:n,gain:50})),r.impulse.trigger(a.trigger)),r.amp.perc(a.trigger,.01,a.decay),r.clip.soft(5,.6));return r.withParams(o,a)},e5=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.conn.mixInto([r.osc.sin(100),r.osc.sin(200)],r.amp.perc(a.trigger,.01,a.decay)),o=r.conn.serial(r.noise.white(),r.amp.perc(a.trigger,.01,a.decay)),s=r.conn.mixInto([n,o],r.gain(a.volume));return r.withParams(s,a)},e9=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(2400,2500,a.tone),o=r.param.lin(1e3,3e3,a.tone);return r.withParams(r.conn.serial(r.osc.tri(n),r.amp.perc(a.trigger,.01,a.decay),r.bqf.bandpass(o),r.amp(a.volume)),a)},e3=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(8e3,12e3,a.tone),o=r.param.add(-2e3,n),s=r.conn([263,400,421,474,587,845].map(e=>r.osc.square(e)),r.amp(.3));return r.withParams(r.conn(s,r.bqf.bandpass(n),r.bqf.hi(o),r.amp.perc(a.trigger,.01,a.decay),r.gain(a.volume)),a)},e6=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),{trigger:a,decay:n,volume:o,tone:s}=tn(r,t),i=r.param.lin(700,900,s),l=r.param.lin(440,540,s),u=r.param.mul(.1,n),c=r.conn([r.conn.serial(r.osc.square(i),r.amp.perc(a,.001,n)),r.conn.serial(r.osc.square(l),r.amp.perc(a,.001,u))],r.amp(o));return r.withParams(c,{trigger:a,volume:o,tone:s,decay:n})},e8=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),{trigger:a,decay:n,volume:o,tone:s}=tn(r,t),i=r.param.lin(440,540,s),l=r.param.lin(600,1700,s),u=r.param.lin(2e3,5e3,s),c=r.param.mul(.5,n),p=r.param.mul(.2,n),d=r.param.mul(5,n),f=r.conn([263,400,421,474,587,845].map(e=>r.osc.square(e)),r.amp(.3)),m=r.conn([r.conn(f,r.bqf.lp(i),r.amp.perc(a,.001,c)),r.conn(f,r.bqf.bandpass(l),r.amp.perc(a,.001,p)),r.conn(f,r.bqf.hi(u),r.amp.perc(a,.001,d))],r.amp(o));return r.withParams(m,{trigger:a,volume:o,tone:s,decay:n})},te=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(4e3,6e3,a.tone),o=r.conn(r.noise.white(),r.bqf.hi(n),r.amp.perc(a.trigger,.02,a.decay),r.amp(a.volume));return r.withParams(o,a)},tt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(500,1500,a.tone),o=r.conn([r.conn(r.noise.white(),r.bqf.bandpass(n),r.amp.perc(a.trigger,.02,a.decay),r.gain(r.lfo.rampUp(100))),r.impulse.trigger(a.trigger)],r.clip.soft(2,.5),r.gain(a.volume));return r.withParams(o,a)},tr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(125,240,a.tone),o=r.conn([r.conn(r.osc.sin(n),r.amp.perc(a.trigger,.01,a.decay)),r.conn(r.impulse.trigger(a.trigger),r.gain(.3)),r.conn(r.noise.pink(),r.amp.perc(a.trigger,.01,a.decay))],r.amp(a.volume));return r.withParams(o,a)},ta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e1(e),a=tn(r,t),n=r.param.lin(220,455,a.tone),o=r.conn([r.conn(r.osc.sin(n),r.amp.perc(a.trigger,.001,a.decay)),r.conn(r.impulse.trigger(a.trigger),r.gain(.3))],r.amp(1));return r.withParams(o,a)};function tn(e){var t,r,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.param(n.trigger);return{trigger:o,decay:e.param(null!==(t=n.decay)&&void 0!==t?t:.5),volume:e.param.db(null!==(r=n.volume)&&void 0!==r?r:0),tone:e.param(null!==(a=n.tone)&&void 0!==a?a:.5)}}function to(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e1(e),n=a.param(r.gate),o=a.param.db(null!==(t=r.volume)&&void 0!==t?t:0),s=a.polyblep({frequency:r.frequency,...r.osc}),i=a.lfo({type:eN.Sine,gain:0,frequency:10});i.connect(s.frequency);let l=a.env.adsr(n,{gain:3e3,offset:2e3}),u=a.svf({frequency:l}),c=a.amp.adsr(n,{...r.amp});return a.synth({out:a.conn.serial(s,u,c,a.amp(o)),params:{gate:n,volume:o},modules:{osc:s,filterEnv:l,filter:u,amp:c,vibrato:i}})}function ts(e){return Promise.all([z(e),J(e),en(e),es(e),ei(e),ec(e),ef(e),em(e),eg(e),ev(e),ex(e),eD(e),ek(e),eO(e),eS(e),eO(e),eI(e),eZ(e)]).then(()=>e)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/[[...slug]]/page-7ee8e69a488f8f91.js b/_next/static/chunks/app/docs/[[...slug]]/page-7ee8e69a488f8f91.js deleted file mode 100644 index 74c5c8f..0000000 --- a/_next/static/chunks/app/docs/[[...slug]]/page-7ee8e69a488f8f91.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{280:function(e,n,s){Promise.resolve().then(s.bind(s,7897)),Promise.resolve().then(s.bind(s,1978)),Promise.resolve().then(s.bind(s,2954)),Promise.resolve().then(s.bind(s,1987)),Promise.resolve().then(s.bind(s,5778)),Promise.resolve().then(s.bind(s,7028)),Promise.resolve().then(s.bind(s,8682)),Promise.resolve().then(s.bind(s,5011)),Promise.resolve().then(s.bind(s,4951)),Promise.resolve().then(s.bind(s,2152)),Promise.resolve().then(s.bind(s,8773)),Promise.resolve().then(s.bind(s,4702)),Promise.resolve().then(s.bind(s,4901)),Promise.resolve().then(s.bind(s,2148)),Promise.resolve().then(s.bind(s,6683)),Promise.resolve().then(s.bind(s,432)),Promise.resolve().then(s.bind(s,6929)),Promise.resolve().then(s.bind(s,6975)),Promise.resolve().then(s.bind(s,5636)),Promise.resolve().then(s.bind(s,4791)),Promise.resolve().then(s.bind(s,630)),Promise.resolve().then(s.t.bind(s,2559,23)),Promise.resolve().then(s.t.bind(s,3403,23)),Promise.resolve().then(s.bind(s,9066)),Promise.resolve().then(s.bind(s,4804))}},function(e){e.O(0,[643,403,482,663,708,13,47,623,744],function(){return e(e.s=280)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/[[...slug]]/page-9e368e715115b7c3.js b/_next/static/chunks/app/docs/[[...slug]]/page-9e368e715115b7c3.js new file mode 100644 index 0000000..ca5d09f --- /dev/null +++ b/_next/static/chunks/app/docs/[[...slug]]/page-9e368e715115b7c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{2752:function(e,n,s){Promise.resolve().then(s.bind(s,7897)),Promise.resolve().then(s.bind(s,1978)),Promise.resolve().then(s.bind(s,2954)),Promise.resolve().then(s.bind(s,1987)),Promise.resolve().then(s.bind(s,5778)),Promise.resolve().then(s.bind(s,7028)),Promise.resolve().then(s.bind(s,8682)),Promise.resolve().then(s.bind(s,5011)),Promise.resolve().then(s.bind(s,4951)),Promise.resolve().then(s.bind(s,2152)),Promise.resolve().then(s.bind(s,1604)),Promise.resolve().then(s.bind(s,8773)),Promise.resolve().then(s.bind(s,4702)),Promise.resolve().then(s.bind(s,4901)),Promise.resolve().then(s.bind(s,2148)),Promise.resolve().then(s.bind(s,6683)),Promise.resolve().then(s.bind(s,432)),Promise.resolve().then(s.bind(s,6929)),Promise.resolve().then(s.bind(s,6975)),Promise.resolve().then(s.bind(s,5636)),Promise.resolve().then(s.bind(s,4791)),Promise.resolve().then(s.bind(s,630)),Promise.resolve().then(s.t.bind(s,2559,23)),Promise.resolve().then(s.t.bind(s,3403,23)),Promise.resolve().then(s.bind(s,9066)),Promise.resolve().then(s.bind(s,4804))}},function(e){e.O(0,[643,403,482,663,708,205,47,623,744],function(){return e(e.s=2752)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/layout-155e67df8f74940f.js b/_next/static/chunks/app/docs/layout-155e67df8f74940f.js deleted file mode 100644 index 69e264e..0000000 --- a/_next/static/chunks/app/docs/layout-155e67df8f74940f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{876:function(e,n,s){Promise.resolve().then(s.bind(s,7897)),Promise.resolve().then(s.bind(s,1978)),Promise.resolve().then(s.bind(s,2954)),Promise.resolve().then(s.bind(s,1987)),Promise.resolve().then(s.bind(s,5778)),Promise.resolve().then(s.bind(s,7028)),Promise.resolve().then(s.bind(s,8682)),Promise.resolve().then(s.bind(s,5011)),Promise.resolve().then(s.bind(s,4951)),Promise.resolve().then(s.bind(s,2152)),Promise.resolve().then(s.bind(s,8773)),Promise.resolve().then(s.bind(s,4702)),Promise.resolve().then(s.bind(s,4901)),Promise.resolve().then(s.bind(s,2148)),Promise.resolve().then(s.bind(s,6683)),Promise.resolve().then(s.bind(s,6305)),Promise.resolve().then(s.bind(s,1606)),Promise.resolve().then(s.bind(s,7520)),Promise.resolve().then(s.t.bind(s,3403,23)),Promise.resolve().then(s.bind(s,9066)),Promise.resolve().then(s.bind(s,4804))}},function(e){e.O(0,[643,403,482,663,41,93,13,47,623,744],function(){return e(e.s=876)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/layout-1b2b46740b89150f.js b/_next/static/chunks/app/docs/layout-1b2b46740b89150f.js new file mode 100644 index 0000000..7d0295d --- /dev/null +++ b/_next/static/chunks/app/docs/layout-1b2b46740b89150f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[998],{8560:function(e,n,s){Promise.resolve().then(s.bind(s,7897)),Promise.resolve().then(s.bind(s,1978)),Promise.resolve().then(s.bind(s,2954)),Promise.resolve().then(s.bind(s,1987)),Promise.resolve().then(s.bind(s,5778)),Promise.resolve().then(s.bind(s,7028)),Promise.resolve().then(s.bind(s,8682)),Promise.resolve().then(s.bind(s,5011)),Promise.resolve().then(s.bind(s,4951)),Promise.resolve().then(s.bind(s,2152)),Promise.resolve().then(s.bind(s,1604)),Promise.resolve().then(s.bind(s,8773)),Promise.resolve().then(s.bind(s,4702)),Promise.resolve().then(s.bind(s,4901)),Promise.resolve().then(s.bind(s,2148)),Promise.resolve().then(s.bind(s,6683)),Promise.resolve().then(s.bind(s,6305)),Promise.resolve().then(s.bind(s,1606)),Promise.resolve().then(s.bind(s,7520)),Promise.resolve().then(s.t.bind(s,3403,23)),Promise.resolve().then(s.bind(s,9066)),Promise.resolve().then(s.bind(s,4804))}},function(e){e.O(0,[643,403,482,663,41,93,205,47,623,744],function(){return e(e.s=8560)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/docs/ad-amp.html b/docs/ad-amp.html index 829a81f..91f0977 100644 --- a/docs/ad-amp.html +++ b/docs/ad-amp.html @@ -1,4 +1,4 @@ -AD Amplifier
Synthlet
Audio Modifiers

AD Amplifier

A VCA with an AD envelope

NPM Version

+AD Amplifier
Synthlet
Audio Modifiers

AD Amplifier

A VCA with an AD envelope

NPM Version

A Voltage Controlled Amplifier (VCA) module with an Attack-Decay envelope

Use it to add an percusive envelopes to the synth voices.

@@ -42,4 +42,4 @@

attack: 0.1, decay: 0.1, gain: 1, -});

On this page

\ No newline at end of file +});

On this page

\ No newline at end of file diff --git a/docs/ad-amp.txt b/docs/ad-amp.txt index 036cb6e..b21019e 100644 --- a/docs/ad-amp.txt +++ b/docs/ad-amp.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","ad-amp","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,16 +16,16 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","ad-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"ad-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","ad-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Image"] -1e:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -20:I[7897,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -23:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","ad-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"ad-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","ad-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Image"] +1e:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +20:I[7897,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +23:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"Package","url":"#package","depth":2} 18:["$19","$1a"] diff --git a/docs/ad.html b/docs/ad.html index 45300c5..fb8bd0f 100644 --- a/docs/ad.html +++ b/docs/ad.html @@ -1,4 +1,4 @@ -AD Envelope
Synthlet
Modulation Sources

AD Envelope

An Attack-Release exponential envelope generator

This is a one-stage envelope generator useful to create percusive sounds.

+AD Envelope
Synthlet
Modulation Sources

AD Envelope

An Attack-Release exponential envelope generator

This is a one-stage envelope generator useful to create percusive sounds.

Unlike ADSR, this envelope can finish before the gate is released.

On this page

\ No newline at end of file +

On this page

\ No newline at end of file diff --git a/docs/ad.txt b/docs/ad.txt index 421ceed..4a02f73 100644 --- a/docs/ad.txt +++ b/docs/ad.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","ad","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","ad","oc"],{"children":["__PAGE__?{\"slug\":[\"ad\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","ad","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1e:I[1987,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"AttackDecayExample"] -1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","ad","oc"],{"children":["__PAGE__?{\"slug\":[\"ad\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","ad","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1e:I[1987,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"AttackDecayExample"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 18:["$19"] 1d:T4dc,2:["$","$L16",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1b",null,{}],["$undefined",["$","h1",null,{"children":"AD Envelope","className":"text-3xl font-bold"}],["$","p",null,{"children":"An Attack-Release exponential envelope generator","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"This is a one-stage envelope generator useful to create percusive sounds."}],"\n",["$","p",null,{"children":"Unlike ADSR, this envelope can finish before the gate is released."}],"\n",["$","$L1c",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1d","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { AdEnv, registerAdWorklet } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" audioContext"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AudioContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"();"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"await"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" registerAdWorklet"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" ad"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AdEnv"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" attack: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" decay: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" gain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" osc"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" OscillatorNode"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"osc."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"start"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"();"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" amp"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" GainNode"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, { gain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" });"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"ad."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(amp.gain);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"ad.trigger.value "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}]]}]}],"\n",["$","$L1e",null,{}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"attack"}],": The attack time in seconds. Default is 0.1."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"decay"}],": The decay time in seconds. Default is 0.1."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"trigger"}],": The envelope trigger. 1 means start. You need to move the trigger back to 1 to restart the envelope."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"offset"}],": The offset of the envelope. Default is 0."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"gain"}],": The gain of the envelope. Default is 1."]}],"\n"]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L1f",null,{"items":"$undefined"}]]}]]}],["$","$L20",null,{"header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18"}]}]]}] diff --git a/docs/adsr-amp.html b/docs/adsr-amp.html index 16a62d6..65ddc8e 100644 --- a/docs/adsr-amp.html +++ b/docs/adsr-amp.html @@ -1,4 +1,4 @@ -ADSR Amplifier
Synthlet
Audio Modifiers

ADSR Amplifier

A Voltage Controlled Amplifier module

NPM Version

+ADSR Amplifier
Synthlet
Audio Modifiers

ADSR Amplifier

A Voltage Controlled Amplifier module

On this page

\ No newline at end of file +silence the output, set the offset to 0.

On this page

\ No newline at end of file diff --git a/docs/adsr-amp.txt b/docs/adsr-amp.txt index e87451a..d3b167e 100644 --- a/docs/adsr-amp.txt +++ b/docs/adsr-amp.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","adsr-amp","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,16 +16,16 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","adsr-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"adsr-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","adsr-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1c:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Image"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[1978,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","adsr-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"adsr-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","adsr-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1c:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Image"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[1978,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 18:["$19"] 1e:T4dc,2:["$","$L16",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1b",null,{}],["$undefined",["$","h1",null,{"children":"ADSR Amplifier","className":"text-3xl font-bold"}],["$","p",null,{"children":"A Voltage Controlled Amplifier module","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":["$","a",null,{"href":"https://www.npmjs.com/package/@synthlet/adsr","rel":"noreferrer noopener","target":"_blank","children":["$","$L1c",null,{"sizes":"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px","alt":"NPM Version","src":"https://img.shields.io/npm/v/@synthlet/adsr?label=@synthlet/adsr&color=%2322d3ee","width":"140","height":"20","className":"rounded-lg"}]}]}],"\n","\n",["$","p",null,{"children":"A Voltage Controlled Amplifier (VCA) module with an Attack-Decay-Sustain-Release (ADSR) envelope"}],"\n",["$","p",null,{"children":"Use it to add an envelope to the synth voices."}],"\n",["$","$L1d",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1e","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { AdsrAmp, OscillatorNode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" osc"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" OscillatorNode"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" frequency: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"440"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" vca"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AdsrAmp"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" gain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" attack: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" decay: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" sustain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" release: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Connect the oscillator to the VCA and to the output"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"osc."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(vca)."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext.destination);"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Start the envelope (start attack phase)"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"vca.gate.value "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Stop the envelope (start release phase)"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"vca.gate.value "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 0"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}]]}]}],"\n",["$","$L1f",null,{}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["Same as ",["$","$Lb",null,{"href":"/docs/modifiers/adsr","prefetch":"$undefined","replace":"$undefined","children":"adsr"}],":"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"attack"}],": The attack time in seconds. Default is 0.1."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"decay"}],": The decay time in seconds. Default is 0.1."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"sustain"}],": The sustain level. Default is 0.5."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"release"}],": The release time in seconds. Default is 0.1."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"offset"}],": The start offset. Default is 0."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"gain"}],": The gain. Default is 1. It is the maximum amplitude after the attach and affects the sustain level. For example, a gain of 100 and sustain of 0.5 will make the sustain level to be 50."]}],"\n"]}],"\n",["$","div",null,{"className":"my-6 flex flex-row gap-2 rounded-lg border bg-fd-card p-3 text-sm text-fd-card-foreground shadow-md","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-triangle-alert size-5 fill-orange-500 text-fd-card","children":[["$","path","wmoenq",{"d":"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["$","path","juzpu7",{"d":"M12 9v4"}],["$","path","p32p05",{"d":"M12 17h.01"}],"$undefined"]}],["$","div",null,{"className":"min-w-0 flex-1","children":[["$","p",null,{"className":"not-prose mb-2 font-medium","children":"Offset is silence"}],["$","div",null,{"className":"text-fd-muted-foreground prose-no-margin","children":["$","p",null,{"children":["The ADSR will output ",["$","code",null,{"children":"offset"}]," value when the gate is closed. If you want to\nsilence the output, set the ",["$","code",null,{"children":"offset"}]," to 0."]}]}]]}]]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L20",null,{"items":"$undefined"}]]}]]}],["$","$L21",null,{"header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18"}]}]]}] diff --git a/docs/adsr.html b/docs/adsr.html index 3939d1a..466f893 100644 --- a/docs/adsr.html +++ b/docs/adsr.html @@ -1,4 +1,4 @@ -ADSR Envelope
Synthlet
Modulation Sources

ADSR Envelope

An ADSR envelope generator module

This is an ADSR envelope generator module that can be used to modulate any other parameter.

+ADSR Envelope
Synthlet
Modulation Sources

ADSR Envelope

An ADSR envelope generator module

This is an ADSR envelope generator module that can be used to modulate any other parameter.

Is based on the code by Will Pirkle from his Synth Book.

Example

On this page

\ No newline at end of file +

On this page

\ No newline at end of file diff --git a/docs/adsr.txt b/docs/adsr.txt index cc5c2be..de32f4c 100644 --- a/docs/adsr.txt +++ b/docs/adsr.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","adsr","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,14 +16,14 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","adsr","oc"],{"children":["__PAGE__?{\"slug\":[\"adsr\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","adsr","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","adsr","oc"],{"children":["__PAGE__?{\"slug\":[\"adsr\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","adsr","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Example","url":"#example","depth":1} 1a:{"title":"Parameters","url":"#parameters","depth":4} 18:["$19","$1a"] diff --git a/docs/arp.html b/docs/arp.html index 73a41c3..f4b5922 100644 --- a/docs/arp.html +++ b/docs/arp.html @@ -1,4 +1,4 @@ -Arpeggiator
Synthlet
Sequencers

Arpeggiator

An arpeggiator module

Generates a note sequence from a given scale.

+Arpeggiator
Synthlet
Sequencers

Arpeggiator

An arpeggiator module

Generates a note sequence from a given scale.

Not arpeggiator

This module is WIP. Currently it only generates a random note from a given scale.

import { registerAllWorklets, ArpType, ArpScale } from "synthlet";
@@ -36,4 +36,4 @@ 

On this page

\ No newline at end of file +

On this page

\ No newline at end of file diff --git a/docs/arp.txt b/docs/arp.txt index 75f8516..1818b59 100644 --- a/docs/arp.txt +++ b/docs/arp.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","arp","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","arp","oc"],{"children":["__PAGE__?{\"slug\":[\"arp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","arp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[2954,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","arp","oc"],{"children":["__PAGE__?{\"slug\":[\"arp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","arp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[2954,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"Scales","url":"#scales","depth":2} 18:["$19","$1a"] diff --git a/docs/chorus-t.html b/docs/chorus-t.html index 967f129..42be570 100644 --- a/docs/chorus-t.html +++ b/docs/chorus-t.html @@ -1,4 +1,4 @@ -ChorusT
Synthlet
Effects

ChorusT

A chorus effect based on the TAL-Noisemaker one

A Chorus effect based on the TAL-Noisemaker that in turn models a Roland Juno-60 chorus.

+ChorusT
Synthlet
Effects

ChorusT

A chorus effect based on the TAL-Noisemaker one

A Chorus effect based on the TAL-Noisemaker that in turn models a Roland Juno-60 chorus.

On this page

\ No newline at end of file +

On this page

\ No newline at end of file diff --git a/docs/chorus-t.txt b/docs/chorus-t.txt index e82dbcd..0508aef 100644 --- a/docs/chorus-t.txt +++ b/docs/chorus-t.txt @@ -1,24 +1,24 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","chorus-t","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","chorus-t","oc"],{"children":["__PAGE__?{\"slug\":[\"chorus-t\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","chorus-t","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -13:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -17:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -18:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -19:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -1f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -20:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","chorus-t","oc"],{"children":["__PAGE__?{\"slug\":[\"chorus-t\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","chorus-t","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +13:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +17:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +18:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +19:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +1f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +20:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Parameters","url":"#parameters","depth":2} f:["$10"] 14:T4dc,2:["$","$Ld",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$Le",null,{"items":"$f","header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L12",null,{}],["$undefined",["$","h1",null,{"children":"ChorusT","className":"text-3xl font-bold"}],["$","p",null,{"children":"A chorus effect based on the TAL-Noisemaker one","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"A Chorus effect based on the TAL-Noisemaker that in turn models a Roland Juno-60 chorus."}],"\n",["$","$L13",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$14","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { ChorusT } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" osc"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" OscillatorNode"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" chorus"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ChorusT"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" rate: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" depth: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" feedback: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"osc."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(chorus)."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext.destination);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"chorus.lfoRate1.value "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 0.2"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}]]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"lfoRate1"}],": The rate of the first LFO in Hz. Default is 0.5"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"lfoRate2"}],": The rate of the second LFO in Hz. Default is 0.83"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"enable1"}],": Enable (1) or not (0) the first LFO. Default is 1 (enabled)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"enable2"}],": Enable (1) or not (0) the second LFO. Default is 1 (enabled)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"bypass"}],": Bypass the effect. Default is 0 (not bypassed)"]}],"\n"]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L15",null,{"items":"$undefined"}]]}]]}],["$","$L16",null,{"header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f"}]}]]}] diff --git a/docs/chorus.html b/docs/chorus.html index 8f57896..66ae4bf 100644 --- a/docs/chorus.html +++ b/docs/chorus.html @@ -1,4 +1,4 @@ -Chorus
Synthlet
Effects

Chorus

A chorus effect implemented in Faust

This is a mono-to-stereo chorus effect implemented in Faust and ported to the web.

+Chorus
Synthlet
Effects

Chorus

A chorus effect implemented in Faust

This is a mono-to-stereo chorus effect implemented in Faust and ported to the web.

import { Chorus } from "synthlet";
  
 const osc = new OscillatorNode(audioContext);
@@ -20,4 +20,4 @@ 

References

On this page

\ No newline at end of file +

On this page

\ No newline at end of file diff --git a/docs/chorus.txt b/docs/chorus.txt index 4ed1957..7d244ec 100644 --- a/docs/chorus.txt +++ b/docs/chorus.txt @@ -1,25 +1,25 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","chorus","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","chorus","oc"],{"children":["__PAGE__?{\"slug\":[\"chorus\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","chorus","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -14:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -16:I[5778,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -18:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -19:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -1a:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -1b:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -22:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","chorus","oc"],{"children":["__PAGE__?{\"slug\":[\"chorus\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","chorus","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +14:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +16:I[5778,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +18:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +19:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +1a:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +1b:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +22:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Parameters","url":"#parameters","depth":2} 11:{"title":"References","url":"#references","depth":2} f:["$10","$11"] diff --git a/docs/clip-amp.html b/docs/clip-amp.html index 2757f25..542cdf1 100644 --- a/docs/clip-amp.html +++ b/docs/clip-amp.html @@ -1,4 +1,4 @@ -Clip Amplifier
Synthlet
Audio Modifiers

Clip Amplifier

An two-gain stage amplifier with clipping

import { ClipAmp, registerClipAmpWorklet, ClipType } from "synthlet"; // or "@synthlet/clip-amp";
+Clip Amplifier
Synthlet
Audio Modifiers

Clip Amplifier

An two-gain stage amplifier with clipping

import { ClipAmp, registerClipAmpWorklet, ClipType } from "synthlet"; // or "@synthlet/clip-amp";
  
 const audioContext = new AudioContext();
 registerClipAmpWorklet(audioContext);
@@ -13,4 +13,4 @@ 

clipType: Clip type, currently only ClipType.Tanh, or ClipType.Bypass
  • preGain: Gain before clipping.
  • postGain: Gain after clipping.
  • -

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/clip-amp.txt b/docs/clip-amp.txt index 07cd1d4..a2a560f 100644 --- a/docs/clip-amp.txt +++ b/docs/clip-amp.txt @@ -1,24 +1,24 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","clip-amp","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","clip-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"clip-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","clip-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -13:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -17:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -18:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -19:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -1f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -20:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","clip-amp","oc"],{"children":["__PAGE__?{\"slug\":[\"clip-amp\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","clip-amp","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +13:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +17:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +18:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +19:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +1f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +20:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Parameters","url":"#parameters","depth":2} f:["$10"] 14:T4dc,2:["$","$Ld",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$Le",null,{"items":"$f","header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L12",null,{}],["$undefined",["$","h1",null,{"children":"Clip Amplifier","className":"text-3xl font-bold"}],["$","p",null,{"children":"An two-gain stage amplifier with clipping","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","$L13",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$14","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { ClipAmp, registerClipAmpWorklet, ClipType } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"; "}],["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// or \"@synthlet/clip-amp\";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" audioContext"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AudioContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"();"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"registerClipAmpWorklet"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" amp"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ClipAmp"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" clipType: ClipType.Tanh,"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" preGain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"3"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" postGain: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.3"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}]]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"clipType"}],": Clip type, currently only ",["$","code",null,{"children":"ClipType.Tanh"}],", or ",["$","code",null,{"children":"ClipType.Bypass"}]]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"preGain"}],": Gain before clipping."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"postGain"}],": Gain after clipping."]}],"\n"]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L15",null,{"items":"$undefined"}]]}]]}],["$","$L16",null,{"header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f"}]}]]}] diff --git a/docs/clock.html b/docs/clock.html index bc3e425..0203131 100644 --- a/docs/clock.html +++ b/docs/clock.html @@ -1,4 +1,4 @@ -Clock
    Synthlet
    Sequencers

    Clock

    A clock generator

    @synthlet/clock

    +Clock
    Synthlet
    Sequencers

    Clock

    A clock generator

    @synthlet/clock

    Generates a clock signal at a given tempo.

    import { registerClockWorklet, Clock } from "synthlet";
      
    @@ -18,4 +18,4 @@ 

    Parameters

    • bpm: beats per minute
    • -

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/clock.txt b/docs/clock.txt index f9a0674..517691d 100644 --- a/docs/clock.txt +++ b/docs/clock.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","clock","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","clock","oc"],{"children":["__PAGE__?{\"slug\":[\"clock\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","clock","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[7028,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","clock","oc"],{"children":["__PAGE__?{\"slug\":[\"clock\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","clock","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[7028,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Example","url":"#example","depth":2} 1a:{"title":"Parameters","url":"#parameters","depth":2} 18:["$19","$1a"] diff --git a/docs/dattorro.html b/docs/dattorro.html index f713c53..5a1ae8a 100644 --- a/docs/dattorro.html +++ b/docs/dattorro.html @@ -1,4 +1,4 @@ -Dattorro Reverb
    Synthlet
    Effects

    Dattorro Reverb

    A Dattorro reverb effect from Faust

    This is a port of the Dattorro reverb from Faust to the Web Audio API. All credits to Jakob Zerbian.

    +Dattorro Reverb
    Synthlet
    Effects

    Dattorro Reverb

    A Dattorro reverb effect from Faust

    This is a port of the Dattorro reverb from Faust to the Web Audio API. All credits to Jakob Zerbian.

    import { ClaveDrum, DattorroReverb, registerWorklets } from "synthlet";
      
     const audioContext = await registerWorklets(new AudioContext());
    @@ -13,4 +13,4 @@
     const clave = ClaveDrum(audioContext);
     clave.connect(reverb).connect(audioContext.destination);
     clave.trigger = 1;
    -

    On this page

    No Headings
    \ No newline at end of file +

    On this page

    No Headings
    \ No newline at end of file diff --git a/docs/dattorro.txt b/docs/dattorro.txt index 9c8211b..0d7d2e5 100644 --- a/docs/dattorro.txt +++ b/docs/dattorro.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","dattorro","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","dattorro","oc"],{"children":["__PAGE__?{\"slug\":[\"dattorro\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","dattorro","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1b:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1d:I[8682,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","dattorro","oc"],{"children":["__PAGE__?{\"slug\":[\"dattorro\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","dattorro","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1b:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1d:I[8682,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 18:[] 1c:T4dc,2:["$","$L16",null,{"toc":[],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L19",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1a",null,{}],["$undefined",["$","h1",null,{"children":"Dattorro Reverb","className":"text-3xl font-bold"}],["$","p",null,{"children":"A Dattorro reverb effect from Faust","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"This is a port of the Dattorro reverb from Faust to the Web Audio API. All credits to Jakob Zerbian."}],"\n",["$","$L1b",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1c","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { ClaveDrum, DattorroReverb, registerWorklets } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" audioContext"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" await"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" registerWorklets"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AudioContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"());"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" reverb"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" DattorroReverb"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" mix: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" time: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" decay: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" lowpass: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"20000"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" highpass: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"20"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" clave"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ClaveDrum"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"clave."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(reverb)."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext.destination);"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"clave.trigger "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}]]}]}],"\n",["$","$L1d",null,{}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L1e",null,{"items":"$undefined"}]]}]]}],["$","$L1f",null,{"header":"$undefined","footer":"$undefined","children":["$","$L19",null,{"items":"$18"}]}]]}] 15:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Dattorro Reverb"}],["$","meta","3",{"name":"description","content":"A Dattorro reverb effect from Faust"}],["$","meta","4",{"name":"next-size-adjust"}]] diff --git a/docs/dsl.html b/docs/dsl.html index e00fb77..5da780d 100644 --- a/docs/dsl.html +++ b/docs/dsl.html @@ -1,4 +1,4 @@ -Operators
    Synthlet

    Operators

    Using operators to create synths

    synthlet package exposes the audio modules with a set of operators that allow to create complex synths and comining them in a functional way.

    +Operators
    Synthlet

    Operators

    Using operators to create synths

    synthlet package exposes the audio modules with a set of operators that allow to create complex synths and comining them in a functional way.

    import { createOperators, registerAllWorklets } from "synthlet";
      
     const context = await registerAllWorklets(new AudioContext());
    @@ -69,4 +69,4 @@ 

  • env.adsr(gate, options?)
  • env.ad(trigger, options?)
  • -

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/dsl.txt b/docs/dsl.txt index 1350870..7804798 100644 --- a/docs/dsl.txt +++ b/docs/dsl.txt @@ -1,24 +1,24 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","dsl","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","dsl","oc"],{"children":["__PAGE__?{\"slug\":[\"dsl\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","dsl","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -23:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -25:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -26:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -27:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -28:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -29:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -2f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -30:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","dsl","oc"],{"children":["__PAGE__?{\"slug\":[\"dsl\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","dsl","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +23:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +25:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +26:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +27:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +28:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +29:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +2f:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +30:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Connecting and creating groups","url":"#connecting-and-creating-groups","depth":2} 11:{"title":"conn(...nodes[])","url":"#connnodes","depth":3} 12:{"title":"synth(node, params)","url":"#synthnode-params","depth":3} diff --git a/docs/euclid.html b/docs/euclid.html index 0b8f8f5..d795536 100644 --- a/docs/euclid.html +++ b/docs/euclid.html @@ -1,4 +1,4 @@ -Euclid
    Synthlet
    Sequencers

    Euclid

    An euclidean rhythm generator

    @synthlet/euclid

    +Euclid
    Synthlet
    Sequencers

    Euclid

    An euclidean rhythm generator

    @synthlet/euclid

    Generates an euclidean rhythm when connected to a clock:

    import {
       registerAllWorklets,
    @@ -27,4 +27,4 @@ 

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/euclid.txt b/docs/euclid.txt index e3f6332..7e3097f 100644 --- a/docs/euclid.txt +++ b/docs/euclid.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","euclid","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","euclid","oc"],{"children":["__PAGE__?{\"slug\":[\"euclid\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","euclid","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1e:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -20:I[4951,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","euclid","oc"],{"children":["__PAGE__?{\"slug\":[\"euclid\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","euclid","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1e:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +20:I[4951,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"Pattern","url":"#pattern","depth":4} 1b:{"title":"Clock","url":"#clock","depth":4} diff --git a/docs/guide.html b/docs/guide.html index 5830c6f..9e871b9 100644 --- a/docs/guide.html +++ b/docs/guide.html @@ -1,4 +1,4 @@ -Modules
    Synthlet

    Modules

    How to use Synthlet modules

    This guide will show you how to use the Synthlet modules.

    +Modules
    Synthlet

    Modules

    How to use Synthlet modules

    This guide will show you how to use the Synthlet modules.

    Create

    To create a module, you need to call the Module function that will return an instance of an AudioWorkletNode.

    The create function will take two arguments, the audioContext and an object with optional configuration and initial values of each parameter:

    @@ -66,4 +66,4 @@

    const audioContext = new audioContext(); await registerPolyblepOscillator(audioContext); -const node = PolyblepOscillator(audioContext, { frequency: 440 });

    On this page

    \ No newline at end of file +const node = PolyblepOscillator(audioContext, { frequency: 440 });

    On this page

    \ No newline at end of file diff --git a/docs/guide.txt b/docs/guide.txt index d0905b6..5498338 100644 --- a/docs/guide.txt +++ b/docs/guide.txt @@ -1,26 +1,26 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","guide","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","guide","oc"],{"children":["__PAGE__?{\"slug\":[\"guide\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","guide","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -18:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1a:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1b:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Tabs"] -1c:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Tab"] -1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -1f:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -20:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -27:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -28:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","guide","oc"],{"children":["__PAGE__?{\"slug\":[\"guide\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","guide","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +18:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1a:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1b:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Tabs"] +1c:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Tab"] +1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +1f:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +20:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +27:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +28:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Create","url":"#create","depth":2} 11:{"title":"Connect modules to the audio graph","url":"#connect-modules-to-the-audio-graph","depth":2} 12:{"title":"Parameters","url":"#parameters","depth":2} diff --git a/docs/impulse.html b/docs/impulse.html index d75cf5b..93084b6 100644 --- a/docs/impulse.html +++ b/docs/impulse.html @@ -1,4 +1,4 @@ -Impulse
    Synthlet
    Audio Sources

    Impulse

    Impuse generator

    @synthlet/impulse

    +Impulse
    Synthlet
    Audio Sources

    Impulse

    Impuse generator

    @synthlet/impulse

    This module generates an impulse when a gate is opened. Useful to generate a click sound.

    On this page

    \ No newline at end of file +

    Triggering

    the trigger value is 0, it needs to move back to 0 in order to trigger again.

    On this page

    \ No newline at end of file diff --git a/docs/impulse.txt b/docs/impulse.txt index 180edd3..f30556a 100644 --- a/docs/impulse.txt +++ b/docs/impulse.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","impulse","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","impulse","oc"],{"children":["__PAGE__?{\"slug\":[\"impulse\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","impulse","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[2152,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ImpulseExample"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","impulse","oc"],{"children":["__PAGE__?{\"slug\":[\"impulse\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","impulse","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[2152,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ImpulseExample"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Example","url":"#example","depth":2} 1a:{"title":"Parameters","url":"#parameters","depth":2} 18:["$19","$1a"] diff --git a/docs/index.html b/docs/index.html index 2e349f9..94b40da 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -Get started
    Synthlet

    Get started

    How to get started with Synthlet

    Synthlet is a collection of audio modules implemented as AudioWorkletNodes that you can use to create synthesizers and audio effects in the browser.

    +Get started
    Synthlet
    -

    Read more about how to use the operators in the operators guide.

    On this page

    \ No newline at end of file +

    Read more about how to use the operators in the operators guide.

    On this page

    \ No newline at end of file diff --git a/docs/ks.html b/docs/ks.html new file mode 100644 index 0000000..a14d3e8 --- /dev/null +++ b/docs/ks.html @@ -0,0 +1,20 @@ +Karplus-Strong
    Synthlet
    Audio Sources

    Karplus-Strong

    A Karplus-Strong source node

    @synthlet/karplus-strong

    + +

    A (currently) very simple Karplus-Strong source node:

    +
    import { registerKarplusStrongWorklet, KarplusStrong } from "synthlet";
    + 
    +const audioContext = new AudioContext();
    +await registerKarplusStrongWorklet(audioContext);
    + 
    +const osc = KarplusStrong(audioContext, {});
    +osc.connect(audioContext.destination);
    + 
    +// Trigger the source
    +osc.trigger.value = 1;
    +
    +

    Parameters

    +
      +
    • trigger: A trigger to start the sound (1 means start)
    • +
    • frequency: The frequency of the generated sound.
    • +
    • decay: The decay time of the generated sound.
    • +

    On this page

    \ No newline at end of file diff --git a/docs/ks.txt b/docs/ks.txt new file mode 100644 index 0000000..49f81cd --- /dev/null +++ b/docs/ks.txt @@ -0,0 +1,32 @@ +3:I[9909,[],""] +5:I[6649,[],""] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] +8:"$Sreact.suspense" +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] +14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] +4:["slug","ks","oc"] +f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] +e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} +11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] +10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} +d:["$e","$10"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","ks","oc"],{"children":["__PAGE__?{\"slug\":[\"ks\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","ks","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1e:I[1604,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +19:{"title":"Parameters","url":"#parameters","depth":2} +18:["$19"] +1d:T4dc,2:["$","$L16",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1b",null,{}],["$undefined",["$","h1",null,{"children":"Karplus-Strong","className":"text-3xl font-bold"}],["$","p",null,{"children":"A Karplus-Strong source node","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":["$","code",null,{"children":"@synthlet/karplus-strong"}]}],"\n","\n",["$","p",null,{"children":"A (currently) very simple Karplus-Strong source node:"}],"\n",["$","$L1c",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1d","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { registerKarplusStrongWorklet, KarplusStrong } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" audioContext"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AudioContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"();"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"await"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" registerKarplusStrongWorklet"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" osc"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" KarplusStrong"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {});"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"osc."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"connect"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext.destination);"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Trigger the source"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"osc.trigger.value "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 1"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}]]}]}],"\n",["$","$L1e",null,{}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"trigger"}],": A trigger to start the sound (1 means start)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"frequency"}],": The frequency of the generated sound."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"decay"}],": The decay time of the generated sound."]}],"\n"]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L1f",null,{"items":"$undefined"}]]}]]}],["$","$L20",null,{"header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18"}]}]]}] +15:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Karplus-Strong"}],["$","meta","3",{"name":"description","content":"A Karplus-Strong source node"}],["$","meta","4",{"name":"next-size-adjust"}]] +1:null diff --git a/docs/lfo.html b/docs/lfo.html index b9f42fc..5602762 100644 --- a/docs/lfo.html +++ b/docs/lfo.html @@ -1,4 +1,4 @@ -LFO
    Synthlet
    Modulation Sources

    LFO

    A Low Frequency Oscillator module

    import { Lfo } from "synthlet";
    +LFO
    Synthlet
    Modulation Sources

    LFO

    A Low Frequency Oscillator module

    import { Lfo } from "synthlet";
      
     const lfo = Lfo(audioContext, {
       frequency: 0.5,
    @@ -26,4 +26,4 @@ 

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/lfo.txt b/docs/lfo.txt index 56cad0c..7b9a419 100644 --- a/docs/lfo.txt +++ b/docs/lfo.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","lfo","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,14 +16,14 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","lfo","oc"],{"children":["__PAGE__?{\"slug\":[\"lfo\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","lfo","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","lfo","oc"],{"children":["__PAGE__?{\"slug\":[\"lfo\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","lfo","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Params","url":"#params","depth":2} 18:["$19"] 1d:T4dc,2:["$","$L16",null,{"toc":[{"title":"Params","url":"#params","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1b",null,{}],["$undefined",["$","h1",null,{"children":"LFO","className":"text-3xl font-bold"}],["$","p",null,{"children":"A Low Frequency Oscillator module","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","$L1c",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1d","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Lfo } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" lfo"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Lfo"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" frequency: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" type: LfoType.Sine,"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" amplitude: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" offset: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"0.5"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"});"}]}]]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"params","children":[["$","a",null,{"href":"#params","className":"peer","children":"Params"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"frequency"}],": the frequency of the oscillator in Hz. Default is 1Hz. Range: [0.01-100]"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"type"}],": the type of the oscillator. You can use ",["$","code",null,{"children":"LfoType"}]," enum. Default is ",["$","code",null,{"children":"LfoType.Sine"}],"."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"gain"}],": the amplitude of the oscillator. Default is 1. Range: [0-1]"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"offset"}],": the offset of the oscillator. Default is 0. Range: [-1,1]"]}],"\n"]}],"\n",["$","p",null,{"children":["Available waveform types (through ",["$","code",null,{"children":"LfoType"}]," enum) are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"0"}],": Zero"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"1"}],": Sine"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"2"}],": Triangle"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"3"}],": RampUp"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"4"}],": RampDown"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"5"}],": Square"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"6"}],": ExpRampUp"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"7"}],": ExpRampDown"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"8"}],": ExpTriangle"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"9"}],": RandSampleHold"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"10"}],": Impulse"]}],"\n"]}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L1e",null,{"items":"$undefined"}]]}]]}],["$","$L1f",null,{"header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18"}]}]]}] diff --git a/docs/noise.html b/docs/noise.html index d58abc0..f311a37 100644 --- a/docs/noise.html +++ b/docs/noise.html @@ -1,4 +1,4 @@ -Noise
    Synthlet
    Audio Sources

    Noise

    Noise

    @synthlet/noise

    +Noise
    Synthlet
    Audio Sources

    Noise

    Noise

    @synthlet/noise

    A Noise generator. Currently white and pink noise are supported.

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/noise.txt b/docs/noise.txt index 6e05947..ca2d462 100644 --- a/docs/noise.txt +++ b/docs/noise.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","noise","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","noise","oc"],{"children":["__PAGE__?{\"slug\":[\"noise\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","noise","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[4702,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","noise","oc"],{"children":["__PAGE__?{\"slug\":[\"noise\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","noise","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[4702,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"References","url":"#references","depth":2} 18:["$19","$1a"] diff --git a/docs/param.html b/docs/param.html index b9de46a..821b620 100644 --- a/docs/param.html +++ b/docs/param.html @@ -1,4 +1,4 @@ -Param
    Synthlet
    Modulation Sources

    Param

    Control parameters with unit conversion

    @synthlet/param

    +Param
    Synthlet
    Modulation Sources

    Param

    Control parameters with unit conversion

    @synthlet/param

    This module is used to control audio parameters from UI. It provides a way to convert values from different units, and aggregate multiple sources.

    On this page

    \ No newline at end of file +

    Other different values will be ignored and bypass will be used.

    On this page

    \ No newline at end of file diff --git a/docs/param.txt b/docs/param.txt index 89c2ff7..67f7377 100644 --- a/docs/param.txt +++ b/docs/param.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","param","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,14 +16,14 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","param","oc"],{"children":["__PAGE__?{\"slug\":[\"param\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","param","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","param","oc"],{"children":["__PAGE__?{\"slug\":[\"param\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","param","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1c:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1f:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 18:["$19"] 1d:T4dc,2:["$","$L16",null,{"toc":[{"title":"Parameters","url":"#parameters","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L17",null,{"items":"$18","header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L1b",null,{}],["$undefined",["$","h1",null,{"children":"Param","className":"text-3xl font-bold"}],["$","p",null,{"children":"Control parameters with unit conversion","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":["$","code",null,{"children":"@synthlet/param"}]}],"\n",["$","p",null,{"children":"This module is used to control audio parameters from UI. It provides a way to convert values from different units, and aggregate multiple sources."}],"\n",["$","$L1c",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","icon":"$1d","children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { registerParamWorklet, Param } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"synthlet\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":";"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" audioContext"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AudioContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"();"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"await"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" registerParamWorklet"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext);"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" param"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Param"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(audioContext, { input: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"10"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" });"}]]}]]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"parameters","children":[["$","a",null,{"href":"#parameters","className":"peer","children":"Parameters"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"scale"}],": scale conversion"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"input"}],": the input value"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"min"}],": the minimum value"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"max"}],": the maximum value"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"offset"}],": optional offset"]}],"\n"]}],"\n",["$","p",null,{"children":["The acceptes values for ",["$","code",null,{"children":"type"}]," are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":["0 ",["$","code",null,{"children":"ParamScaleType.Bypass"}]]}],"\n",["$","li",null,{"children":["1 ",["$","code",null,{"children":"ParamScaleType.DbToGain"}]]}],"\n",["$","li",null,{"children":["2 ",["$","code",null,{"children":"ParamScaleType.GainToDb"}]]}],"\n",["$","li",null,{"children":["3 ",["$","code",null,{"children":"ParamScaleType.Linear"}],": From [0,1] to [min,max]"]}],"\n"]}],"\n",["$","p",null,{"children":"Other different values will be ignored and bypass will be used."}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L1e",null,{"items":"$undefined"}]]}]]}],["$","$L1f",null,{"header":"$undefined","footer":"$undefined","children":["$","$L1a",null,{"items":"$18"}]}]]}] diff --git a/docs/polyblep.html b/docs/polyblep.html index ef9cbf8..613583d 100644 --- a/docs/polyblep.html +++ b/docs/polyblep.html @@ -1,4 +1,4 @@ -PolyBLEP Oscillator
    Synthlet
    Audio Sources

    PolyBLEP Oscillator

    An oscillator module implemened using PolyBLEP algorithm

    This module implements a synth oscillator. It's very similar to the native OscillatorNode found in Web Audio API. The difference is the implementation and, therefore, the sound.

    +PolyBLEP Oscillator
    Synthlet
    Audio Sources

    PolyBLEP Oscillator

    An oscillator module implemened using PolyBLEP algorithm

    This module implements a synth oscillator. It's very similar to the native OscillatorNode found in Web Audio API. The difference is the implementation and, therefore, the sound.

    The oscillator is implemented using the PolyBLEP algorithm. This algorithm is used to generate band-limited waveforms.

    import { PolyblepOscillator } from "synthlet";
      
    @@ -22,4 +22,4 @@ 

    References

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/polyblep.txt b/docs/polyblep.txt index 5e1d82f..23cbee1 100644 --- a/docs/polyblep.txt +++ b/docs/polyblep.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","polyblep","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","polyblep","oc"],{"children":["__PAGE__?{\"slug\":[\"polyblep\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","polyblep","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[4901,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","polyblep","oc"],{"children":["__PAGE__?{\"slug\":[\"polyblep\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","polyblep","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[4901,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +20:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"References","url":"#references","depth":2} 18:["$19","$1a"] diff --git a/docs/quick-start.html b/docs/quick-start.html index 2e349f9..94b40da 100644 --- a/docs/quick-start.html +++ b/docs/quick-start.html @@ -1,4 +1,4 @@ -Get started
    Synthlet

    Get started

    How to get started with Synthlet

    Synthlet is a collection of audio modules implemented as AudioWorkletNodes that you can use to create synthesizers and audio effects in the browser.

    +Get started
    Synthlet
    -

    Read more about how to use the operators in the operators guide.

    On this page

    \ No newline at end of file +

    Read more about how to use the operators in the operators guide.

    On this page

    \ No newline at end of file diff --git a/docs/quick-start.txt b/docs/quick-start.txt index 7237fa8..300735b 100644 --- a/docs/quick-start.txt +++ b/docs/quick-start.txt @@ -1,26 +1,26 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","quick-start","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","quick-start","oc"],{"children":["__PAGE__?{\"slug\":[\"quick-start\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","quick-start","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -16:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Tabs"] -17:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Tab"] -18:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -19:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -1c:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -23:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -24:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","quick-start","oc"],{"children":["__PAGE__?{\"slug\":[\"quick-start\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","quick-start","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +15:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +16:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Tabs"] +17:I[6929,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Tab"] +18:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +19:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +1c:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +23:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +24:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Install","url":"#install","depth":2} 11:{"title":"Register worklet processors","url":"#register-worklet-processors","depth":2} 12:{"title":"Create the first synth","url":"#create-the-first-synth","depth":2} diff --git a/docs/state-variable-filter.html b/docs/state-variable-filter.html index e16797d..cb66e5d 100644 --- a/docs/state-variable-filter.html +++ b/docs/state-variable-filter.html @@ -1,4 +1,4 @@ -State Variable Filter
    Synthlet
    Audio Modifiers

    State Variable Filter

    A resonant filter suitable for modulation

    NPM Version

    +State Variable Filter
    Synthlet
    Audio Modifiers

    State Variable Filter

    A resonant filter suitable for modulation

    NPM Version

    A filter implemented with a state variable filter algorithm suitable for modulation.

    import { Svf, SvfType } from "synthlet";
    @@ -47,4 +47,4 @@ 

    Digital State Variable Filters by Fons Adriaensen
  • State Variable Filters by Julius O. Smith III
  • Solving continuous SVF equations using trapezoidal integration by Andrew Simper (Cytomic)
  • -

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/state-variable-filter.txt b/docs/state-variable-filter.txt index 58a731d..6667121 100644 --- a/docs/state-variable-filter.txt +++ b/docs/state-variable-filter.txt @@ -1,26 +1,26 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","state-variable-filter","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","state-variable-filter","oc"],{"children":["__PAGE__?{\"slug\":[\"state-variable-filter\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","state-variable-filter","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -15:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Image"] -16:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -18:I[2148,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -1b:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -1c:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -23:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -24:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","state-variable-filter","oc"],{"children":["__PAGE__?{\"slug\":[\"state-variable-filter\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","state-variable-filter","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +15:I[2559,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Image"] +16:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +18:I[2148,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +19:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1a:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +1b:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +1c:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +23:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +24:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"What","url":"#what","depth":2} 11:{"title":"Parameters","url":"#parameters","depth":2} 12:{"title":"References","url":"#references","depth":2} diff --git a/docs/synths.html b/docs/synths.html index 906eaca..563213a 100644 --- a/docs/synths.html +++ b/docs/synths.html @@ -1,4 +1,4 @@ -Synths
    Synthlet

    Synths

    Available built-in synthesizers

    Some synthesizers are provided for convenience. They are implemented by connecting different modules together.

    +Synths
    Synthlet

    Synths

    Available built-in synthesizers

    Some synthesizers are provided for convenience. They are implemented by connecting different modules together.

    Mono synthesizer

    A monophonic synthesizer with a single PolyBLEP oscillator and an ADSR envelope on the filter and amplifier.

    import { registerAllWorklets, MonoSynth } from "synthlet";
    @@ -53,4 +53,4 @@ 

    HandclapDrum
  • TomDrum
  • CongaDrum
  • -

    On this page

    \ No newline at end of file +

    On this page

    \ No newline at end of file diff --git a/docs/synths.txt b/docs/synths.txt index 476919b..d74b510 100644 --- a/docs/synths.txt +++ b/docs/synths.txt @@ -1,26 +1,26 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","synths","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","synths","oc"],{"children":["__PAGE__?{\"slug\":[\"synths\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","synths","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -18:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1a:I[8773,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -1c:I[5011,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -1f:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -20:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -27:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -28:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","synths","oc"],{"children":["__PAGE__?{\"slug\":[\"synths\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","synths","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +16:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +18:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1a:I[8773,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +1c:I[5011,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +1d:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +1e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +1f:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +20:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +21:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +27:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +28:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"Mono synthesizer","url":"#mono-synthesizer","depth":2} 11:{"title":"Parameters","url":"#parameters","depth":3} 12:{"title":"Modules","url":"#modules","depth":3} diff --git a/docs/troubleshoo.html b/docs/troubleshoo.html index 521f613..a8d9346 100644 --- a/docs/troubleshoo.html +++ b/docs/troubleshoo.html @@ -1,2 +1,2 @@ -Troubleshooting
    Synthlet

    On this page

    \ No newline at end of file +Troubleshooting
    Synthlet

    On this page

    \ No newline at end of file diff --git a/docs/troubleshoo.txt b/docs/troubleshoo.txt index 244186f..e0d9e47 100644 --- a/docs/troubleshoo.txt +++ b/docs/troubleshoo.txt @@ -1,23 +1,23 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] b:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","troubleshoo","oc"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","troubleshoo","oc"],{"children":["__PAGE__?{\"slug\":[\"troubleshoo\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","troubleshoo","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] -d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] -15:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -16:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -17:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -1e:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","troubleshoo","oc"],{"children":["__PAGE__?{\"slug\":[\"troubleshoo\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","troubleshoo","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],"$La"]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$Lb",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$Lc"]]]]] +d:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +e:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +11:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +12:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +13:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +14:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] +15:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +16:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +17:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +1d:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +1e:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 10:{"title":"I can't hear anything","url":"#i-cant-hear-anything","depth":2} f:["$10"] 2:["$","$Ld",null,{"toc":[{"title":"I can't hear anything","url":"#i-cant-hear-anything","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$Le",null,{"items":"$f","header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L12",null,{}],["$undefined",["$","h1",null,{"children":"Troubleshooting","className":"text-3xl font-bold"}],["$","p",null,{"children":"What to do when something is wrong...","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"i-cant-hear-anything","children":[["$","a",null,{"href":"#i-cant-hear-anything","className":"peer","children":"I can't hear anything"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":"First step is open the developer console."}]]}]],["$","div",null,{"className":"mt-auto"}],null,["$","$L13",null,{"items":"$undefined"}]]}]]}],["$","$L14",null,{"header":"$undefined","footer":"$undefined","children":["$","$L11",null,{"items":"$f"}]}]]}] diff --git a/docs/wavetable.html b/docs/wavetable.html index 6326643..9e6844d 100644 --- a/docs/wavetable.html +++ b/docs/wavetable.html @@ -1,4 +1,4 @@ -Wavetable Oscillator
    Synthlet
    Audio Sources

    Wavetable Oscillator

    A morphing wavetable oscillator

    @synthlet/wavetable-oscillator

    +Wavetable Oscillator
    Synthlet
    Audio Sources

    Wavetable Oscillator

    A morphing wavetable oscillator

    @synthlet/wavetable-oscillator

    This module implements a wavetable oscillator with morphing compatible with WaveEdit Online wavetable format.

    import {
    @@ -41,4 +41,4 @@ 

    const wavetable = await loadWavetable(audioContext, "SYNLP10"); osc.setWavetable(wavetable);

    -

    Wavetables are stored at smpldsnds wavedit repository. The list of available tables is here

    On this page

    \ No newline at end of file +

    Wavetables are stored at smpldsnds wavedit repository. The list of available tables is here

    On this page

    \ No newline at end of file diff --git a/docs/wavetable.txt b/docs/wavetable.txt index ea2494c..9acea8d 100644 --- a/docs/wavetable.txt +++ b/docs/wavetable.txt @@ -1,14 +1,14 @@ 3:I[9909,[],""] 5:I[6649,[],""] -6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"TreeContextProvider"] -7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SubNav"] +6:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"TreeContextProvider"] +7:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SubNav"] 8:"$Sreact.suspense" -9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"PreloadCss"] -a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"DynamicSidebar",1] -b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],""] -c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"LinksMenu"] -12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"ThemeToggle"] -13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"SidebarCollapseTrigger"] +9:I[4804,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"PreloadCss"] +a:I[7520,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"DynamicSidebar",1] +b:I[3403,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],""] +c:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"LinksMenu"] +12:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"ThemeToggle"] +13:I[1606,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"SidebarCollapseTrigger"] 14:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:["slug","wavetable","oc"] f:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}] @@ -16,15 +16,15 @@ e:{"text":"Repository","icon":"$f","url":"https://github.com/danigb/synthlet"} 11:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}] 10:{"text":"Documentation","icon":"$11","url":"/docs","active":"nested-url"} d:["$e","$10"] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["docs",{"children":[["slug","wavetable","oc"],{"children":["__PAGE__?{\"slug\":[\"wavetable\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","wavetable","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"Impulse","url":"/docs/impulse"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] -16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"AnchorProvider"] -17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TocPopover"] -1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"TOCItems"] -1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Breadcrumb"] -1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Pre"] -1f:I[6683,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","13","static/chunks/13-cace8c72f81b85be.js","998","static/chunks/app/docs/layout-155e67df8f74940f.js"],"default"] -21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Footer"] -22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","13","static/chunks/13-cace8c72f81b85be.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-7ee8e69a488f8f91.js"],"Toc"] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["docs",{"children":[["slug","wavetable","oc"],{"children":["__PAGE__?{\"slug\":[\"wavetable\"]}",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":[["slug","wavetable","oc"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"tree":{"name":"Documentation","children":[{"type":"page","name":"Get started","url":"/docs/quick-start"},{"type":"page","name":"Modules","url":"/docs/guide"},{"type":"page","name":"Operators","url":"/docs/dsl"},{"type":"page","name":"Synths","url":"/docs/synths"},{"type":"separator","name":"Available Modules"},{"type":"folder","name":"Audio Sources","defaultOpen":true,"children":[{"type":"page","name":"Impulse","url":"/docs/impulse"},{"type":"page","name":"Karplus-Strong","url":"/docs/ks"},{"type":"page","name":"Noise","url":"/docs/noise"},{"type":"page","name":"PolyBLEP Oscillator","url":"/docs/polyblep"},{"type":"page","name":"Wavetable Oscillator","url":"/docs/wavetable"}]},{"type":"folder","name":"Audio Modifiers","defaultOpen":true,"children":[{"type":"page","name":"AD Amplifier","url":"/docs/ad-amp"},{"type":"page","name":"ADSR Amplifier","url":"/docs/adsr-amp"},{"type":"page","name":"Clip Amplifier","url":"/docs/clip-amp"},{"type":"page","name":"State Variable Filter","url":"/docs/state-variable-filter"}]},{"type":"folder","name":"Modulation Sources","defaultOpen":true,"children":[{"type":"page","name":"AD Envelope","url":"/docs/ad"},{"type":"page","name":"ADSR Envelope","url":"/docs/adsr"},{"type":"page","name":"LFO","url":"/docs/lfo"},{"type":"page","name":"Param","url":"/docs/param"}]},{"type":"folder","name":"Sequencers","defaultOpen":true,"children":[{"type":"page","name":"Arpeggiator","url":"/docs/arp"},{"type":"page","name":"Clock","url":"/docs/clock"},{"type":"page","name":"Euclid","url":"/docs/euclid"}]},{"type":"folder","name":"Effects","defaultOpen":true,"children":[{"type":"page","name":"Chorus","url":"/docs/chorus"},{"type":"page","name":"ChorusT","url":"/docs/chorus-t"},{"type":"page","name":"Dattorro Reverb","url":"/docs/dattorro"}]}]},"children":[["$","$L7",null,{"title":"Synthlet"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$8",null,{"fallback":null,"children":[["$","$L9",null,{"moduleIds":["node_modules/.pnpm/fumadocs-ui@13.4.4_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.7_react-dom@18.3.1_r_f4jiw4x4zirzhraa45mgagklli/node_modules/fumadocs-ui/dist/layout.js -> ./dynamic-sidebar-JFB3Z7SK.js"]}],["$","$La",null,{"items":[{"text":"Repository","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-github","children":[["$","path","tonef",{"d":"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["$","path","9comsn",{"d":"M9 18c-4.51 2-5-2-7-2"}],"$undefined"]}],"url":"https://github.com/danigb/synthlet"},{"text":"Documentation","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"url":"/docs","active":"nested-url"}],"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$Lb","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"Synthlet"}],["$","$Lc","links",{"items":"$d","className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],"$undefined"],"bannerProps":{"className":"max-md:hidden"},"footer":["$undefined",[["$","$L12","theme",{}],["$","$L13","sidebar",{}]]]}]]}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]}]]}],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L15"]]]]] +16:I[432,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"AnchorProvider"] +17:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TocPopover"] +1b:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"TOCItems"] +1c:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Breadcrumb"] +1d:I[5636,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Pre"] +1f:I[6683,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","41","static/chunks/41-b3d1c92543b89510.js","93","static/chunks/93-f29b5b850c8d7aea.js","205","static/chunks/205-457e9c6d9d25f104.js","998","static/chunks/app/docs/layout-1b2b46740b89150f.js"],"default"] +21:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Footer"] +22:I[4791,["643","static/chunks/643-4b3fcb1a0023e64c.js","403","static/chunks/403-1603305b8263b3a3.js","482","static/chunks/482-efe42d01a4b41476.js","663","static/chunks/663-42b027928fba5ede.js","708","static/chunks/708-bea52c8d029c436b.js","205","static/chunks/205-457e9c6d9d25f104.js","189","static/chunks/app/docs/%5B%5B...slug%5D%5D/page-9e368e715115b7c3.js"],"Toc"] 19:{"title":"Parameters","url":"#parameters","depth":2} 1a:{"title":"Loading wavetables","url":"#loading-wavetables","depth":2} 18:["$19","$1a"] diff --git a/index.html b/index.html index f3e18c1..74bbbe5 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -

    Synthlet

    Modular synthesis in your browser

    You can open docs/ and see the documentation.

    \ No newline at end of file +

    Synthlet

    Modular synthesis in your browser

    You can open docs/ and see the documentation.

    \ No newline at end of file diff --git a/index.txt b/index.txt index 5858ea5..2d1f8b0 100644 --- a/index.txt +++ b/index.txt @@ -2,6 +2,6 @@ 3:I[4341,["482","static/chunks/482-efe42d01a4b41476.js","41","static/chunks/41-b3d1c92543b89510.js","185","static/chunks/app/layout-71567f95c66b6297.js"],"RootProvider"] 4:I[9909,[],""] 5:I[6649,[],""] -0:["PQyO1LBxNzTA8qq9LWefV",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","main",null,{"className":"flex h-screen flex-col justify-center text-center","children":[["$","h1",null,{"className":"text-2xl font-bold","children":"Synthlet"}],["$","p",null,{"className":"mb-4 opacity-75 italic","children":"Modular synthesis in your browser"}],["$","p",null,{"className":"text-fd-muted-foreground","children":["You can open"," ",["$","$L2",null,{"href":"/docs/quick-start","className":"text-fd-foreground font-semibold underline","children":"docs/"}]," ","and see the documentation."]}]]}]],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L6"]]]]] +0:["AHEqoYS5YYaainxerm8YO",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","main",null,{"className":"flex h-screen flex-col justify-center text-center","children":[["$","h1",null,{"className":"text-2xl font-bold","children":"Synthlet"}],["$","p",null,{"className":"mb-4 opacity-75 italic","children":"Modular synthesis in your browser"}],["$","p",null,{"className":"text-fd-muted-foreground","children":["You can open"," ",["$","$L2",null,{"href":"/docs/quick-start","className":"text-fd-foreground font-semibold underline","children":"docs/"}]," ","and see the documentation."]}]]}]],null],null]},[["$","html",null,{"lang":"en","className":"__className_8c340a","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/synthlet/_next/static/css/6ae85df196d35776.css","precedence":"next","crossOrigin":"$undefined"}]],[null,"$L6"]]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] 1:null