faustwave 0.94.0 → 0.95.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +4 -8
  2. package/dist/npm/faustwave.mjs +17 -53
  3. package/dist/npm/page/assets/{index-BPO9trAg.css → index-D1USQuiC.css} +1 -1
  4. package/dist/npm/page/assets/{index-DyOBLoeh.js → index-idBrq71K.js} +1 -1
  5. package/dist/npm/page/files.json +1 -1
  6. package/dist/npm/page/index.html +2 -2
  7. package/package.json +57 -58
  8. package/dist/npm/pagekit/pagekit.js +0 -2347
  9. package/dist/npm/pagekit/parts/device-button.glb +0 -0
  10. package/dist/npm/pagekit/parts/device-fader.glb +0 -0
  11. package/dist/npm/pagekit/parts/device-knob.glb +0 -0
  12. package/dist/npm/pagekit/parts/device-meter.glb +0 -0
  13. package/dist/npm/pagekit/parts/device-panel.glb +0 -0
  14. package/dist/npm/pagekit/parts/models-provenance.json +0 -46
  15. package/dist/npm/pagekit/player/THIRD-PARTY-NOTICES.md +0 -12358
  16. package/dist/npm/pagekit/player/assets/AppView-BV9Obknn.js +0 -1
  17. package/dist/npm/pagekit/player/assets/AppView-CdET0bgZ.css +0 -1
  18. package/dist/npm/pagekit/player/assets/FontLoader-C8xh6Irz.js +0 -64
  19. package/dist/npm/pagekit/player/assets/StageView-CSu--ASd.css +0 -1
  20. package/dist/npm/pagekit/player/assets/StageView-_SwGWnwx.js +0 -1
  21. package/dist/npm/pagekit/player/assets/actionRegistry-DrQhww6a.js +0 -1
  22. package/dist/npm/pagekit/player/assets/actionRegistry-hOkUYNvI.js +0 -1
  23. package/dist/npm/pagekit/player/assets/ahead-BNQHG1e8.js +0 -1
  24. package/dist/npm/pagekit/player/assets/api-BrGhAVvb.js +0 -1
  25. package/dist/npm/pagekit/player/assets/autoLayout-C5ue2K3x.js +0 -1
  26. package/dist/npm/pagekit/player/assets/bundledSources-2GoXdU5z.js +0 -1
  27. package/dist/npm/pagekit/player/assets/clapModule-CB6_36hc.js +0 -1
  28. package/dist/npm/pagekit/player/assets/client-DksDHYQL.js +0 -1
  29. package/dist/npm/pagekit/player/assets/codeEditorBridge-Bl202hrO.js +0 -1
  30. package/dist/npm/pagekit/player/assets/disclose-version-BvIhFN19.js +0 -1
  31. package/dist/npm/pagekit/player/assets/dist-BvRk9kiK.js +0 -0
  32. package/dist/npm/pagekit/player/assets/dist-DfaMbR-1.js +0 -1
  33. package/dist/npm/pagekit/player/assets/engine.worklet-BTB8yjdk.js +0 -1865
  34. package/dist/npm/pagekit/player/assets/engineCost.worker-Cv0PY3S-.js +0 -2167
  35. package/dist/npm/pagekit/player/assets/errors-BdUU2zPt.js +0 -1
  36. package/dist/npm/pagekit/player/assets/faust-analysis.nodepack-Bg1ixSAB.js +0 -1
  37. package/dist/npm/pagekit/player/assets/faust-physical-models.nodepack-DxbqTZII.js +0 -1
  38. package/dist/npm/pagekit/player/assets/faust-reverbs.nodepack-c-ZIKLrJ.js +0 -1
  39. package/dist/npm/pagekit/player/assets/faust-spatial.nodepack-C6GwVzOM.js +0 -1
  40. package/dist/npm/pagekit/player/assets/faust-vintage.nodepack-D8g5LX-U.js +0 -1
  41. package/dist/npm/pagekit/player/assets/faust.nodepack-Do7P1z0H.js +0 -1
  42. package/dist/npm/pagekit/player/assets/faustSource-Blr9zzKL.js +0 -1
  43. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-BX3OrOpF.js +0 -1
  44. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-Drn3DiHA.wasm +0 -0
  45. package/dist/npm/pagekit/player/assets/faustwasm.js +0 -1
  46. package/dist/npm/pagekit/player/assets/faustwave-conventions.nodepack-D2jA38Q6.js +0 -1
  47. package/dist/npm/pagekit/player/assets/fileMirror-CkgB9zNS.js +0 -1
  48. package/dist/npm/pagekit/player/assets/fileRef-BmnWhXuY.js +0 -1
  49. package/dist/npm/pagekit/player/assets/host-DPIuYxlL.js +0 -1
  50. package/dist/npm/pagekit/player/assets/instantiate-Dh0T46aH.js +0 -1
  51. package/dist/npm/pagekit/player/assets/inter-500.typeface-B6jxeZL_.js +0 -21
  52. package/dist/npm/pagekit/player/assets/inter-700.typeface-COCE0d_R.js +0 -21
  53. package/dist/npm/pagekit/player/assets/kernel-BErAMnKr.js +0 -1
  54. package/dist/npm/pagekit/player/assets/kernel-D6spGIFh.js +0 -1
  55. package/dist/npm/pagekit/player/assets/kernel-DKiI3Wqx.js +0 -2
  56. package/dist/npm/pagekit/player/assets/kit--nsV_OZy.js +0 -1
  57. package/dist/npm/pagekit/player/assets/kit-vVQ5cDnW.css +0 -1
  58. package/dist/npm/pagekit/player/assets/lazy-BkjipY-3.css +0 -1
  59. package/dist/npm/pagekit/player/assets/lazy-ClEpU-Ev.js +0 -1
  60. package/dist/npm/pagekit/player/assets/libraryFacts-B_z-Kv6i.js +0 -1
  61. package/dist/npm/pagekit/player/assets/mono-500.typeface-CuX9Pbhu.js +0 -21
  62. package/dist/npm/pagekit/player/assets/mono-700.typeface-BpIQdJao.js +0 -21
  63. package/dist/npm/pagekit/player/assets/newId-DuoSrkVn.js +0 -1
  64. package/dist/npm/pagekit/player/assets/notes-D-zF5qJ1.js +0 -1
  65. package/dist/npm/pagekit/player/assets/opfsStore-CXd1Yz_2.js +0 -1
  66. package/dist/npm/pagekit/player/assets/panic-ckha9YOX.js +0 -1
  67. package/dist/npm/pagekit/player/assets/patchSnippets-Dsccmpj6.js +0 -1
  68. package/dist/npm/pagekit/player/assets/paths-DFjX1bFA.js +0 -1
  69. package/dist/npm/pagekit/player/assets/player-CgcvekqS.js +0 -2
  70. package/dist/npm/pagekit/player/assets/playerApp-BmyTSXxw.js +0 -2
  71. package/dist/npm/pagekit/player/assets/playerApp-DO80EIpx.css +0 -1
  72. package/dist/npm/pagekit/player/assets/preArm-ifXM2Buj.js +0 -1
  73. package/dist/npm/pagekit/player/assets/preload-helper-9MKZsTCd.js +0 -1
  74. package/dist/npm/pagekit/player/assets/projectFiles-BEdLy3nE.js +0 -1
  75. package/dist/npm/pagekit/player/assets/projectPicker-mteZ2tiI.js +0 -1
  76. package/dist/npm/pagekit/player/assets/rocket-CgRnlVoE.js +0 -1
  77. package/dist/npm/pagekit/player/assets/runtime-36oA_YiG.js +0 -1
  78. package/dist/npm/pagekit/player/assets/runtime-7lvdeERt.js +0 -1
  79. package/dist/npm/pagekit/player/assets/runtime-BNLxaYPi.js +0 -2
  80. package/dist/npm/pagekit/player/assets/runtime-CL1M0Epi.js +0 -1
  81. package/dist/npm/pagekit/player/assets/runtime-bQsuRbRM.js +0 -2
  82. package/dist/npm/pagekit/player/assets/runtime-vj8wKnnG.js +0 -1
  83. package/dist/npm/pagekit/player/assets/runtime-wuc1seO8.js +0 -1
  84. package/dist/npm/pagekit/player/assets/scale-D2nqiPek.js +0 -1
  85. package/dist/npm/pagekit/player/assets/sha256-B9lHpAF4.js +0 -1
  86. package/dist/npm/pagekit/player/assets/soundfiles-DMZ8HKDZ.js +0 -1
  87. package/dist/npm/pagekit/player/assets/src-BvHr5YSH.js +0 -2
  88. package/dist/npm/pagekit/player/assets/src-Co7ihhBK.js +0 -1
  89. package/dist/npm/pagekit/player/assets/src-DyDfRe65.js +0 -1
  90. package/dist/npm/pagekit/player/assets/src-LMfGAjlj.js +0 -1
  91. package/dist/npm/pagekit/player/assets/stageWorker-ggqqFf5m.js +0 -20869
  92. package/dist/npm/pagekit/player/assets/store-CJdayqZa.js +0 -1
  93. package/dist/npm/pagekit/player/assets/sun-Bi-OgPry.js +0 -1
  94. package/dist/npm/pagekit/player/assets/time-aboh42pX.js +0 -1
  95. package/dist/npm/pagekit/player/assets/toasts-BCcM1yGS.js +0 -1
  96. package/dist/npm/pagekit/player/assets/toasts-ChPacqdd.js +0 -1
  97. package/dist/npm/pagekit/player/assets/transportFollow-Ox91SKLF.js +0 -1
  98. package/dist/npm/pagekit/player/favicon.svg +0 -77
  99. package/dist/npm/pagekit/player/files.json +0 -1
  100. package/dist/npm/pagekit/player/player.html +0 -35
@@ -1 +0,0 @@
1
- var t=class extends Error{what;id;constructor(t,n,r){super(`No ${t} "${n}"${r?r.length?` — known: ${r.join(", ")}`:" — there are none":""}.`),this.what=t,this.id=n,this.name="NotFound"}},n=class extends Error{constructor(t){super(t),this.name="ActionRefusal"}};function r(t){throw new n(t)}export{t as n,r,n as t};
@@ -1 +0,0 @@
1
- var e={packId:"faust-analysis",title:"Faust Analysis & Visualization",version:10,ownerHandle:"faustwave",description:"Audio analysis and visualization Kinds — multi-band spectrum displays, FFT, stereo phase / mid-side goniometer, true-peak with hold, dual-tau RMS, single-frequency Goertzel detector, bass analyzer (BS.1770 momentary loudness, crest, six band shares, per-band correlation — the live half of the analysis.* actions). All Kinds use Faust's analyzers.lib primitives. Each is audio-passthrough plus internal bargraph display + optional control outputs for piping the measurements into other patches. First pack in the Multi-Pack-Architecture roadmap (see docs/NODE-PACK-ARCHITECTURE-ZIEL.md). Use prefix `analysis_*` for kind ids to keep this pack's surface distinct from the kernel `faust` pack. Bundled with the IDE; auto-restored on first launch. Uninstall safely; restore via Settings or node_pack_restore_bundled.",kinds:[{kind:"analysis_spectrum_octave",wraps:["an.mth_octave_spectral_level6e"],label:"Spectrum (Octave)",category:"Analyzers",description:"10-band octave spectrum analyzer (analyzers.lib an.mth_octave_spectral_level6e). Splits the input into 10 logarithmically-spaced bands spanning 8 octaves below 8000 Hz and displays each band's dB level as an internal vbargraph strip labeled 'Constant-Q Spectrum Analyzer 6E'. Audio passes through unchanged. The Smoothing param (tau in ms) controls the averaging window — longer = smoother display but less responsive to transients. White / pink noise produces a characteristic flat / -3dB-per-octave reference shape useful for room tuning, mix balance check, master-bus visual reference.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"tau_ms",label:"Smoothing",init:50,min:5,max:500,step:.1,unit:"ms"}],toBox:{outputs:{out:"seq(input('in'), lib('an', 'mth_octave_spectral_level6e', int(1), int(8000), int(10), over(param('tau_ms'), real(1000)), int(0)))"}}},{kind:"analysis_fft_256",wraps:["an.rfft_spectral_level"],label:"Spectrum (FFT 256)",category:"Analyzers",description:"Live FFT spectrum display (analyzers.lib an.rfft_spectral_level). 256-point real-input FFT produces 129 frequency bins (DC to Nyquist) shown as vbargraphs in a 'FFT Spectrum Analyzer 256 bands' group. Bin spacing at SR=44.1 kHz is ~172 Hz. Per-bin dB level smoothed with the Smoothing param (tau in ms). DISPLAY-ONLY: no control outputs for individual bins — that would be 129 control wires per Kind which is unwieldy in a graph. N=256 is the documented upper bound that compiles reliably in the libfaust-wasm Worker — N=512 hits a pathological compile path (verified 2026-06-08, never returns). Need higher resolution? Use multiple analysis_band_level Kinds for the bins you care about (future Kind in faust-analysis Pack v2).",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"tau_ms",label:"Smoothing",init:50,min:5,max:500,step:.1,unit:"ms"}],toBox:{outputs:{out:"seq(input('in'), lib('an', 'rfft_spectral_level', int(256), over(param('tau_ms'), real(1000)), int(0)))"}}},{kind:"analysis_goniometer",wraps:["an.rms_envelope_tau"],label:"Goniometer",category:"Analyzers",description:"Stereo phase + mid/side correlation display. Mid = (L+R)/2 RMS, Side = (L-R)/2 RMS, Correlation = E[L·R] RMS-smoothed. Three internal hbargraphs visualize the relationship. Use to verify mono-compatibility on a stereo mix: high Mid + low Side = mono-safe (kicks, basses); high Side + low correlation = potential phase-cancellation on mono fold-down. Both audio channels pass through unchanged. Optional control outputs (mid_level, side_level, correlation) for piping into other DSP — e.g. auto-mono if Side drops below threshold, dynamic stereo widener based on correlation, etc.",inputs:[{id:"l",label:"L",kind:"audio"},{id:"r",label:"R",kind:"audio"}],outputs:[{id:"l_out",label:"L",kind:"audio"},{id:"r_out",label:"R",kind:"audio"},{id:"mid_level",label:"mid",kind:"control"},{id:"side_level",label:"side",kind:"control"},{id:"correlation",label:"corr",kind:"control"}],params:[{type:"hslider",id:"tau_ms",label:"Smoothing",init:50,min:5,max:500,step:.1,unit:"ms"}],toBox:{defs:{mid_sig:"over(plus(input('l'), input('r')), real(2))",side_sig:"over(minus(input('l'), input('r')), real(2))",corr_sig:"times(input('l'), input('r'))",mid_env:"seq(def('mid_sig'), lib('an', 'rms_envelope_tau', over(param('tau_ms'), real(1000))))",side_env:"seq(def('side_sig'), lib('an', 'rms_envelope_tau', over(param('tau_ms'), real(1000))))",corr_env:"seq(def('corr_sig'), lib('an', 'rms_envelope_tau', over(param('tau_ms'), real(1000))))",anchor:"plus(plus(seq(def('mid_env'), prim('hbargraph', tplStr('{faustId}/mid'), real(0), real(1))), seq(def('side_env'), prim('hbargraph', tplStr('{faustId}/side'), real(0), real(1)))), seq(def('corr_env'), prim('hbargraph', tplStr('{faustId}/corr'), real(-1), real(1))))"},outputs:{l_out:"attach(input('l'), def('anchor'))",r_out:"attach(input('r'), def('anchor'))",mid_level:"attach(def('mid_env'), def('anchor'))",side_level:"attach(def('side_env'), def('anchor'))",correlation:"attach(def('corr_env'), def('anchor'))"}}},{kind:"analysis_peak_hold",wraps:["an.amp_follower_ud"],label:"Peak Hold",category:"Analyzers",description:"Peak detector with independent attack and release times (analyzers.lib an.amp_follower_ud). Tracks the highest peak the signal has hit and holds it for the Release duration before decaying. Use as a mastering-style true-peak meter, a transient-detection gate trigger, or a 'last loudest moment' indicator. Audio passes through unchanged. The peak_held control output exposes the current held value as a continuous signal (range 0..max-amp), useful for sidechaining or display in another Kind.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"peak_held",label:"peak",kind:"control"}],params:[{type:"hslider",id:"attack",label:"Attack",init:.005,min:1e-4,max:.1,step:1e-4,unit:"s",style:"knob"},{type:"hslider",id:"release",label:"Release",init:.5,min:.01,max:5,step:.001,unit:"s",style:"knob"}],toBox:{defs:{peak_sig:"seq(input('in'), lib('an', 'amp_follower_ud', param('attack'), param('release')))",anchor:"seq(def('peak_sig'), prim('hbargraph', tplStr('{faustId}/peak'), real(0), real(1)))"},outputs:{out:"attach(input('in'), def('anchor'))",peak_held:"attach(def('peak_sig'), def('anchor'))"}}},{kind:"analysis_rms_dual",wraps:["an.rms_envelope_rect","an.rms_envelope_tau"],label:"RMS (dual)",category:"Analyzers",description:"RMS level meter with TWO time-constant outputs in parallel (analyzers.lib an.rms_envelope_rect + an.rms_envelope_tau). rect = moving-average (fixed-latency = period, classic VU-meter character, steady reading), tau = one-pole tau response (instant attack, smooth exponential decay, envelope-follower character). Both share the same Period parameter. Use rect for traditional level metering displays + EBU-style loudness measurement, tau for sidechain / dynamics applications where you need fast envelope-following without the rect averaging delay.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"rms_rect",label:"rect",kind:"control"},{id:"rms_tau",label:"tau",kind:"control"}],params:[{type:"hslider",id:"period_ms",label:"Period",init:50,min:5,max:500,step:.1,unit:"ms",style:"knob"}],toBox:{defs:{rect_sig:"seq(input('in'), lib('an', 'rms_envelope_rect', over(param('period_ms'), real(1000))))",tau_sig:"seq(input('in'), lib('an', 'rms_envelope_tau', over(param('period_ms'), real(1000))))",anchor:"seq(def('rect_sig'), prim('hbargraph', tplStr('{faustId}/rms_rect'), real(0), real(1)))"},outputs:{out:"attach(input('in'), def('anchor'))",rms_rect:"attach(def('rect_sig'), def('anchor'))",rms_tau:"attach(def('tau_sig'), def('anchor'))"}}},{kind:"analysis_goertzel",wraps:["an.goertzelOpt"],label:"Goertzel",category:"Analyzers",description:"Single-frequency magnitude detector (analyzers.lib an.goertzelOpt). More computationally efficient + frequency-selective than a bandpass + envelope-follower combination for tracking the level of ONE specific frequency. Use for hum detection (50 / 60 Hz), specific harmonic tracking, DTMF detection, carrier-level measurement in vocoder-style processing. The Window parameter (N) sets the analysis window — larger N = sharper frequency selectivity but slower response (~N / SR seconds latency). Audio passes through; magnitude exposed as a control output for piping into gates / sidechain / display.",inputs:[{id:"in",label:"in",kind:"audio"},{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"magnitude",label:"mag",kind:"control"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:20,max:2e4,step:.1,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"n",label:"Window",init:512,min:64,max:4096,step:1}],toBox:{defs:{mag:"seq(input('in'), lib('an', 'goertzelOpt', param('freq'), param('n')))",anchor:"seq(def('mag'), prim('hbargraph', tplStr('{faustId}/mag'), real(0), real(100)))"},outputs:{out:"attach(input('in'), def('anchor'))",magnitude:"attach(def('mag'), def('anchor'))"}}},{kind:"analysis_bass",label:"Bass Analyzer",category:"Analyzers",description:"Live bass measurement — the numbers that decided the 808 round, in the signal path. Stereo passthrough plus eleven bargraphs: momentary loudness (ITU-R BS.1770 K-weighting, 400 ms window, LUFS), crest factor over 1 s (dB; professional 808 loops sit at 6–9), energy share per band relative to the whole (sub 20–60 · fund 60–120 · harm 120–250 · body 250–500 · mid 500–2k · hi 2k+, dB; pros: sub −0.4…−1.8, fund −7…−12, harm −9…−19), and L/R correlation in sub, fund and harm (+1 = mono, 0 = unrelated, −1 = cancelling; a pro 808 reads +1 in all three). Control outputs for the headline numbers so a patch can react (auto-mono when corr_sub drops, sidechain on lufs). Bands are 4th-order (two cascaded 2nd-order Butterworth stages, as in the offline analyzer — Faust's fi.bandpass went NaN at 20/60 Hz in single precision). 300 ms smoothing throughout. Offline counterparts with onsets, clicks, steps and reference verdicts: the analysis.recording / analysis.sample actions.",inputs:[{id:"l",label:"L",kind:"audio"},{id:"r",label:"R",kind:"audio"}],outputs:[{id:"l_out",label:"L",kind:"audio"},{id:"r_out",label:"R",kind:"audio"},{id:"lufs",label:"lufs",kind:"control"},{id:"crest",label:"crest",kind:"control"},{id:"sub_db",label:"sub",kind:"control"},{id:"fund_db",label:"fund",kind:"control"},{id:"harm_db",label:"harm",kind:"control"},{id:"corr_sub",label:"corr sub",kind:"control"}],params:[],toBox:{defs:{lufs_sig:"seq(par(input('l'), input('r')), raw(\"((_ : kw <: _*_) , (_ : kw <: _*_) :> ba.slidingMean(int(0.4*ma.SR)) : max(1e-10) : log10 : *(10) : +(-0.691) : max(-70)) with { kw = (fi.tf2(b0,b1,b2,a1,a2) : fi.tf2(c0,c1,c2,d1,d2)) with { K = tan(ma.PI*1681.974450955533/ma.SR); Vh = pow(10, 3.999843853973347/20); Vb = pow(Vh, 0.4996667741545416); Q = 0.7071752369554196; a0 = 1 + K/Q + K*K; b0 = (Vh + Vb*K/Q + K*K)/a0; b1 = 2*(K*K - Vh)/a0; b2 = (Vh - Vb*K/Q + K*K)/a0; a1 = 2*(K*K - 1)/a0; a2 = (1 - K/Q + K*K)/a0; K2 = tan(ma.PI*38.13547087602444/ma.SR); Q2 = 0.5003270373238773; e0 = 1 + K2/Q2 + K2*K2; c0 = 1; c1 = -2; c2 = 1; d1 = 2*(K2*K2 - 1)/e0; d2 = (1 - K2/Q2 + K2*K2)/e0; }; }\", 2, 1))",crest_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: (abs : ba.peakholder(int(ma.SR))), an.rms_envelope_rect(1.0) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(0))\", 2, 1))",sub_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 20) : fi.highpass(2, 20) : fi.lowpass(2, 60) : fi.lowpass(2, 60)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",fund_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 60) : fi.highpass(2, 60) : fi.lowpass(2, 120) : fi.lowpass(2, 120)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",harm_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 120) : fi.highpass(2, 120) : fi.lowpass(2, 250) : fi.lowpass(2, 250)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",body_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 250) : fi.highpass(2, 250) : fi.lowpass(2, 500) : fi.lowpass(2, 500)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",mid_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 500) : fi.highpass(2, 500) : fi.lowpass(2, 2000) : fi.lowpass(2, 2000)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",hi_sig:"seq(par(input('l'), input('r')), raw(\"((_ + _) / 2 <: ((fi.highpass(2, 2000) : fi.highpass(2, 2000) : fi.lowpass(2, 16000) : fi.lowpass(2, 16000)) : an.rms_envelope_tau(tau)), an.rms_envelope_tau(tau) : /(max(_, 1e-6)) : max(1e-6) : log10 : *(20) : max(-60)) with { tau = 0.3; }\", 2, 1))",corr_sub_sig:"seq(par(input('l'), input('r')), raw(\"(((fi.highpass(2, 20) : fi.highpass(2, 20) : fi.lowpass(2, 60) : fi.lowpass(2, 60))), ((fi.highpass(2, 20) : fi.highpass(2, 20) : fi.lowpass(2, 60) : fi.lowpass(2, 60))) <: ((_*_) : sm), ((_,!) : (_ <: _*_) : sm), ((!,_) : (_ <: _*_) : sm) : (_, (_*_ : sqrt : max(1e-9))) : /) with { sm = si.smooth(ba.tau2pole(0.3)); }\", 2, 1))",corr_fund_sig:"seq(par(input('l'), input('r')), raw(\"(((fi.highpass(2, 60) : fi.highpass(2, 60) : fi.lowpass(2, 120) : fi.lowpass(2, 120))), ((fi.highpass(2, 60) : fi.highpass(2, 60) : fi.lowpass(2, 120) : fi.lowpass(2, 120))) <: ((_*_) : sm), ((_,!) : (_ <: _*_) : sm), ((!,_) : (_ <: _*_) : sm) : (_, (_*_ : sqrt : max(1e-9))) : /) with { sm = si.smooth(ba.tau2pole(0.3)); }\", 2, 1))",corr_harm_sig:"seq(par(input('l'), input('r')), raw(\"(((fi.highpass(2, 120) : fi.highpass(2, 120) : fi.lowpass(2, 250) : fi.lowpass(2, 250))), ((fi.highpass(2, 120) : fi.highpass(2, 120) : fi.lowpass(2, 250) : fi.lowpass(2, 250))) <: ((_*_) : sm), ((_,!) : (_ <: _*_) : sm), ((!,_) : (_ <: _*_) : sm) : (_, (_*_ : sqrt : max(1e-9))) : /) with { sm = si.smooth(ba.tau2pole(0.3)); }\", 2, 1))",anchor:"plus(plus(plus(plus(plus(plus(plus(plus(plus(plus(seq(def('lufs_sig'), prim('hbargraph', tplStr('{faustId}/[0]lufs_m [unit:LUFS]'), real(-40), real(0))), seq(def('crest_sig'), prim('hbargraph', tplStr('{faustId}/[1]crest_db [unit:dB]'), real(0), real(20)))), seq(def('sub_sig'), prim('hbargraph', tplStr('{faustId}/[2]sub_db [unit:dB]'), real(-40), real(0)))), seq(def('fund_sig'), prim('hbargraph', tplStr('{faustId}/[3]fund_db [unit:dB]'), real(-40), real(0)))), seq(def('harm_sig'), prim('hbargraph', tplStr('{faustId}/[4]harm_db [unit:dB]'), real(-40), real(0)))), seq(def('body_sig'), prim('hbargraph', tplStr('{faustId}/[5]body_db [unit:dB]'), real(-40), real(0)))), seq(def('mid_sig'), prim('hbargraph', tplStr('{faustId}/[6]mid_db [unit:dB]'), real(-40), real(0)))), seq(def('hi_sig'), prim('hbargraph', tplStr('{faustId}/[7]hi_db [unit:dB]'), real(-40), real(0)))), seq(def('corr_sub_sig'), prim('hbargraph', tplStr('{faustId}/[8]corr_sub'), real(-1), real(1)))), seq(def('corr_fund_sig'), prim('hbargraph', tplStr('{faustId}/[9]corr_fund'), real(-1), real(1)))), seq(def('corr_harm_sig'), prim('hbargraph', tplStr('{faustId}/[10]corr_harm'), real(-1), real(1))))"},outputs:{l_out:"attach(input('l'), def('anchor'))",r_out:"attach(input('r'), def('anchor'))",lufs:"attach(def('lufs_sig'), def('anchor'))",crest:"attach(def('crest_sig'), def('anchor'))",sub_db:"attach(def('sub_sig'), def('anchor'))",fund_db:"attach(def('fund_sig'), def('anchor'))",harm_db:"attach(def('harm_sig'), def('anchor'))",corr_sub:"attach(def('corr_sub_sig'), def('anchor'))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- var e={packId:"faust-physical-models",title:"Faust Physical Models",version:2,ownerHandle:"faustwave",description:"Physical-model instrument pack — five struck-instrument Kinds wrapping Faust's pm.lib physmodels.lib primitives that aren't covered by the kernel pack's karplus / guitar / bell / resonator quartet. v1 set: marimba (wooden bar + tube), the proper pm.djembe model (distinct from the kernel's noise-based djembe), and three distinct bell characters — French (clean fundamental), English (warm body), Church (generic neutral). Each Kind self-contained with a virtual exciter (no excitation-signal input needed; trigger drives the strike envelope internally). Pair with midi_note + envelope (for live-played striking) or step_seq (for sequenced patterns). v2 will likely add sustained-instrument variants (violin / clarinet / flute) which need a different excitation envelope shape AND chain composition.",kinds:[{kind:"pm_marimba",wraps:["pm.marimba"],label:"Marimba",category:"Instruments",description:"Marimba bar physical model (pm.marimba) — single tone bar coupled to a resonance tube. Each rising edge of the gate strikes the bar at the current strike position. strikePosition (0-4) corresponds to 5 different positions along the bar from one end to the other. strikeCutoff controls the strike-generator brightness (recommended: ~7000Hz). Lower frequencies sound like deep marimba bars; higher frequencies approach xylophone / vibraphone territory.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:40,max:4e3,step:.1,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"strike_pos",label:"Strike Position",init:2,min:0,max:4,step:.01,style:"knob"},{type:"hslider",id:"strike_cutoff",label:"Strike Cutoff",init:7e3,min:200,max:12e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.25,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"gate",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'marimba', param('freq'), param('strike_pos'), param('strike_cutoff'), param('strike_sharp'), param('strike_gain'), param('gate')), param('gain'))"}}},{kind:"pm_djembe_pm",wraps:["pm.djembe"],label:"Djembe (PM)",category:"Instruments",description:"True physical-model djembe (pm.djembe) — distinct from the kernel's noise-based `djembe` kind. The PM version uses empirically-tuned modal parameters that 'sound like a djembe.' strikePosition 0 = membrane center (deep boom), 1 = membrane edge (sharp slap). Pair with midi_note (live-played) or step_seq (programmed patterns) for African / world rhythm tracks.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:110,min:30,max:500,step:.1,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"strike_pos",label:"Strike Position",init:.3,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.5,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:.6,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"gate",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'djembe', param('freq'), param('strike_pos'), param('strike_sharp'), param('strike_gain'), param('gate')), param('gain'))"}}},{kind:"pm_french_bell",wraps:["pm.frenchBell"],label:"French Bell",category:"Instruments",description:"Struck French church bell physical model (pm.frenchBell) — modeled after a 1-m tall French church bell with 7 excitation positions from base to top. Distinct timbral character vs the kernel `bell` kind: cleaner fundamental + more pronounced upper partials. No freq input — pitch is fixed by the physical model; vary strikePos (0-6) + strikeCutoff for timbral variation. Use for ornate / formal / European bell aesthetics.",inputs:[{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"strike_pos",label:"Strike Position",init:.4,min:0,max:6,step:.01,style:"knob"},{type:"hslider",id:"strike_cutoff",label:"Strike Cutoff",init:2e3,min:200,max:1e4,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.5,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:1,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'frenchBell', param('strike_pos'), param('strike_cutoff'), param('strike_sharp'), param('strike_gain'), param('trig')), param('gain'))"}}},{kind:"pm_english_bell",wraps:["pm.englishBell"],label:"English Bell",category:"Instruments",description:"Struck English church bell physical model (pm.englishBell) — modeled after a 1-m tall English church bell with 7 excitation positions. Warmer, fuller-bodied character compared to the French Bell (cleaner) or kernel Bell (standard). Use for hymnal / ceremonial / Christmas-mood bell sounds. Same parameter shape as french_bell — no freq input (pitch fixed by model).",inputs:[{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"strike_pos",label:"Strike Position",init:.4,min:0,max:6,step:.01,style:"knob"},{type:"hslider",id:"strike_cutoff",label:"Strike Cutoff",init:2e3,min:200,max:1e4,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.5,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:1,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'englishBell', param('strike_pos'), param('strike_cutoff'), param('strike_sharp'), param('strike_gain'), param('trig')), param('gain'))"}}},{kind:"pm_church_bell",wraps:["pm.churchBell"],label:"Church Bell",category:"Instruments",description:"Struck generic church bell physical model (pm.churchBell) — modeled after Rossing & Perrin's 1987 bell-vibrations research. 301 mm model height (smaller / brighter than the French / English variants). 7 excitation positions from base to top. Neutral, well-balanced bell character that works for general-purpose church / chapel / clock bell sounds where the country-specific French / English flavors would be too distinctive. No freq input (pitch fixed by model).",inputs:[{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"strike_pos",label:"Strike Position",init:.4,min:0,max:6,step:.01,style:"knob"},{type:"hslider",id:"strike_cutoff",label:"Strike Cutoff",init:2e3,min:200,max:1e4,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.5,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:1,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'churchBell', param('strike_pos'), param('strike_cutoff'), param('strike_sharp'), param('strike_gain'), param('trig')), param('gain'))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- var e={packId:"faust-reverbs",title:"Faust Reverb Varieties",version:3,ownerHandle:"faustwave",description:"Reverb-algorithm variety pack — seven additional reverb-character options alongside the kernel's `reverb` (mono_freeverb) and `lush_reverb` (jpverb). Includes Schroeder Quadraphonic (jcrev), Schroeder Brass-tuned (satrev), Schroeder-Moorer Stereo (stereo_freeverb), Zita-Rev1 Studio Stereo (zita_rev1_stereo), Dattorro Plate (dattorro_rev_default), Spring-Tank emulation (springreverb), and Greyhole modulated echo-diffusion. All Kinds present a mono-in / mono-out shape — natively-stereo reverbs are wrapped `_ <: stereo_alg :> _ / 2` to fit the Master-FX-slot drop-in convention. Each one has its own characteristic tail + diffusion pattern; pick by ear, not by spec. `verb_*` prefix throughout per the architecture naming convention.",kinds:[{kind:"verb_jcrev",wraps:["re.jcrev"],label:"Reverb: Schroeder (jcrev)",category:"Effects",description:"Quadraphonic Schroeder reverberator from John Chowning's 1972 MUS10 design (reverbs.lib jcrev). Cold, classic algorithmic character — comb-and-allpass chain that became the canonical 'computer-music reverb' of the 70s. No parameters in the source — the algorithm is fixed at its historical settings. Four-channel internal output is summed to mono for FX-slot use. Mix knob controls dry/wet blend.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"mix",label:"Mix",init:.35,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(seq(input('in'), lib('re', 'jcrev')), wire()), real(4)), param('mix')))"}}},{kind:"verb_satrev",wraps:["re.satrev"],label:"Reverb: Schroeder (satrev)",category:"Effects",description:"Stereo-output Schroeder reverberator (~1971), tuned by Faust's original developer for brass synthesis (reverbs.lib satrev). Brighter + more aggressive than jcrev, with stronger early reflections. Stereo internal output summed to mono for FX-slot drop-in. Mix knob for dry/wet.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"mix",label:"Mix",init:.35,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(seq(input('in'), lib('re', 'satrev')), wire()), real(2)), param('mix')))"}}},{kind:"verb_freeverb_stereo",wraps:["re.stereo_freeverb"],label:"Reverb: Freeverb (stereo)",category:"Effects",description:"Stereo-decorrelated Schroeder-Moorer Freeverb (reverbs.lib stereo_freeverb). Two parallel Freeverb instances with different comb-tunings produce a wider stereo image than the mono `reverb` Kind in the kernel. Combined + summed to mono for FX-slot drop-in (the stereo width is baked into the diffusion pattern but not exposed as a separate L/R pair from this Kind — see the future Stereo-FX-track for true-stereo paths). FB1 / FB2 = comb feedback, Damp = HF damping, Spread = stereo-decorrelation amount.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"fb1",label:"FB1",init:.7,min:0,max:1,step:.001,smoothing_class:"mix"},{type:"hslider",id:"fb2",label:"FB2",init:.5,min:0,max:1,step:.001,smoothing_class:"mix"},{type:"hslider",id:"damp",label:"Damp",init:.5,min:0,max:1,step:.001,smoothing_class:"mix"},{type:"hslider",id:"spread",label:"Spread",init:.5,min:0,max:1,step:.001,smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.35,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(split(input('in'), lib('re', 'stereo_freeverb', param('fb1'), param('fb2'), param('damp'), param('spread'))), wire()), real(2)), param('mix')))"}}},{kind:"verb_zita_stereo",wraps:["re.zita_rev1_stereo"],label:"Reverb: Zita-Rev1 (stereo studio)",category:"Effects",description:"Zita-Rev1 8×8 FDN stereo reverb (reverbs.lib zita_rev1_stereo). Studio-grade algorithmic reverb with a remarkably natural decay character — Fons Adriaensen's design that became a Linux-audio classic and ships in many DAWs. Pre-delay in samples, separate low (DC) and mid t60 decay times, plus frequency-dependent damping above f2. Default settings produce a lush ~3 s decay similar to a small concert hall.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"rdel",label:"Pre-Delay",init:40,min:0,max:1e3,step:1,unit:"samples"},{type:"hslider",id:"f1",label:"Lo Cutoff",init:200,min:50,max:1e3,step:1,unit:"Hz",scale:"log",smoothing_class:"pitch"},{type:"hslider",id:"f2",label:"Hi Cutoff",init:6e3,min:1e3,max:16e3,step:1,unit:"Hz",scale:"log",smoothing_class:"pitch"},{type:"hslider",id:"t60dc",label:"T60 Low",init:3,min:.5,max:15,step:.1,unit:"s"},{type:"hslider",id:"t60m",label:"T60 Mid",init:2,min:.5,max:15,step:.1,unit:"s"},{type:"hslider",id:"mix",label:"Mix",init:.35,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(split(input('in'), lib('re', 'zita_rev1_stereo', param('rdel'), param('f1'), param('f2'), param('t60dc'), param('t60m'), real(48000))), wire()), real(2)), param('mix')))"}}},{kind:"verb_dattorro_plate",wraps:["re.dattorro_rev_default"],label:"Reverb: Dattorro Plate",category:"Effects",description:"Dattorro-topology plate reverb at the paper's canonical settings (reverbs.lib dattorro_rev_default). The Dattorro topology emulates a classic EMT-140 / Lexicon-224-style metal-plate reverb — bright, smooth, dense diffusion. No parameters in this default variant — the original paper's settings sound great as-is. Use Mix to balance against dry.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"mix",label:"Mix",init:.35,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(split(input('in'), lib('re', 'dattorro_rev_default')), wire()), real(2)), param('mix')))"}}},{kind:"verb_springreverb",wraps:["re.springreverb"],label:"Reverb: Spring Tank",category:"Effects",description:"Spring-tank emulation (reverbs.lib springreverb). The boingy, metallic character of a guitar-amp's mechanical spring-reverb pan — Fender Twin Reverb, Vox AC30 + every surf-rock record. Hadamard diffusion across multiple parallel damped delay lines. Dwell = decay length, Blend = stereo width (mono-summed), Tone = top-end rolloff, Tension = spring stiffness (resonance), Springs = number of parallel springs (1..N).",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"dwell",label:"Dwell",init:2,min:.1,max:8,step:.1,unit:"s"},{type:"hslider",id:"blend",label:"Blend",init:.5,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"tone",label:"Tone",init:.5,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"tension",label:"Tension",init:1,min:.1,max:5,step:.01},{type:"hslider",id:"springs",label:"Springs",init:100,min:10,max:200,step:1},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('re', 'springreverb', param('dwell'), param('blend'), param('tone'), param('tension'), param('springs'))), param('mix')))"}}},{kind:"verb_greyhole",wraps:["re.greyhole"],label:"Reverb: Greyhole",category:"Effects",description:"Echo-diffusion + modulated-feedback reverb (reverbs.lib greyhole). Less of a 'natural space' and more of a creative-FX texture generator — long modulated tails with chorus-like motion in the feedback path. Ideal for dubby ambient sends, weird-tail experiments, and creative slow-build atmospheres. dt = base delay time, Damp = HF rolloff, Size = room scale, Early Diff = early-reflection diffusion, Feedback = tail length, ModDepth/ModFreq = chorus-modulation in the feedback path.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"dt",label:"Delay",init:.2,min:.05,max:1,step:.001,unit:"s"},{type:"hslider",id:"damp",label:"Damp",init:.5,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"size",label:"Size",init:1,min:.5,max:3,step:.01},{type:"hslider",id:"early",label:"EarlyDiff",init:.5,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"feedback",label:"Feedback",init:.7,min:0,max:.99,step:.001,smoothing_class:"mix"},{type:"hslider",id:"mod_depth",label:"ModDepth",init:.1,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"mod_freq",label:"ModFreq",init:1,min:.05,max:10,step:.01,unit:"Hz"},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(over(merge(split(input('in'), lib('re', 'greyhole', param('dt'), param('damp'), param('size'), param('early'), param('feedback'), param('mod_depth'), param('mod_freq'))), wire()), real(2)), param('mix')))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- var e={packId:"faust-spatial",title:"Faust Spatial",version:2,ownerHandle:"faustwave",description:"True-stereo Kinds — Kinds with paired L+R input/output ports (channels=2 marker) for multi-channel signal processing between Kinds. Demonstrates the paired-port pattern that lets Pack-5 Kinds carry stereo signals through a Builder chain without folding to mono at every step. Pair with the `mono_to_stereo` / `stereo_to_mono` hand-coded adapter Kinds to bridge from a mono source / to a mono sink. Phase 3 of the BOX-DSL + Multi-Channel initiative.",kinds:[{kind:"ping_pong_delay",wraps:["de.delay","ma.SR"],label:"Ping-Pong Delay",category:"Spatial",description:"Classic stereo ping-pong delay — each side delays the OPPOSITE channel + feeds back, so a mono tap on L bounces L → R → L → R → … across the stereo field. Time sets the delay length in ms (same for both sides); Feedback controls how many bounces survive; Mix is the dry/wet balance applied to each channel independently. Place between two stereo Kinds (or after mono_to_stereo).",bypass:{input:"in_l",output:"out_l"},inputs:[{id:"in_l",label:"L",kind:"audio",channels:2},{id:"in_r",label:"R",kind:"audio",channels:2}],outputs:[{id:"out_l",label:"L",kind:"audio",channels:2},{id:"out_r",label:"R",kind:"audio",channels:2}],params:[{type:"hslider",id:"time_ms",label:"Time",init:250,min:1,max:2e3,step:.1,unit:"ms",scale:"log",style:"knob"},{type:"hslider",id:"feedback",label:"Feedback",init:.4,min:0,max:.95,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{defs:{samples:"intCast(over(times(param('time_ms'), lib('ma', 'SR')), int(1000)))",wet_l:"seq(plus(input('in_l'), times(mem(input('in_r')), param('feedback'))), lib('de', 'delay', int(96000), def('samples')))",wet_r:"seq(plus(input('in_r'), times(mem(input('in_l')), param('feedback'))), lib('de', 'delay', int(96000), def('samples')))"},outputs:{out_l:"plus(times(input('in_l'), minus(real(1), param('mix'))), times(def('wet_l'), param('mix')))",out_r:"plus(times(input('in_r'), minus(real(1), param('mix'))), times(def('wet_r'), param('mix')))"}}},{kind:"lush_reverb_stereo",wraps:["re.jpverb"],label:"Lush Reverb (Stereo)",category:"Spatial",description:"Native-stereo variant of `lush_reverb` — the `re.jpverb` algorithm is 2-in 2-out internally, so this Kind preserves the stereo image instead of folding L+R to mono. Paired in_l + in_r ports + paired out_l + out_r ports (channels=2 markers throughout). T60 = decay length, Damp = HF roll-off, Size = room scale, Mix = dry/wet balance applied per-channel.",bypass:{input:"in_l",output:"out_l"},inputs:[{id:"in_l",label:"L",kind:"audio",channels:2},{id:"in_r",label:"R",kind:"audio",channels:2}],outputs:[{id:"out_l",label:"L",kind:"audio",channels:2},{id:"out_r",label:"R",kind:"audio",channels:2}],params:[{type:"hslider",id:"t60",label:"T60",init:3,min:.1,max:30,step:.1,unit:"s",style:"knob"},{type:"hslider",id:"damp",label:"Damp",init:.3,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"size",label:"Size",init:1,min:.5,max:3,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],toBox:{defs:{jp_pair:"seq(par(input('in_l'), input('in_r')), lib('re', 'jpverb', param('t60'), param('damp'), param('size'), real(0.6), real(0.1), real(2.0), real(1.0), real(1.0), real(1.0), int(200), int(6000)))",jp_l:"seq(def('jp_pair'), par(wire(), cut()))",jp_r:"seq(def('jp_pair'), par(cut(), wire()))"},outputs:{out_l:"plus(times(input('in_l'), minus(real(1), param('mix'))), times(def('jp_l'), param('mix')))",out_r:"plus(times(input('in_r'), minus(real(1), param('mix'))), times(def('jp_r'), param('mix')))"}}},{kind:"stereo_panner",label:"Stereo Panner",category:"Spatial",description:"Pan a stereo signal as a unit (mid/side aware). Pan -1 = both channels collapsed to L; Pan 0 = unchanged; Pan +1 = both collapsed to R. Preserves the stereo image across the pan range — different from a per-channel gain swap which would invert the L/R image at extreme pan positions.",bypass:{input:"in_l",output:"out_l"},inputs:[{id:"in_l",label:"L",kind:"audio",channels:2},{id:"in_r",label:"R",kind:"audio",channels:2},{id:"pan_in",label:"pan",kind:"control"}],outputs:[{id:"out_l",label:"L",kind:"audio",channels:2},{id:"out_r",label:"R",kind:"audio",channels:2}],params:[{type:"hslider",id:"pan",label:"Pan",init:0,min:-1,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{defs:{l_gain:"lib('', 'sqrt', over(minus(real(1), param('pan')), real(2)))",r_gain:"lib('', 'sqrt', over(plus(real(1), param('pan')), real(2)))"},outputs:{out_l:"times(input('in_l'), def('l_gain'))",out_r:"times(input('in_r'), def('r_gain'))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- var i={packId:"faust-vintage",title:"Faust Vintage Tubes, Tonestacks & Pedals",version:5,ownerHandle:"faustwave",description:"Vacuum-tube triode/pentode stage emulations (tubes.lib — 12AX7, 12AT7, 12AU7, 6V6, 6DJ8, 6C16 × T1/T2/T3 cascade variants), classic guitar/bass amp tonestacks (tonestacks.lib — Bassman, Marshall JCM800/JCM2000/JTM45/Major, Vox AC30/AC15, Soldano SLO, Sovtek, Mesa Boogie, Fender Twin/Princeton/Blues/DeVille, Bogner, Roland, Ampeg, Peavey, Ibanez, etc., each with Treble/Middle/Bass knobs), plus three va-effects (Klon-style autowah, CryBaby wah, multi-stage Moog-VCF wah). All Kinds use `tube_*`, `amp_*`, `wah_*` prefixes per the architecture naming convention. Some classics (klonCentaur Klon overdrive emulation) require WDF + Wright-Omega computation that hangs the libfaust-wasm compile worker — deferred to a future Pack v2 once the renderer can host them. Bundled with the IDE; auto-restored on first launch.",kinds:[{kind:"tube_12ax7_t1",label:"Tube 12AX7 T1",category:"Vintage",description:"12AX7 triode stage 1 emulation (tubes.lib T1_12AX7). The classic high-gain preamp tube (μ ≈ 100) used in Fender, Marshall, Vox, Mesa, and nearly every tube amp's input stage. T1 = first gain stage of a typical three-stage cascade. Wrap the audio signal in this to add saturation + the characteristic 12AX7 harmonic profile. Chain with `tube_12ax7_t2` then `tube_12ax7_t3` for a full Marshall-style preamp cascade.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_12AX7', input('in'))"}}},{kind:"tube_12ax7_t2",label:"Tube 12AX7 T2",category:"Vintage",description:"12AX7 triode stage 2 emulation (tubes.lib T2_12AX7). Mid-stage gain shaping — sits between T1 and T3 in a cascading preamp chain.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_12AX7', input('in'))"}}},{kind:"tube_12ax7_t3",label:"Tube 12AX7 T3",category:"Vintage",description:"12AX7 triode stage 3 emulation (tubes.lib T3_12AX7). Final preamp stage — typically driving the tonestack EQ or the power-amp input.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_12AX7', input('in'))"}}},{kind:"tube_12at7_t1",label:"Tube 12AT7 T1",category:"Vintage",description:"12AT7 triode stage 1 (tubes.lib T1_12AT7). Lower-gain alternative to 12AX7 (μ ≈ 60). Used in hi-fi preamps + low-gain drive stages where you want warmth without aggressive saturation.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_12AT7', input('in'))"}}},{kind:"tube_12at7_t2",label:"Tube 12AT7 T2",category:"Vintage",description:"12AT7 triode stage 2 (tubes.lib T2_12AT7). Mid-stage variant for cascading 12AT7-based preamps.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_12AT7', input('in'))"}}},{kind:"tube_12at7_t3",label:"Tube 12AT7 T3",category:"Vintage",description:"12AT7 triode stage 3 (tubes.lib T3_12AT7). Output stage variant for 12AT7-based preamps.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_12AT7', input('in'))"}}},{kind:"tube_12au7_t1",label:"Tube 12AU7 T1",category:"Vintage",description:"12AU7 triode stage 1 (tubes.lib T1_12AU7). Lowest-gain triode variant (μ ≈ 17). Used as a clean line-level booster or input buffer — adds vacuum-tube character without driving into noticeable saturation.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_12AU7', input('in'))"}}},{kind:"tube_12au7_t2",label:"Tube 12AU7 T2",category:"Vintage",description:"12AU7 triode stage 2 (tubes.lib T2_12AU7). Mid-stage low-gain.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_12AU7', input('in'))"}}},{kind:"tube_12au7_t3",label:"Tube 12AU7 T3",category:"Vintage",description:"12AU7 triode stage 3 (tubes.lib T3_12AU7). Final low-gain stage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_12AU7', input('in'))"}}},{kind:"tube_6v6_t1",label:"Tube 6V6 T1",category:"Vintage",description:"6V6 pentode output tube, stage 1 (tubes.lib T1_6V6). The power tube in Fender Champion / Princeton class-A amps + many low-watt tweed circuits. Use as a power-amp stage after a triode preamp cascade for the full vintage-amp character.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_6V6', input('in'))"}}},{kind:"tube_6v6_t2",label:"Tube 6V6 T2",category:"Vintage",description:"6V6 pentode stage 2 (tubes.lib T2_6V6). Mid-stage power amp.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_6V6', input('in'))"}}},{kind:"tube_6v6_t3",label:"Tube 6V6 T3",category:"Vintage",description:"6V6 pentode stage 3 (tubes.lib T3_6V6). Final power stage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_6V6', input('in'))"}}},{kind:"tube_6dj8_t1",label:"Tube 6DJ8 T1",category:"Vintage",description:"6DJ8 (ECC88) dual-triode, stage 1 (tubes.lib T1_6DJ8). The hi-fi audiophile-favourite triode (μ ≈ 28). Compact preamp tube with sweet midrange + smooth top end. Common in high-end hi-fi gear and some boutique guitar amps.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_6DJ8', input('in'))"}}},{kind:"tube_6dj8_t2",label:"Tube 6DJ8 T2",category:"Vintage",description:"6DJ8 dual-triode stage 2 (tubes.lib T2_6DJ8). Mid-stage dual triode.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_6DJ8', input('in'))"}}},{kind:"tube_6dj8_t3",label:"Tube 6DJ8 T3",category:"Vintage",description:"6DJ8 dual-triode stage 3 (tubes.lib T3_6DJ8). Final dual-triode stage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_6DJ8', input('in'))"}}},{kind:"tube_6c16_t1",label:"Tube 6C16 T1",category:"Vintage",description:"6C16 triode, stage 1 (tubes.lib T1_6C16). A rare Russian high-mu triode (μ ≈ 42) used in vintage Eastern-European tube circuits. Less common alternative to 12AX7 with its own distinct harmonic profile.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T1_6C16', input('in'))"}}},{kind:"tube_6c16_t2",label:"Tube 6C16 T2",category:"Vintage",description:"6C16 triode stage 2 (tubes.lib T2_6C16). Mid-stage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T2_6C16', input('in'))"}}},{kind:"tube_6c16_t3",label:"Tube 6C16 T3",category:"Vintage",description:"6C16 triode stage 3 (tubes.lib T3_6C16). Final stage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],imports:["tubes.lib"],toBox:{outputs:{out:"prim('T3_6C16', input('in'))"}}},{kind:"amp_bassman",label:"Amp: Fender Bassman 5F6-A",category:"Vintage",description:"1959 Fender Bassman 5F6-A tonestack (tonestacks.lib bassman). Scooped-mid, bluesy character — basis for the original Marshall JTM45. Treble/Middle/Bass knobs at the same positions as the real circuit. Drop after a tube preamp cascade for the classic Bassman EQ shape.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('bassman', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_mesa",label:"Amp: Mesa Boogie Mark",category:"Vintage",description:"Mesa Boogie Mark series tonestack (tonestacks.lib mesa). American hi-gain character — tight low end + scooped upper mids that became the signature 80s metal sound.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('mesa', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_twin",label:"Amp: Fender Twin Reverb AA270",category:"Vintage",description:"1969 Fender Twin Reverb (AA270) tonestack (tonestacks.lib twin). Massive clean headroom, glassy top end, tight low-mids — the classic American clean-amp benchmark.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('twin', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_princeton",label:"Amp: Fender Princeton AA1164",category:"Vintage",description:"1964 Fender Princeton (AA1164) tonestack (tonestacks.lib princeton). Warm + compressed small-amp character. The recording-studio favourite when you want big tone without big volume.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('princeton', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_jcm800",label:"Amp: Marshall JCM-800 Lead 100 2203",category:"Vintage",description:"Marshall JCM-800 Lead 100 (2203) tonestack (tonestacks.lib jcm800). 80s arena-rock benchmark — aggressive mids, tight low end, biting top. Pairs with cascaded 12AX7 preamp stages for the full Plexi-on-steroids sound.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('jcm800', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_jcm2000",label:"Amp: Marshall JCM-2000",category:"Vintage",description:"Marshall JCM-2000 Lead tonestack (tonestacks.lib jcm2000). Modern Marshall lineage — more gain headroom than JCM800, tighter low end suitable for drop tunings + modern metal.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('jcm2000', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_jtm45",label:"Amp: Marshall JTM 45",category:"Vintage",description:"Marshall JTM 45 tonestack (tonestacks.lib jtm45). Pre-Plexi character — based on the Bassman circuit but with British EL34 power tubes. Warmer + more compressed than later JCMs.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('jtm45', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_mlead",label:"Amp: Marshall Major Lead 200",category:"Vintage",description:"Marshall Major Lead 200 (1967) tonestack (tonestacks.lib mlead). Big-stage 60s amp — high headroom + loud clean sound aimed at large venues before wedge monitors existed.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('mlead', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_m2199",label:"Amp: Marshall M2199 30W SS",category:"Vintage",description:"Marshall M2199 30W solid-state tonestack (tonestacks.lib m2199). 80s practice-amp EQ — distinct from tube Marshalls; included for completeness + retro solid-state character.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('m2199', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_ac30",label:"Amp: Vox AC-30",category:"Vintage",description:"Vox AC-30 (1959 / 1986 reissue) tonestack (tonestacks.lib ac30). British chime — sparkly top end + characteristic compressed midrange. The Beatles, Brian May, The Edge — countless British-rock legends played AC30s.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('ac30', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_ac15",label:"Amp: Vox AC-15",category:"Vintage",description:"Vox AC-15 tonestack (tonestacks.lib ac15). Smaller-wattage AC30 — same chime + compression but in a more bedroom-friendly format.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('ac15', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_soldano",label:"Amp: Soldano SLO 100",category:"Vintage",description:"Soldano SLO 100 tonestack (tonestacks.lib soldano). US hi-gain benchmark — tight low end + smooth saturation that became the LA studio standard for rock + metal recordings in the 90s.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('soldano', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_sovtek",label:"Amp: Sovtek MIG 100 H",category:"Vintage",description:"Sovtek MIG 100 H tonestack (tonestacks.lib sovtek). Russian military-grade tube amp — coarse + raw character beloved by sludge / noise / doom artists.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('sovtek', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_peavey",label:"Amp: Peavey C20",category:"Vintage",description:"Peavey C20 tonestack (tonestacks.lib peavey). American practice-amp EQ — economical + functional, included for completeness.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('peavey', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_ibanez",label:"Amp: Ibanez GX20",category:"Vintage",description:"Ibanez GX20 tonestack (tonestacks.lib ibanez). Japanese practice-amp EQ.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('ibanez', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_roland",label:"Amp: Roland Cube 60",category:"Vintage",description:"Roland Cube 60 tonestack (tonestacks.lib roland). Solid-state Roland Cube character — gigging-friendly + reliable EQ shape used in countless rehearsal rooms.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('roland', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_ampeg",label:"Amp: Ampeg VL 501",category:"Vintage",description:"Ampeg VL 501 tonestack (tonestacks.lib ampeg). Ampeg's bass-amp lineage character — full lows + clear mids, the studio-standard for fingerstyle bass.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('ampeg', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_ampeg_rev",label:"Amp: Ampeg Reverbrocket",category:"Vintage",description:"Ampeg Reverbrocket tonestack (tonestacks.lib ampeg_rev). Vintage Ampeg combo character.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('ampeg_rev', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_bogner",label:"Amp: Bogner Triple Giant",category:"Vintage",description:"Bogner Triple Giant Preamp tonestack (tonestacks.lib bogner). Modern boutique high-gain character — rich + harmonically dense, a contemporary Marshall lineage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('bogner', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_groove",label:"Amp: Bogner Trio Preamp",category:"Vintage",description:"Bogner Trio Preamp tonestack (tonestacks.lib groove). Bogner's channel-switching preamp character.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('groove', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_crunch",label:"Amp: Hughes & Kettner",category:"Vintage",description:"Hughes & Kettner tonestack (tonestacks.lib crunch). Modern German tube-amp character — clean + dynamic with reliable harmonic structure.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('crunch', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_fender_blues",label:"Amp: Fender Blues Junior",category:"Vintage",description:"Fender Blues Junior tonestack (tonestacks.lib fender_blues). Smaller-format Fender for blues + roots music — warm + responsive.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('fender_blues', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_fender_default",label:"Amp: Fender (generic)",category:"Vintage",description:"Generic Fender tonestack (tonestacks.lib fender_default). Reference average-Fender EQ shape — start here when you're unsure which specific Fender circuit to model.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('fender_default', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_fender_deville",label:"Amp: Fender Hot Rod DeVille",category:"Vintage",description:"Fender Hot Rod DeVille tonestack (tonestacks.lib fender_deville). Larger Hot-Rod-series character — chimey clean + responsive crunch channel.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('fender_deville', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"amp_gibsen",label:"Amp: Gibson GS12 Reverbrocket",category:"Vintage",description:"Gibson GS12 Reverbrocket tonestack (tonestacks.lib gibsen). Vintage Gibson combo character — included for completeness across the brand lineage.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"treble",label:"Treble",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"middle",label:"Middle",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"bass",label:"Bass",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],imports:["tonestacks.lib"],toBox:{outputs:{out:"prim('gibsen', param('treble'), param('middle'), param('bass'), input('in'))"}}},{kind:"wah_crybaby",label:"Wah: CryBaby",category:"Vintage",description:"CryBaby wah pedal emulation (vaeffects.lib ve.crybaby). The legendary Dunlop wah with its characteristic resonant filter sweep. The Wah knob (0..1) sweeps the resonance center frequency from heel-down (dark) to toe-down (bright).",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"wah",label:"Wah",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"prim('crybaby', param('wah'), input('in'))"}},imports:["vaeffects.lib"]},{kind:"wah_auto",label:"Wah: Auto",category:"Vintage",description:"Envelope-controlled auto-wah (vaeffects.lib ve.autowah). Modulates the filter sweep based on the input envelope — louder = brighter. Funky 70s effect popular in soul, disco, and reggae.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"level",label:"Level",init:.5,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"prim('autowah', param('level'), input('in'))"}},imports:["vaeffects.lib"]},{kind:"wah_4pole",label:"Wah: 4-Pole (Moog VCF)",category:"Vintage",description:"4th-order wah using cascaded Moog VCF stages (vaeffects.lib ve.wah4). Steeper sweep than the standard CryBaby — pronounced filter character + more dramatic frequency emphasis. Use for resonant synth-style wah effects.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:800,min:200,max:3e3,step:1,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{outputs:{out:"prim('wah4', param('freq'), input('in'))"}},imports:["vaeffects.lib"]}]};export{i as default};
@@ -1 +0,0 @@
1
- var e={packId:"faust",title:"Faust Standard Library Nodes",version:35,ownerHandle:"faustwave",description:"Default Builder node-kinds wrapping the Faust standard library — oscillators, filters, effects, dynamics, envelopes, math utilities, instrument physical models, monitors, analyzers. Wraps `stdfaust.lib` (os.* / fi.* / re.* / ef.* / co.* / pm.* / ve.* / en.* / no.* / ba.* / si.* / ma.* / de.* / an.* etc.). v27 added envelope_follower, bandpass, pitch_shifter, gate, comb_filter, wavefolder, bitcrusher, dc_blocker. v28 adds four math primitives: sub (a-b), div (a/b with divide-by-zero guard), round (nearest integer), ftom (Hz → MIDI semitones) — unblocking autotune-snap and other pitch-arithmetic graphs. v30 corrects the mtof usage note: midi_note.freq is ALREADY Hz, mtof only belongs after note-number outputs (the old text steered AI-built patches into a Hz→mtof double conversion = silence). v31 rewrites pitch_quantizer as an O(1) semitone floor-snap (log2 + pow + 84-entry table) — the old seven-fold qu.quantize expansion drove libfaust into a ~160 s stack overflow when fed from complex input graphs (compiler-stability round K9); output semantics unchanged. FaustWave-specific additions (Coloration kinds + PolyBLEP oscillators from the Sound-Quality-Conventions Welle) live in the separate `faustwave-conventions` pack — both bundle, both auto-restore. Bundled with the IDE; auto-restored on first launch. Uninstall safely; restore via Settings or node_pack_restore_bundled.",kinds:[{kind:"osc",wraps:["os.osc"],label:"Oscillator",category:"Oscillators",description:"Sine oscillator at given frequency.",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",smoothing_class:"pitch"}],toBox:{outputs:{out:"lib('os', 'osc', param('freq'))"}}},{kind:"saw",wraps:["os.sawtooth"],label:"Sawtooth",category:"Oscillators",description:"Band-limited sawtooth oscillator.",drift_param:"detune",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{outputs:{out:"lib('os', 'sawtooth', param('freq'))"}}},{kind:"square",wraps:["os.square"],label:"Square",category:"Oscillators",description:"Band-limited square oscillator.",drift_param:"detune",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{outputs:{out:"lib('os', 'square', param('freq'))"}}},{kind:"tri",wraps:["os.triangle"],label:"Triangle",category:"Oscillators",description:"Band-limited triangle oscillator.",drift_param:"detune",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{outputs:{out:"lib('os', 'triangle', param('freq'))"}}},{kind:"fm_op",wraps:["os.osc"],label:"FM Operator",category:"Oscillators",description:"Single FM operator — sine carrier with optional FM input. freq_in sets the base pitch (Hz). mod_in is an audio modulation source (typically another oscillator or fm_op output) — its instantaneous value drives the carrier's frequency deviation. Building block for chained FM topologies; alone it's just a sine. Ratio multiplies freq_in for harmonic relationships (1 = unison, 2 = octave, 3.5 = inharmonic bell partial). Mod Amount is the deviation in Hz at unit modulator amplitude.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"mod_in",label:"mod",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:8e3,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"ratio",label:"Ratio",init:1,min:.25,max:16,step:.01,style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"mod_amount",label:"Mod Amount",init:200,min:0,max:2e3,step:1,unit:"Hz",style:"knob",smoothing_class:"drive"},{type:"hslider",id:"level",label:"Level",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"}],toBox:{outputs:{out:"times(lib('os', 'osc', plus(times(param('freq'), param('ratio')), times(input('mod_in'), param('mod_amount')))), param('level'))"}}},{kind:"fm_2op_voice",wraps:["en.ar","os.osc"],label:"FM 2-Op Voice",category:"Oscillators",description:"Complete 2-operator FM voice (modulator → carrier) with built-in AR envelopes on both. The classic DX7 building block — most of the iconic Yamaha sounds (E-Piano, Bell, FM Bass, Brass) come from variations of this two-operator topology. Mod Ratio sets harmonic relationship (1 = unison/EP, 3.5 = bell partial, 7 = harsh metallic), Mod Index is the FM strength (0-10, classic FM textbook units). Separate AR envelopes on the modulator (shapes timbre) and carrier (shapes amplitude).",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:20,max:4e3,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"mod_ratio",label:"Mod Ratio",init:3.5,min:.25,max:16,step:.01,style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"mod_index",label:"Mod Index",init:4,min:0,max:10,step:.01,style:"knob",smoothing_class:"drive"},{type:"hslider",id:"mod_attack",label:"Mod Attack",init:.005,min:.001,max:2,step:.001,unit:"s"},{type:"hslider",id:"mod_release",label:"Mod Release",init:.4,min:.001,max:5,step:.001,unit:"s"},{type:"hslider",id:"car_attack",label:"Car Attack",init:.005,min:.001,max:2,step:.001,unit:"s"},{type:"hslider",id:"car_release",label:"Car Release",init:.8,min:.001,max:5,step:.001,unit:"s"},{type:"hslider",id:"level",label:"Level",init:.6,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"gate",label:"Gate",init:0}],toBox:{defs:{mod_env:"lib('en', 'ar', param('mod_attack'), param('mod_release'), param('gate'))",car_env:"lib('en', 'ar', param('car_attack'), param('car_release'), param('gate'))",mod_freq:"times(param('freq'), param('mod_ratio'))",modulator:"times(times(times(lib('os', 'osc', def('mod_freq')), def('mod_env')), param('mod_index')), def('mod_freq'))"},outputs:{out:"times(times(lib('os', 'osc', plus(param('freq'), def('modulator'))), def('car_env')), param('level'))"}}},{kind:"button",label:"Button",category:"Triggers",description:"Momentary trigger — outputs 1 while clicked & held, 0 otherwise. Wire to an envelope's gate input or any control input for a manual play / hit / pluck affordance.",inputs:[],outputs:[{id:"out",label:"gate",kind:"trigger"}],params:[{type:"button",id:"gate",label:"Gate",init:0}],toBox:{outputs:{out:"param('gate')"}}},{kind:"midi_key",midi:{listens:"notes",channelParam:"channel"},wraps:["[midi:key]","[midi:keyon]"],label:"MIDI Key",category:"Triggers",description:"Per-note MIDI gate + velocity via Faust's official `[midi:key NN CHAN]` / `[midi:keyon NN CHAN]` binding metadata. `gate` outputs 1 while the chosen MIDI note is held, 0 otherwise. `velocity` outputs the note-on velocity normalised to 0..1 (latches at the last note-on level). Drop one per drum voice in a kit (kick → 36, snare → 38, closed hat → 42, …); wire gate to your envelope, multiply velocity into the voice's amp path for per-hit dynamics. The `MIDI Channel` param filters which channel this voice responds to — 0 = Omni (any channel, default), 1-16 = listen only on that channel (use 10 for the GM Drum channel; per-track channel routing lets one sequencer drive multiple kits without crosstalk). Both Note and Channel are baked into the Faust source at compile time, so changing them triggers a recompile (recompileOnChange).",inputs:[],outputs:[{id:"gate",label:"gate",kind:"trigger"},{id:"velocity",label:"vel",kind:"control"}],params:[{type:"nentry",id:"note",label:"MIDI Note",init:36,min:0,max:127,step:1,tooltip:"GM Drum Map: 36 kick · 38 snare · 39 clap · 42 closed hat · 46 open hat · 49 crash · 51 ride",recompileOnChange:!0},{type:"nentry",id:"channel",label:"MIDI Channel",init:0,min:0,max:16,step:1,tooltip:"0 = Omni (any channel), 1-16 = listen only on that channel. GM Drums = 10.",recompileOnChange:!0}],toBox:{outputs:{gate:"prim('button', tplStr('{faustId}/key_{literal:note}_ch{literal:channel}[midi:key {literal:note} {literal:channel}]'))",velocity:"prim('hslider', tplStr('{faustId}/vel_{literal:note}_ch{literal:channel}[midi:keyon {literal:note} {literal:channel}]'), int(0), int(0), int(1), real(0.001))"}}},{kind:"checkbox",label:"Checkbox",category:"Triggers",description:'Latching toggle — clicking flips between 0 and 1 and the value stays. Useful for sustained gates ("hold this note on") and binary switches.',inputs:[],outputs:[{id:"out",label:"value",kind:"control"}],params:[{type:"checkbox",id:"value",label:"On",init:0}],toBox:{outputs:{out:"param('value')"}}},{kind:"noise",wraps:["no.noise"],label:"Noise",category:"Sources",description:"White noise source, gain-scaled.",inputs:[],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,smoothing_class:"volume"}],toBox:{outputs:{out:"times(lib('no', 'noise'), param('gain'))"}}},{kind:"pink_noise",wraps:["no.pink_noise"],label:"Pink Noise",category:"Sources",description:"1/f noise generator (noises.lib no.pink_noise). Equal energy per octave — sounds more natural than white noise. Standard for ambient washes, vinyl-hiss, subtractive drum-synth source.",inputs:[],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,smoothing_class:"volume"}],toBox:{outputs:{out:"times(lib('no', 'pink_noise'), param('gain'))"}}},{kind:"colored_noise",wraps:["no.colored_noise"],label:"Colored Noise",category:"Sources",description:"Variable-tilt noise (noises.lib no.colored_noise). Tilt slider controls spectral roll-off across the audible band: 0 = white, +1 = pink, +2 = brown/red, −1 = blue, −2 = violet.",inputs:[{id:"tilt_in",label:"tilt",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"tilt",label:"Tilt",init:1,min:-2,max:2,step:.01,style:"knob",smoothing_class:"cutoff"},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"}],toBox:{outputs:{out:"times(lib('no', 'colored_noise', int(8), param('tilt')), param('gain'))"}}},{kind:"lp",label:"Lowpass",category:"Filters",description:"2nd-order Butterworth lowpass filter — the response of fi.lowpass(2, cutoff), as a state-variable filter (fi.svf's topology, Q = 1/√2) whose coefficient is smoothed, not its knob: tan() runs once per audio block instead of every sample. A smoothed knob is a signal, and a filter on it recomputed its coefficients every sample — two thirds of a drum kit's cost (docs/DRUMS-KIT-FAKTEN-ZIEL.md @576da42b).",drift_param:"cutoff",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"},{id:"velocity_in",label:"velocity",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:1e3,min:20,max:2e4,step:1,unit:"Hz",scale:"log",style:"knob",velocity_responds:.3}],toBox:{outputs:{out:"seq(parN(input('in'), seq(param('cutoff'), raw(\"(tan(_ * ma.PI / ma.SR) : si.smooth(ba.tau2pole(0.05)))\", 1, 1))), raw(\"(svf with { svf(x, g) = x : (t ~ (_, _)) : !, !, _ with { k = sqrt(2); t(s1, s2, v0) = 2 * v1 - s1, 2 * v2 - s2, v2 with { v1 = (s1 + g * (v0 - s2)) / (1 + g * (g + k)); v2 = s2 + g * v1; }; }; })\", 2, 1))"}}},{kind:"hp",label:"Highpass",category:"Filters",description:"2nd-order Butterworth highpass filter — the response of fi.highpass(2, cutoff), as a state-variable filter (fi.svf's topology, Q = 1/√2) whose coefficient is smoothed, not its knob: tan() runs once per audio block instead of every sample.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:200,min:20,max:2e4,step:1,unit:"Hz",scale:"log",style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), seq(param('cutoff'), raw(\"(tan(max(1, _) * ma.PI / ma.SR) : si.smooth(ba.tau2pole(0.05)))\", 1, 1))), raw(\"(svf with { svf(x, g) = x : (t ~ (_, _)) : !, !, _ with { k = sqrt(2); t(s1, s2, v0) = 2 * v1 - s1, 2 * v2 - s2, v0 - k * v1 - v2 with { v1 = (s1 + g * (v0 - s2)) / (1 + g * (g + k)); v2 = s2 + g * v1; }; }; })\", 2, 1))"}}},{kind:"moog_vcf",label:"Moog VCF",category:"Filters",description:"Moog-style 4-pole ladder lowpass filter. The classic warm/squelchy 303-flavoured sound. High resonance self-oscillates — the response of ve.moog_vcf_2bn(res, cutoff): its two normalized-ladder biquads, with their reflection coefficients, complements and tap gains computed straight from the analog coefficients as fi.tf2snp does since faustlibraries 1.13 (nothing cancels at a low cutoff), computed from the knobs once per audio block and smoothed (landing on their target), not the knobs, which made it run tan, sqrt and the ladder normalization every sample. Ten of them: 4.7 → 1.2 % of the block — and closer to the held library than a smoothed knob, whose float one-pole stalls short of its target.",drift_param:"cutoff",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"},{id:"res_in",label:"res",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:1e3,min:20,max:2e4,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"res",label:"Resonance",init:.3,min:0,max:1,step:.001}],toBox:{outputs:{out:"seq(parN(input('in'), param('res'), param('cutoff')), raw(\"(mg with { mg(x, res, fr) = x : stage(a11, a01) : stage(a12, a02) with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.05); }; w1 = 2 * ma.PI * max(fr, 20); k = sqrt(2) * 0.99999 * res; s2k = sqrt(2) * k; a11 = 2 + s2k; a12 = 2 - s2k; a01 = 1 + s2k + k * k; a02 = 1 - s2k + k * k; t = tan(max(0, min(w1 * 0.5 / ma.SR, 0.499 * ma.PI))); lat1(s, c) = _ <: *(s), (*(c) : (+ : _) ~ *(0 - s)) : _, (_ <: (mem : *(c)), _) : +, _; lat2(s1, c1, s2, c2) = _ <: *(s2), (*(c2) : (+ : lat1(s1, c1)) ~ *(0 - s2)) : _, (_ <: (mem : *(c2)), _), _ : +, _, _; stage(a1, a0) = lat2(s1, c1, s2, c2) : *(t0), *(t1), *(t2) :> _ with { A0 = a0 * t * t; A1 = a1 * t; B0 = t * t; D = A0 + A1 + 1; smax = 1.0 - ma.EPSILON; cmin = sqrt(1.0 - smax * smax); s2r = max(0 - smax, min(smax, (A0 - A1 + 1) / D)); s1r = max(0 - smax, min(smax, (A0 - 1) / (A0 + 1))); c2r = max(cmin, 2 * sqrt(max(0, A1 * (A0 + 1))) / D); c1r = max(cmin, 2 * sqrt(max(0, A0)) / (A0 + 1)); nu2 = B0 / D; nu1 = 2 * B0 * (A1 + 2) / (D * D); nu0 = 4 * B0 * (A1 + 1 - A0) / (D * D * (A0 + 1)); s1 = s1r : land; s2 = s2r : land; c1 = c1r : land; c2 = c2r : land; t0 = nu2 : land; t1 = nu1 / c2r : land; t2 = nu0 / (c2r * c1r) : land; }; }; })\", 3, 1))"}}},{kind:"korg35_lp",label:"Korg 35 LP",category:"Filters",description:'Korg 35 low-pass filter (vaeffects.lib ve.korg35LPF) — 2-pole resonant ladder modeled on the MS-10 / MS-20. Bright, glassy resonance with a distinct character versus the warm Moog VCF; high Q values self-oscillate cleanly. The cutoff is in Hz — until 2026-10-30 the node passed cutoff·2/SR where the library wants its own normalized frequency (20·10^(3n) Hz), so "1000 Hz" played at about 27 Hz and the knob never passed ~3.5 kHz. The ladder is vaeffects.lib\'s own, its coefficients computed from the knobs once per audio block and smoothed (landing on their target), not the knobs — which made it run tan, pow and its divisions every sample. Ten of them: 2.4 → 0.4 % of the block.',drift_param:"cutoff",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"},{id:"q_in",label:"q",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:1e3,min:20,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"q",label:"Q",init:1,min:.5,max:10,step:.01,style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('cutoff'), param('q')), raw(\"(lad with { lad(x, f, Q) = x : kf(f, Q) with { kf(f, Q) = _ <: (s1, s2, s3, y) : !, !, !, _ letrec { 's1 = _-s1:_*(alpha*2):_+s1; 's2 = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2):_*alpha0:_-s3:_*alpha:_+s3:_*K:_-s2:_*(alpha*2):_+s2; 's3 = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2):_*alpha0:_-s3:_*(alpha*2):_+s3; 'y = _-s1:_*alpha:_+s1:_+(s3*B3):_+(s2*B2):_*alpha0:_-s3:_*alpha:_+s3; } with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.05); }; invSqrt2 = 1 / sqrt(2); K = 2.0 * (Q - invSqrt2) / (10.0 - invSqrt2) : land; g = tan(ma.PI * max(f, 20) / ma.SR) : land; G = g / (1.0 + g); alpha = G; B3 = (K - K * G) / (1 + g); B2 = -1 / (1 + g); alpha0 = 1 / (1 - K * G + K * G * G); }; }; })\", 3, 1))"}}},{kind:"diode_ladder",label:"Diode Ladder",category:"Filters",description:"Diode ladder filter (vaeffects.lib ve.diodeLadder) — TB-303 acid-bass character. Internally over-driven (built-in soft saturation in the lib), so it stays musical at high Q and doesn't blow up like a clean math-perfect ladder. The cutoff is in Hz — until 2026-10-30 the node passed cutoff·2/SR where the library wants its own normalized frequency (20·10^(3n) Hz), so \"1000 Hz\" played at about 27 Hz and the knob never passed ~3.5 kHz. The ladder is vaeffects.lib's own, its coefficients computed from the knobs once per audio block and smoothed (landing on their target), not the knobs — which made it run tan, pow and its divisions every sample. Ten of them: 6.2 → 1.4 % of the block.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"},{id:"q_in",label:"q",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:800,min:20,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"q",label:"Q",init:2,min:.5,max:10,step:.01,style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('cutoff'), param('q')), raw(\"(lad with { lad(x, f, Q) = x : kf(f, Q) with { kf(f, Q) = ef.cubicnl(1,0)*1.5 <: (s1, s2, s3, s4, y) : !, !, !, !, _ letrec { 's1 = _-(s4*B4*SG4*k) : _-((s4*B4*d3+s3)*B3*SG3*k) : _-(((s4*B4*d3+s3)*B3*d2 + s2)*B2*SG3*k) : _-((((s4*B4*d3+s3)*B3*d2 + s2)*B2*d1 + s1)*B1*SG1*k) : _*alpha0 : _*gam1 : _+((s4*B4*d3+s3)*B3*d2 + s2)*B2 : _+((((s4*B4*d3+s3)*B3*d2 + s2)*B2)*d1 + s1)*B1*G2 : _*a1 : _-s1 : _*alpha*2 : _+s1; 's2 = _-(s4*B4*SG4*k) : _-((s4*B4*d3+s3)*B3*SG3*k) : _-(((s4*B4*d3+s3)*B3*d2 + s2)*B2*SG3*k) : _-((((s4*B4*d3+s3)*B3*d2 + s2)*B2*d1 + s1)*B1*SG1*k) : _*alpha0 : _*gam1 : _+((s4*B4*d3+s3)*B3*d2 + s2)*B2 : _+((((s4*B4*d3+s3)*B3*d2 + s2)*B2)*d1 + s1)*B1*G2 : _*a1 : _-s1 : _*alpha : _+s1 : _*gam2 : _+(s4*B4*d3 + s3)*B3 : _+(((s4*B4*d3 + s3)*B3)*d2 + s2)*B2*G3 : _*a2 : _-s2 : _*alpha*2 : _+s2; 's3 = _-(s4*B4*SG4*k) : _-((s4*B4*d3+s3)*B3*SG3*k) : _-(((s4*B4*d3+s3)*B3*d2 + s2)*B2*SG3*k) : _-((((s4*B4*d3+s3)*B3*d2 + s2)*B2*d1 + s1)*B1*SG1*k) : _*alpha0 : _*gam1 : _+((s4*B4*d3+s3)*B3*d2 + s2)*B2 : _+((((s4*B4*d3+s3)*B3*d2 + s2)*B2)*d1 + s1)*B1*G2 : _*a1 : _-s1 : _*alpha : _+s1 : _*gam2 : _+(s4*B4*d3 + s3)*B3 : _+(((s4*B4*d3 + s3)*B3)*d2 + s2)*B2*G3 : _*a2 : _-s2 : _*alpha : _+s2 : _*gam3 : _+s4*B4 : _+((s4*B4)*d3 + s3)*B3*G4 : _*a3 : _-s3 : _*alpha*2 : _+s3; 's4 = _-(s4*B4*SG4*k) : _-((s4*B4*d3+s3)*B3*SG3*k) : _-(((s4*B4*d3+s3)*B3*d2 + s2)*B2*SG3*k) : _-((((s4*B4*d3+s3)*B3*d2 + s2)*B2*d1 + s1)*B1*SG1*k) : _*alpha0 : _*gam1 : _+((s4*B4*d3+s3)*B3*d2 + s2)*B2 : _+((((s4*B4*d3+s3)*B3*d2 + s2)*B2)*d1 + s1)*B1*G2 : _*a1 : _-s1 : _*alpha : _+s1 : _*gam2 : _+(s4*B4*d3 + s3)*B3 : _+(((s4*B4*d3 + s3)*B3)*d2 + s2)*B2*G3 : _*a2 : _-s2 : _*alpha : _+s2 : _*gam3 : _+s4*B4 : _+((s4*B4)*d3 + s3)*B3*G4 : _*a3 : _-s3 : _*alpha : _+s3 : _*gam4 : _*a4 : _-s4 : _*alpha*2 : _+s4; 'y = _-(s4*B4*SG4*k) : _-((s4*B4*d3+s3)*B3*SG3*k) : _-(((s4*B4*d3+s3)*B3*d2 + s2)*B2*SG3*k) : _-((((s4*B4*d3+s3)*B3*d2 + s2)*B2*d1 + s1)*B1*SG1*k) : _*alpha0 : _*gam1 : _+((s4*B4*d3+s3)*B3*d2 + s2)*B2 : _+((((s4*B4*d3+s3)*B3*d2 + s2)*B2)*d1 + s1)*B1*G2 : _*a1 : _-s1 : _*alpha : _+s1 : _*gam2 : _+(s4*B4*d3 + s3)*B3 : _+(((s4*B4*d3 + s3)*B3)*d2 + s2)*B2*G3 : _*a2 : _-s2 : _*alpha : _+s2 : _*gam3 : _+s4*B4 : _+((s4*B4)*d3 + s3)*B3*G4 : _*a3 : _-s3 : _*alpha : _+s3 : _*gam4 : _*a4 : _-s4 : _*alpha : _+s4; } with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.05); }; normFreq = log10(max(f, 20) / 20) / 3; invSqrt2 = 1 / sqrt(2); kr = (17 - (normFreq^10) * 9.7) * (Q - invSqrt2) / (25.0 - invSqrt2); gr = tan(ma.PI * max(f, 20) / ma.SR); G4r = 0.5*gr/(1 + gr); G3r = 0.5*gr/(1 + gr - 0.5*gr*G4r); G2r = 0.5*gr/(1 + gr - 0.5*gr*G3r); G1r = gr/(1.0 + gr - gr*G2r); k = kr : land; G2 = G2r : land; G3 = G3r : land; G4 = G4r : land; SG1 = G4r*G3r*G2r : land; SG3 = G4; SG4 = 1; alpha = gr/(1+gr) : land; alpha0 = 1/(1+kr*G1r*G2r*G3r*G4r) : land; gam1 = 1+G1r*G2r : land; gam2 = 1+G2r*G3r : land; gam3 = 1+G3r*G4r : land; gam4 = 1; a1 = 1; a2 = 0.5; a3 = 0.5; a4 = 0.5; B1 = 1/(1+gr-gr*G2r) : land; B2 = 1/(1+gr-0.5*gr*G3r) : land; B3 = 1/(1+gr-0.5*gr*G4r) : land; B4 = 1/(1+gr) : land; d1 = gr : land; d2 = 0.5*d1; d3 = d2; }; }; })\", 3, 1))"}}},{kind:"oberheim_lp",label:"Oberheim LP",category:"Filters",description:"Oberheim SEM-style state-variable low-pass (vaeffects.lib ve.oberheimLPF) — smoother and more open than the Moog ladder; the resonance bell stays even-tempered without becoming harsh. Sits between the Korg 35's brightness and the Moog VCF's warmth. The cutoff is in Hz — until 2026-10-30 the node passed cutoff·2/SR where the library wants its own normalized frequency (20·10^(3n) Hz), so \"1000 Hz\" played at about 27 Hz and the knob never passed ~3.5 kHz. The ladder is vaeffects.lib's own, its coefficients computed from the knobs once per audio block and smoothed (landing on their target), not the knobs — which made it run tan, pow and its divisions every sample. Ten of them: 2.7 → 0.8 % of the block.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"cutoff_in",label:"cutoff",kind:"control"},{id:"q_in",label:"q",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"cutoff",label:"Cutoff",init:1500,min:20,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"q",label:"Q",init:1,min:.5,max:10,step:.01,style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('cutoff'), param('q')), raw(\"(lad with { lad(x, f, Q) = x : kf(f, Q) with { kf(f, Q) = _ <: (s1, s2, ybsf, ybpf, yhpf, ylpf) : !, !, !, !, !, _ letrec { 's1 = _-s2:_-(s1*FBs1):_*alpha0:_*g<:_,(_+s1:ef.cubicnl(0.0,0)):>_; 's2 = _-s2:_-(s1*FBs1):_*alpha0:_*g:_+s1:ef.cubicnl(0.0,0):_*g*2:_+s2; 'ybsf = _-s2:_-(s1*FBs1):_*alpha0<:(_*g:_+s1:ef.cubicnl(0.0,0):_*g:_+s2),_:>_; 'ybpf = _-s2:_-(s1*FBs1):_*alpha0:_*g:_+s1:ef.cubicnl(0.0,0); 'yhpf = _-s2:_-(s1*FBs1):_*alpha0; 'ylpf = _-s2:_-(s1*FBs1):_*alpha0:_*g :_+s1:ef.cubicnl(0.0,0):_*g:_+s2; } with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.05); }; g = tan(ma.PI * max(f, 20) / ma.SR) : land; R = 1 / (2 * Q) : land; FBs1 = (2 * R + g); alpha0 = 1 / (1 + 2 * R * g + g * g); }; }; })\", 3, 1))"}}},{kind:"peak_eq",label:"Peak EQ",category:"Filters",description:"Parametric peak EQ band — the response of fi.peak_eq(gain, freq, bandwidth). Boost or cut a single mid-frequency band — set frequency, gain in dB (positive = boost, negative = cut), and bandwidth in Hz. fi.peak_eq's own biquad (its bandwidth as corrected in faustlibraries 1.13: the s-plane bandwidth 2π·B, before it was half the width asked for), its coefficients computed from the knobs once per audio block and then smoothed — not the knobs, which made it run tan, pow and sin every sample (14 times the cost). The smoothing lands on its target, so a held band is exactly the library's.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"freq_in",label:"freq",kind:"control"},{id:"gain_in",label:"gain",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:1e3,min:20,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:0,min:-24,max:24,step:.1,unit:"dB",style:"knob"},{type:"hslider",id:"bandwidth",label:"Bandwidth",init:800,min:50,max:5e3,step:1,unit:"Hz",scale:"log",style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('gain'), param('freq'), param('bandwidth')), raw(\"(peq with { land(x) = y ~ _ with { y(p) = select2(abs(x - p) < 2e-4 * abs(x) + 1e-9, (1 - s) * x + s * p, x); s = ba.tau2pole(0.01); }; peq(x, L, f, B) = x : fi.tf2(land(b0d), land(b1d), land(b2d), land(a1d), land(a2d)) with { T = 1 / ma.SR; wx = 2 * ma.PI * max(0.001, min(f, 0.499 * ma.SR)); Bw = B * T / sin(wx * T); a1 = 2 * ma.PI * Bw; g = ba.db2linear(abs(L)); b1 = g * a1; b1s = select2(L > 0, a1, b1); a1s = select2(L > 0, b1, a1); c = 1 / tan(max(0, min(wx * 0.5 / ma.SR, 0.499 * ma.PI))); csq = c * c; d = 1 + a1s * c + csq; b0d = (1 + b1s * c + csq) / d; b1d = 2 * (1 - csq) / d; b2d = (1 - b1s * c + csq) / d; a1d = 2 * (1 - csq) / d; a2d = (1 - a1s * c + csq) / d; }; })\", 4, 1))"}}},{kind:"bandpass",label:"Bandpass",category:"Filters",description:"Resonant bandpass filter — the response of fi.resonbp(freq, q, gain): a 2-pole band with center frequency and quality factor (Q = freq/bandwidth — high Q = narrow ringing band); at the center the gain is gain·Q. Cleaner than chaining lp+hp for the same band, and inherently resonant so it can self-oscillate at high Q. Building block for vocoders, formant filters, multi-band processing. Built as a state-variable filter (fi.svf's topology) whose coefficients are smoothed, not its knobs: tan() and 1/Q run once per audio block instead of every sample.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"freq_in",label:"freq",kind:"control"},{id:"q_in",label:"q",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:1e3,min:20,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"q",label:"Q",init:5,min:.5,max:50,step:.1,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:1,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"}],toBox:{outputs:{out:"times(seq(parN(input('in'), seq(param('freq'), raw(\"(tan(_ * ma.PI / ma.SR) : si.smooth(ba.tau2pole(0.005)))\", 1, 1)), seq(param('q'), raw(\"(1 / max(_, 0.001) : si.smooth(ba.tau2pole(0.05)))\", 1, 1))), raw(\"(svf with { svf(x, g, k) = x : (t ~ (_, _)) : !, !, _ with { t(s1, s2, v0) = 2 * v1 - s1, 2 * v2 - s2, v1 with { v1 = (s1 + g * (v0 - s2)) / (1 + g * (g + k)); v2 = s2 + g * v1; }; }; })\", 3, 1)), param('gain'))"}}},{kind:"comb_filter",wraps:["fi.fb_fcomb","ma.SR"],label:"Comb Filter",category:"Filters",description:"Feedback comb filter (filters.lib fi.fb_fcomb). A short delay fed back into itself produces a resonant peak at f = 1/delay_time and integer multiples — the building block of Karplus-Strong, flangers, and metallic resonator effects. Delay Time sets the resonance pitch (shorter = higher pitch), Feedback sets the resonance sharpness (close to 1.0 = long ringing). Mix balances dry+wet.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"time_in",label:"time",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"time",label:"Delay Time",init:10,min:.1,max:100,step:.01,unit:"ms",scale:"log",style:"knob"},{type:"hslider",id:"feedback",label:"Feedback",init:.7,min:0,max:.95,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('fi', 'fb_fcomb', int(8192), over(times(param('time'), lib('ma', 'SR')), int(1000)), real(1.0), param('feedback'))), param('mix')))"}}},{kind:"dc_blocker",label:"DC Blocker",category:"Filters",description:"DC offset blocker (filters.lib fi.dcblocker). A near-zero-Hz high-pass filter that removes DC bias from the signal. Place after any non-linear processor (wavefolder, ring-mod, asymmetric distortion) where DC offsets accumulate and silently break downstream gain stages, meters, and limiters. The default response has a -3 dB point at ~35 Hz, so it doesn't audibly affect anything in the music band.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"seq(input('in'), raw('fi.dcblocker', 1, 1))"}}},{kind:"low_shelf",label:"Low Shelf",category:"Filters",description:"Low-shelf EQ (filters.lib fi.low_shelf). Boost or cut all frequencies below the corner. Classic warmth knob — gentle low-shelf boost adds body, cut tames mud below 200 Hz. Gain in dB — the response of fi.low_shelf(gain, freq). filters.lib's own 3rd-order Butterworth split (a highpass and a lowpass, one weighted by the gain), its coefficients computed from the knobs once per audio block and smoothed — landing on their target — not the knobs, which made it run tan and pow every sample. Ten of them: 2.4 → 0.7 % of the block.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"freq_in",label:"freq",kind:"control"},{id:"gain_in",label:"gain",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:200,min:20,max:2e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:0,min:-24,max:24,step:.1,unit:"dB",style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('gain'), param('freq')), raw(\"(sh with { sh(x, L, f) = x <: (hi : *(1)), (lo : *(g)) :> _ with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.01); }; c = 1 / tan(ma.PI * f / ma.SR); d1 = 1 + c; d2 = 1 + c + c * c; p1 = 1 / d1 : land; q1 = c / d1 : land; a11 = (1 - c) / d1 : land; p2 = 1 / d2 : land; q2 = c * c / d2 : land; a21 = 2 * (1 - c * c) / d2 : land; a22 = (1 - c + c * c) / d2 : land; lo = fi.tf1(p1, p1, a11) : fi.tf2(p2, 2 * p2, p2, a21, a22); hi = fi.tf1(q1, 0 - q1, a11) : fi.tf2(q2, 0 - 2 * q2, q2, a21, a22); g = ba.db2linear(L) : land; }; })\", 3, 1))"}}},{kind:"high_shelf",label:"High Shelf",category:"Filters",description:"High-shelf EQ (filters.lib fi.high_shelf). Boost or cut everything above the corner. Brightness control — small boost above 8 kHz adds 'air'; cut above 6 kHz darkens / de-esses. Gain in dB — the response of fi.high_shelf(gain, freq). filters.lib's own 3rd-order Butterworth split (a highpass and a lowpass, one weighted by the gain), its coefficients computed from the knobs once per audio block and smoothed — landing on their target — not the knobs, which made it run tan and pow every sample. Ten of them: 2.4 → 0.7 % of the block.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"freq_in",label:"freq",kind:"control"},{id:"gain_in",label:"gain",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:6e3,min:1e3,max:18e3,step:1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:0,min:-24,max:24,step:.1,unit:"dB",style:"knob"}],toBox:{outputs:{out:"seq(parN(input('in'), param('gain'), param('freq')), raw(\"(sh with { sh(x, L, f) = x <: (hi : *(g)), (lo : *(1)) :> _ with { land(v) = y ~ _ with { y(p) = select2(abs(v - p) < 2e-4 * abs(v) + 1e-9, (1 - s) * v + s * p, v); s = ba.tau2pole(0.01); }; c = 1 / tan(ma.PI * f / ma.SR); d1 = 1 + c; d2 = 1 + c + c * c; p1 = 1 / d1 : land; q1 = c / d1 : land; a11 = (1 - c) / d1 : land; p2 = 1 / d2 : land; q2 = c * c / d2 : land; a21 = 2 * (1 - c * c) / d2 : land; a22 = (1 - c + c * c) / d2 : land; lo = fi.tf1(p1, p1, a11) : fi.tf2(p2, 2 * p2, p2, a21, a22); hi = fi.tf1(q1, 0 - q1, a11) : fi.tf2(q2, 0 - 2 * q2, q2, a21, a22); g = ba.db2linear(L) : land; }; })\", 3, 1))"}}},{kind:"reverb",wraps:["re.mono_freeverb"],label:"Reverb",category:"Effects",description:"Mono freeverb-style reverb. Adds spatial ambience. Room controls tail length, Damp rolls off highs, Mix is dry/wet.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"room",label:"Room",init:.7,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"damp",label:"Damp",init:.5,min:0,max:1,step:.01,smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.01,smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('re', 'mono_freeverb', param('room'), param('room'), param('damp'), real(0))), param('mix')))"}}},{kind:"lush_reverb",wraps:["re.jpverb"],label:"Lush Reverb",category:"Effects",description:"Algorithmic reverb (reverbs.lib re.jpverb) inspired by classic Lexicon / Alesis units. Lusher and more modulated than mono_freeverb. T60 controls decay length, Damp the high-frequency roll-off, Size the apparent room scale, Mix the dry/wet balance.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"t60",label:"T60",init:3,min:.1,max:30,step:.1,unit:"s",style:"knob"},{type:"hslider",id:"damp",label:"Damp",init:.3,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"size",label:"Size",init:1,min:.5,max:3,step:.01,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.4,min:0,max:1,step:.01,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(times(seq(split(input('in'), par(wire(), wire())), seq(lib('re', 'jpverb', param('t60'), param('damp'), param('size'), real(0.6), real(0.1), real(2.0), real(1.0), real(1.0), real(1.0), int(200), int(6000)), merge(par(wire(), wire()), wire()))), real(0.5)), param('mix')))"}}},{kind:"distortion",wraps:["ef.cubicnl"],label:"Distortion",category:"Effects",description:"Cubic soft-clipping saturation. Higher Drive = more harmonics + compression. Offset shifts the curve for asymmetric distortion.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:.5,min:0,max:1,step:.001,smoothing_class:"drive"},{type:"hslider",id:"offset",label:"Offset",init:0,min:-.5,max:.5,step:.001,smoothing_class:"drive"}],toBox:{outputs:{out:"seq(input('in'), lib('ef', 'cubicnl', param('drive'), param('offset')))"}}},{kind:"softclip",wraps:["ma.tanh"],label:"Soft Clip",category:"Effects",description:"Tanh-based soft-clipping saturator — warm, smooth limiting that's gentler than the cubic Distortion node. Output is gain-compensated (tanh(x·drive) / tanh(drive)) so unity-amplitude input maps to unity-amplitude output regardless of Drive.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"velocity_in",label:"velocity",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:1,min:.1,max:10,step:.01,smoothing_class:"drive",velocity_responds:.5}],toBox:{outputs:{out:"over(lib('ma', 'tanh', times(input('in'), param('drive'))), lib('ma', 'tanh', param('drive')))"}}},{kind:"delay",wraps:["de.delay","ma.SR"],label:"Delay",category:"Effects",description:"Fixed-length delay line. Time in milliseconds, max 4 s. For tempo-synced delays, drive the time input from a Tempo node instead of using the slider.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"time_in",label:"time",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"time_ms",label:"Time",init:250,min:0,max:4e3,step:.1,unit:"ms",port:"time_in"}],toBox:{outputs:{out:"lib('de', 'delay', int(524288), intCast(over(times(param('time_ms'), lib('ma', 'SR')), int(1000))), input('in'))"}}},{kind:"chorus",wraps:["os.osc","de.fdelay4","ma.SR"],label:"Chorus",category:"Effects",description:"Mono chorus — LFO-modulated short delay (~15 ms base, ±10 ms sweep) mixed with the dry signal. Adds width and movement; classic move on pads, electric pianos, clean guitar.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"rate",label:"Rate",init:.6,min:.05,max:8,step:.01,unit:"Hz",style:"knob"},{type:"hslider",id:"depth",label:"Depth",init:.6,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{defs:{lfo01:"over(plus(real(1), lib('os', 'osc', param('rate'))), real(2))",curdel_ms:"plus(real(5), times(real(10), times(param('depth'), def('lfo01'))))",curdel_samples:"over(times(def('curdel_ms'), lib('ma', 'SR')), int(1000))"},outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('de', 'fdelay4', int(2048), def('curdel_samples'))), param('mix')))"}}},{kind:"flanger",wraps:["os.osc","pf.flanger_mono","ma.SR"],label:"Flanger",category:"Effects",description:"Flanger — LFO-modulated very-short delay (0.5..5 ms) with feedback. Produces the classic 'jet sweep' comb-filter effect. High feedback narrows the sweep into resonant whooshes.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"rate",label:"Rate",init:.3,min:.05,max:8,step:.01,unit:"Hz",style:"knob"},{type:"hslider",id:"depth",label:"Depth",init:.7,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"feedback",label:"Feedback",init:.5,min:0,max:.95,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{defs:{lfo01:"over(plus(real(1), lib('os', 'osc', param('rate'))), real(2))",curdel_ms:"plus(real(0.5), times(real(4.5), times(param('depth'), def('lfo01'))))",curdel_samples:"over(times(def('curdel_ms'), lib('ma', 'SR')), int(1000))"},outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('pf', 'flanger_mono', int(512), def('curdel_samples'), int(1), param('feedback'), int(0))), param('mix')))"}}},{kind:"phaser",wraps:["pf.phaser2_mono"],label:"Phaser",category:"Effects",description:"Multi-stage notch phaser (phaflangers.lib pf.phaser2_mono) — 4 spectral notches sweeping under an LFO.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"speed",label:"Speed",init:.5,min:.05,max:8,step:.01,unit:"Hz",style:"knob"},{type:"hslider",id:"depth",label:"Depth",init:.8,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"feedback",label:"Feedback",init:.6,min:0,max:.95,step:.001,style:"knob",smoothing_class:"mix"},{type:"hslider",id:"mix",label:"Mix",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(seq(input('in'), lib('pf', 'phaser2_mono', int(4), real(0), real(1000), real(100), real(1.5), real(800), param('speed'), param('depth'), param('feedback'), real(0))), param('mix')))"}}},{kind:"compressor",wraps:["co.compressor_mono","ba.db2linear"],label:"Compressor",category:"Effects",description:"Mono feed-forward compressor (compressors.lib co.compressor_mono). Threshold in dB — signal above is gain-reduced by Ratio.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"threshold_in",label:"thresh",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"ratio",label:"Ratio",init:4,min:1,max:20,step:.1,style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"threshold",label:"Threshold",init:-18,min:-60,max:0,step:.1,unit:"dB",style:"knob"},{type:"hslider",id:"attack",label:"Attack",init:.01,min:.001,max:1,step:.001,unit:"s",style:"knob"},{type:"hslider",id:"release",label:"Release",init:.1,min:.001,max:2,step:.001,unit:"s",style:"knob"},{type:"hslider",id:"makeup",label:"Make-up",init:0,min:0,max:24,step:.1,unit:"dB",style:"knob"}],toBox:{outputs:{out:"times(seq(input('in'), lib('co', 'compressor_mono', param('ratio'), param('threshold'), param('attack'), param('release'))), lib('ba', 'db2linear', param('makeup')))"}}},{kind:"sidechain_compressor",wraps:["co.compression_gain_mono","ba.db2linear"],label:"Sidechain Comp",category:"Effects",description:"Sidechain compressor — gain-reduce 'in' based on the level of 'key'. Classic move: feed kick into key to duck the bass / pad on every kick.",inputs:[{id:"in",label:"in",kind:"audio"},{id:"key",label:"key",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"ratio",label:"Ratio",init:6,min:1,max:20,step:.1,style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"threshold",label:"Threshold",init:-24,min:-60,max:0,step:.1,unit:"dB",style:"knob"},{type:"hslider",id:"attack",label:"Attack",init:.005,min:.001,max:.5,step:.001,unit:"s",style:"knob"},{type:"hslider",id:"release",label:"Release",init:.15,min:.01,max:2,step:.001,unit:"s",style:"knob"},{type:"hslider",id:"makeup",label:"Make-up",init:0,min:0,max:24,step:.1,unit:"dB",style:"knob"}],toBox:{outputs:{out:"times(times(input('in'), seq(prim('abs', input('key')), lib('co', 'compression_gain_mono', param('ratio'), param('threshold'), param('attack'), param('release')))), lib('ba', 'db2linear', param('makeup')))"}}},{kind:"gate",wraps:["ef.gate_mono"],label:"Gate",category:"Effects",description:"Noise gate (misceffects.lib ef.gate_mono). Passes the input only when its own level exceeds Threshold dB; below threshold the signal is muted. Attack controls how fast the gate opens once threshold is crossed, Hold keeps the gate open for at least that duration after dropping below threshold (avoids chatter on borderline signals), Release controls how fast the gate closes. Self-keyed — uses the input's own level as the gating reference. Classic uses: clean mic capture (cut noise floor between phrases), trance-gate effects (LFO-modulate the threshold via threshold_in), drum-trigger gating. For sidechain-keyed gating, route the key signal through the threshold_in control input.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"threshold_in",label:"threshold",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"threshold",label:"Threshold",init:-40,min:-80,max:0,step:.1,unit:"dB",style:"knob"},{type:"hslider",id:"attack",label:"Attack",init:.001,min:1e-4,max:.1,step:1e-4,unit:"s",style:"knob"},{type:"hslider",id:"hold",label:"Hold",init:.05,min:0,max:1,step:.001,unit:"s",style:"knob"},{type:"hslider",id:"release",label:"Release",init:.1,min:.001,max:2,step:.001,unit:"s",style:"knob"}],toBox:{outputs:{out:"seq(input('in'), lib('ef', 'gate_mono', param('threshold'), param('attack'), param('hold'), param('release')))"}}},{kind:"pitch_shifter",wraps:["ef.transpose"],label:"Pitch Shifter",category:"Effects",description:"PSOLA pitch shifter (misceffects.lib ef.transpose). Shifts the input by a fixed number of semitones using overlap-add delay-line technique. Sweet spot is ±12 semitones — large shifts on transient content (drums, percussion) produce wobbling artifacts. Window length controls the segment size (samples — larger = smoother but more latency), Crossfade controls the overlap-add blend duration. Use for harmonizer-3rd / harmonizer-5th parallel layers, octave-doublers, sub-octave-fattening, gender-bend vocal processing.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"shift_in",label:"semitones",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"shift",label:"Semitones",init:0,min:-24,max:24,step:.01,style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"window",label:"Window",init:1e3,min:100,max:8e3,step:10,unit:"samples",style:"knob"},{type:"hslider",id:"xfade",label:"Crossfade",init:1e3,min:100,max:4e3,step:10,unit:"samples",style:"knob"}],toBox:{outputs:{out:"seq(input('in'), lib('ef', 'transpose', param('window'), param('xfade'), param('shift')))"}}},{kind:"wavefolder",wraps:["ef.wavefold"],label:"Wavefolder",category:"Effects",description:"Wavefolder (misceffects.lib ef.wavefold) — West-Coast / Buchla-style harmonic generator. When the input amplitude exceeds the fold threshold, the waveform 'folds' back on itself instead of clipping, producing rich additive harmonics. Low width = subtle folding (a few extra harmonics), high width = chaotic spectral noise. Pair with a sine input for classic Buchla-style harmonic morphing, or feed it complex signals for unique distortion characters. Includes a pre-gain knob to drive the folder.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:1,min:.1,max:10,step:.01,style:"knob",smoothing_class:"drive"},{type:"hslider",id:"width",label:"Width",init:.5,min:.05,max:.95,step:.001,style:"knob",smoothing_class:"drive"}],toBox:{outputs:{out:"seq(times(input('in'), param('drive')), lib('ef', 'wavefold', param('width')))"}}},{kind:"bitcrusher",wraps:["ba.bitcrusher","ba.downSample"],label:"Bitcrusher",category:"Effects",description:"Lo-fi bit + sample-rate reducer (basics.lib ba.bitcrusher + ba.downSample). Bits quantizes the sample amplitude to fewer values (1 = harsh squarewave-style, 8 = NES/Game Boy character, 16 = full-fidelity pass-through). Rate downsamples the signal by holding each sample for multiple frames before allowing a new one (low rate = aliasing artifacts, high rate = pass-through). Classic vintage/8-bit/chiptune character; pair with a lowpass after for the typical 'sample-grunge' sound.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"bits",label:"Bits",init:8,min:1,max:16,step:1,style:"knob"},{type:"hslider",id:"rate",label:"Rate",init:22050,min:500,max:48e3,step:1,unit:"Hz",scale:"log",style:"knob"}],toBox:{outputs:{out:"seq(input('in'), seq(lib('ba', 'bitcrusher', param('bits')), lib('ba', 'downSample', param('rate'))))"}}},{kind:"gain",label:"Gain",category:"Math",description:"Multiply input signal by a gain coefficient.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"gain_in",label:"gain",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:2,step:.001,style:"knob",smoothing_class:"volume"}],toBox:{outputs:{out:"times(input('in'), param('gain'))"}}},{kind:"add",label:"Add",category:"Math",description:"Sum two audio signals — useful for mixing.",inputs:[{id:"a",label:"a",kind:"audio"},{id:"b",label:"b",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"plus(input('a'), input('b'))"}}},{kind:"mul",label:"Multiply",category:"Math",description:"Multiply two signals — ring-mod / amplitude modulation.",inputs:[{id:"a",label:"a",kind:"audio"},{id:"b",label:"b",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"times(input('a'), input('b'))"}}},{kind:"sub",label:"Subtract",category:"Math",description:"Subtract two signals (a - b). Common uses: signal differencing, computing pitch shifts (target_midi - detected_midi for autotune), envelope inversion, dry-wet cancellation tricks.",inputs:[{id:"a",label:"a",kind:"audio"},{id:"b",label:"b",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"minus(input('a'), input('b'))"}}},{kind:"div",label:"Divide",category:"Math",description:"Divide two signals (a / b). Includes a divide-by-zero guard: when |b| < 1e-6, the denominator is clamped to 1e-6 to prevent NaN/Inf from killing the audio worklet. Common uses: ratio computation (carrier_freq / detected_freq), normalization, frequency multipliers from time intervals (1 / period_seconds).",inputs:[{id:"a",label:"a",kind:"audio"},{id:"b",label:"b",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"over(input('a'), plus(times(lt(prim('abs', input('b')), real(0.000001)), real(0.000001)), times(ge(prim('abs', input('b')), real(0.000001)), input('b'))))"}}},{kind:"round",label:"Round",category:"Math",description:"Round the input to the nearest integer. Half-up rounding (0.5 → 1, -0.5 → 0). Useful for snap-to-grid (chromatic semitones in autotune-style patches: round(detected_midi) → integer MIDI key), step-quantizing continuous values, integer indexing.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"prim('floor', plus(input('in'), real(0.5)))"}}},{kind:"select2",wraps:["ba.if"],label:"Select 2",category:"Math",description:"Conditional selector — Faust's ba.if(cond, a, b). When cond is non-zero, output is 'a'; otherwise 'b'.",inputs:[{id:"cond",label:"cond",kind:"control"},{id:"a",label:"a",kind:"control"},{id:"b",label:"b",kind:"control"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"cond",label:"Condition",init:0,min:0,max:1,step:1,port:"cond"},{type:"hslider",id:"a",label:"A (when cond != 0)",init:1,min:-1e3,max:1e3,step:.001,port:"a"},{type:"hslider",id:"b",label:"B (when cond = 0)",init:0,min:-1e3,max:1e3,step:.001,port:"b"}],toBox:{outputs:{out:"lib('ba', 'if', param('cond'), param('a'), param('b'))"}}},{kind:"compare",label:"Compare",category:"Math",description:"Numeric comparison — emits 1.0 when the relation holds, 0.0 otherwise. All six relations exposed: lt, lte, gt, gte, eq, neq.",inputs:[{id:"a",label:"a",kind:"control"},{id:"b",label:"b",kind:"control"}],outputs:[{id:"lt",label:"a<b",kind:"control"},{id:"lte",label:"a<=b",kind:"control"},{id:"gt",label:"a>b",kind:"control"},{id:"gte",label:"a>=b",kind:"control"},{id:"eq",label:"a=b",kind:"control"},{id:"neq",label:"a!=b",kind:"control"}],params:[{type:"hslider",id:"a",label:"A",init:0,min:-1e3,max:1e3,step:.001,port:"a"},{type:"hslider",id:"b",label:"B",init:0,min:-1e3,max:1e3,step:.001,port:"b"}],toBox:{defs:{av:"param('a')",bv:"param('b')"},outputs:{lt:"lt(def('av'), def('bv'))",lte:"le(def('av'), def('bv'))",gt:"gt(def('av'), def('bv'))",gte:"ge(def('av'), def('bv'))",eq:"eq_(def('av'), def('bv'))",neq:"ne_(def('av'), def('bv'))"}}},{kind:"scale",label:"Scale",category:"Math",description:"Multiply a signal by a wide-range, possibly bipolar coefficient. Use for control-signal scaling (e.g. FM modulation depth) where the gain node range (0..2) is too tight.",inputs:[{id:"in",label:"in",kind:"control"},{id:"amount_in",label:"amount",kind:"control"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"amount",label:"Amount",init:1,min:-1e3,max:1e3,step:.01}],toBox:{outputs:{out:"times(input('in'), param('amount'))"}}},{kind:"mtof",wraps:["ba.midikey2hz"],label:"MIDI -> Hz",category:"Math",description:"Convert MIDI note number (0..127) to frequency in Hz. Use after nodes that output NOTE NUMBERS (e.g. a step sequencer's note lane). Do NOT use after midi_note — its freq output is ALREADY in Hz (wire midi_note.freq -> osc freq_in directly); feeding Hz into mtof double-converts into ultrasound/silence (midikey2hz(65 Hz) is treated as note 65).",inputs:[{id:"note_in",label:"note",kind:"control"}],outputs:[{id:"hz",label:"hz",kind:"control"}],params:[{type:"hslider",id:"note",label:"Note",init:60,min:0,max:127,step:1}],toBox:{outputs:{hz:"lib('ba', 'midikey2hz', param('note'))"}}},{kind:"ftom",wraps:["ba.hz2midikey"],label:"Hz -> MIDI",category:"Math",description:"Convert frequency in Hz to MIDI note number (fractional float). The inverse of mtof — uses basics.lib ba.hz2midikey under the hood. A4 (440 Hz) -> 69.0; one octave up -> +12.0 semitones; one semitone (12-root-of-2 ratio) -> +1.0. Use after pitch_tracker to get continuous MIDI-domain pitch for arithmetic (e.g. autotune-snap: pitch_tracker -> ftom -> round -> sub -> pitch_shifter).",inputs:[{id:"hz_in",label:"hz",kind:"control"}],outputs:[{id:"note",label:"note",kind:"control"}],params:[{type:"hslider",id:"hz",label:"Hz",init:440,min:20,max:2e4,step:.01,unit:"Hz",scale:"log"}],toBox:{outputs:{note:"lib('ba', 'hz2midikey', param('hz'))"}}},{kind:"smooth",wraps:["si.smooth","ba.tau2pole"],label:"Smooth",category:"Math",description:"One-pole smoothing for control signals. Stops audible clicks when params jump suddenly. Time = approximate transition duration.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"control"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"time_ms",label:"Time",init:50,min:1,max:500,step:.1,unit:"ms"}],toBox:{outputs:{out:"seq(input('in'), lib('si', 'smooth', lib('ba', 'tau2pole', over(param('time_ms'), int(1000)))))"}}},{kind:"monitor",label:"Monitor",category:"Math",description:"Numerical readout of a signal. Wire any signal here to see the live value as a number. Passes through unchanged.",inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"seq(input('in'), prim('hbargraph', tplStr('{faustId}/value [style:numerical]'), real(-10), real(10)))"}}},{kind:"meter",label:"Meter",category:"Math",description:"Horizontal level meter for an audio or control signal. Passthrough with peak-hold + dB colour zones.",inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"seq(input('in'), prim('hbargraph', tplStr('{faustId}/level'), real(-1), real(1)))"}}},{kind:"vmeter",label:"V-Meter",category:"Math",description:"Vertical level meter — same as Meter but oriented top-to-bottom (classic mixer-strip look).",inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"seq(input('in'), prim('vbargraph', tplStr('{faustId}/level'), real(-1), real(1)))"}}},{kind:"led",label:"LED",category:"Math",description:"LED-style indicator. Glowing dot whose colour follows the dB-zone gradient. Useful for gate / trigger signals.",inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[],toBox:{outputs:{out:"seq(input('in'), prim('hbargraph', tplStr('{faustId}/led [style:led]'), real(-1), real(1)))"}}},{kind:"envelope_follower",wraps:["an.amp_follower_ar"],label:"Envelope Follower",category:"Math",description:"Linear amplitude envelope follower (analyzers.lib an.amp_follower_ar). Outputs the smoothed peak amplitude of the input with independent attack and release times. The `env` control output is in linear [0..1] domain — feed it directly into a `mul.b` to use the input's loudness to drive any signal's amplitude. The classic building block for vocoders, sidechain pumping, ducking, dynamic gates, and 'mic-driven anything' effects. Distinct from rms_meter which outputs logarithmic dB for metering — this one is linear, designed for control routing.",inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"env_out",label:"env",kind:"control"}],params:[{type:"hslider",id:"attack",label:"Attack",init:.005,min:1e-4,max:.5,step:1e-4,unit:"s",style:"knob"},{type:"hslider",id:"release",label:"Release",init:.1,min:.001,max:2,step:.001,unit:"s",style:"knob"}],toBox:{defs:{env_signal:"seq(input('in'), lib('an', 'amp_follower_ar', param('attack'), param('release')))"},outputs:{out:"prim('attach', input('in'), seq(def('env_signal'), prim('hbargraph', tplStr('{faustId}/env [unit:lin]'), int(0), int(1))))",env_out:"def('env_signal')"}}},{kind:"rms_meter",wraps:["an.rms_envelope_t60","ba.linear2db"],label:"RMS Meter",category:"Math",description:"True RMS level meter (analyzers.lib an.rms_envelope_t60). Period sets the integration window. Display in dB across -60..+6. level_db exposes the current RMS in dB as a control signal.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"level_db",label:"dB",kind:"control"}],params:[{type:"hslider",id:"period_ms",label:"Period",init:50,min:1,max:500,step:.1,unit:"ms"}],toBox:{defs:{display:"seq(seq(seq(input('in'), lib('an', 'rms_envelope_t60', over(param('period_ms'), int(1000)))), lib('ba', 'linear2db')), prim('hbargraph', tplStr('{faustId}/level [unit:dB]'), int(-60), int(6)))"},outputs:{out:"prim('attach', input('in'), def('display'))",level_db:"def('display')"}}},{kind:"peak_hold_meter",wraps:["ba.peakholder","ma.SR","ba.linear2db"],label:"Peak Hold",category:"Math",description:"Peak meter with sticky hold (filters.lib fi.peakholder). The displayed level latches at the highest abs peak it sees and stays there for hold ms before releasing.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"peak_db",label:"dB",kind:"control"}],params:[{type:"hslider",id:"hold_ms",label:"Hold",init:1500,min:50,max:5e3,step:1,unit:"ms"}],toBox:{defs:{display:"seq(seq(seq(input('in'), lib('ba', 'peakholder', intCast(over(times(param('hold_ms'), lib('ma', 'SR')), int(1000))))), lib('ba', 'linear2db')), prim('hbargraph', tplStr('{faustId}/peak [unit:dB]'), int(-60), int(6)))"},outputs:{out:"prim('attach', input('in'), def('display'))",peak_db:"def('display')"}}},{kind:"spectral_centroid",wraps:["an.spectralCentroid"],label:"Spectral Centroid",category:"Math",description:"Time-domain spectral centroid (analyzers.lib an.spectralCentroid) — the centre of mass of the spectrum, in Hz. A live readout of how bright the signal is.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"hz",label:"hz",kind:"control"}],params:[{type:"hslider",id:"tau_ms",label:"Smoothing",init:50,min:1,max:500,step:.1,unit:"ms"}],toBox:{defs:{display:"seq(seq(input('in'), lib('an', 'spectralCentroid', real(0.5), over(param('tau_ms'), int(1000)))), prim('hbargraph', tplStr('{faustId}/hz [scale:log][unit:Hz]'), int(50), int(15000)))"},outputs:{out:"prim('attach', input('in'), def('display'))",hz:"def('display')"}}},{kind:"pitch_tracker",wraps:["an.pitchTracker","ba.hz2midikey"],label:"Pitch Tracker",category:"Math",description:"Adaptive fundamental-frequency estimator (analyzers.lib an.pitchTracker). Outputs the perceived pitch in Hz and as a MIDI note. Works best on monophonic, sustained material.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"hz",label:"hz",kind:"control"},{id:"midi",label:"midi",kind:"control"}],params:[{type:"hslider",id:"tau_ms",label:"Smoothing",init:20,min:5,max:200,step:.1,unit:"ms"}],toBox:{defs:{hzv:"seq(input('in'), lib('an', 'pitchTracker', int(4), over(param('tau_ms'), int(1000))))",display:"seq(def('hzv'), prim('hbargraph', tplStr('{faustId}/hz [scale:log][unit:Hz]'), int(20), int(2000)))"},outputs:{out:"prim('attach', input('in'), def('display'))",hz:"def('display')",midi:"seq(def('hzv'), lib('ba', 'hz2midikey'))"}}},{kind:"zcr_meter",wraps:["an.zcr"],label:"Zero-Crossing Rate",category:"Math",description:"Zero-crossing rate (analyzers.lib an.zcr) — proportion of samples where the signal sign flips, in 0..1. High = noisy / percussive, low = tonal / sustained.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"},{id:"rate",label:"rate",kind:"control"}],params:[{type:"hslider",id:"period_ms",label:"Period",init:50,min:1,max:500,step:.1,unit:"ms"}],toBox:{defs:{display:"seq(seq(input('in'), lib('an', 'zcr', over(param('period_ms'), int(1000)))), prim('hbargraph', tplStr('{faustId}/rate'), int(0), int(1)))"},outputs:{out:"prim('attach', input('in'), def('display'))",rate:"def('display')"}}},{kind:"pitch_quantizer",label:"Pitch Quantizer",category:"Math",description:"Snap a continuous frequency in Hz to a musical scale (floor-snap in semitone space, matching qu.quantize semantics — O(1) arithmetic implementation: one log2 + one pow + an 84-entry table instead of seven qu.quantize expansions, which drove libfaust into a stack overflow on complex input graphs). Scales: 0=Ionian, 1=Dorian, 2=Phrygian, 3=Lydian, 4=Mixolydian, 5=Aeolian, 6=Locrian.",bypass:{input:"freq_in",output:"hz"},inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"root_in",label:"root",kind:"control"}],outputs:[{id:"hz",label:"hz",kind:"control"}],params:[{type:"hslider",id:"root",label:"Root",init:220,min:27.5,max:880,step:.01,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"scale",label:"Scale",init:0,min:0,max:6,step:1}],toBox:{defs:{freqv:"input('freq_in')",rootv:"param('root')",scalev:"param('scale')",quantfast:"raw('environment { snapTbl = waveform{0,0,2,2,4,5,5,7,7,9,9,11, 0,0,2,3,3,5,5,7,7,9,10,10, 0,1,1,3,3,5,5,7,8,8,10,10, 0,0,2,2,4,4,6,7,7,9,9,11, 0,0,2,2,4,5,5,7,7,9,10,10, 0,0,2,3,3,5,5,7,8,8,10,10, 0,1,1,3,3,5,6,6,8,8,10,10}; qf(root, scale, x) = r * pow(2.0, (12.0*oct + snapped) / 12.0) with { r = max(root, 1e-3); st = 12.0 * ma.log2(max(x, 1e-3) / r); n = int(floor(st + 1e-6)); oct = floor(float(n) / 12.0); deg = n - int(12.0 * oct); snapped = float(rdtable(snapTbl, int(scale)*12 + deg)); }; }.qf', 3, 1)"},outputs:{hz:"seqN(parN(def('rootv'), def('scalev'), def('freqv')), def('quantfast'))"}}},{kind:"lfo",wraps:["os.osc"],label:"LFO",category:"Modulation",description:"Low-frequency sine oscillator (modulation source). Bipolar output -amp..+amp.",inputs:[],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"rate",label:"Rate",init:1,min:.01,max:30,step:.01,unit:"Hz",style:"knob"},{type:"hslider",id:"amp",label:"Amplitude",init:1,min:0,max:1,step:.001,style:"knob",smoothing_class:"mix"}],toBox:{outputs:{out:"seq(times(lib('os', 'osc', param('rate')), param('amp')), prim('hbargraph', tplStr('{faustId}/state'), real(-1), real(1)))"}}},{kind:"ar_envelope",wraps:["en.ar"],label:"AR Envelope",category:"Modulation",description:"Attack-Release envelope (envelopes.lib en.ar). Simpler than ADSR. Perfect for percussion hits, plucks, transient shapes.",inputs:[{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"attack",label:"Attack",init:.005,min:.001,max:2,step:.001,unit:"s"},{type:"hslider",id:"release",label:"Release",init:.2,min:.001,max:5,step:.001,unit:"s"},{type:"checkbox",id:"gate",label:"Gate",init:0}],toBox:{outputs:{out:"seq(lib('en', 'ar', param('attack'), param('release'), param('gate')), prim('hbargraph', tplStr('{faustId}/state'), int(0), int(1)))"}}},{kind:"adsr",wraps:["en.adsr"],label:"ADSR",category:"Modulation",description:"Attack/Decay/Sustain/Release envelope. Gate input (0/1) drives the cycle. Output is a control signal.",inputs:[{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"attack",label:"Attack",init:.01,min:.001,max:5,step:.001,unit:"s"},{type:"hslider",id:"decay",label:"Decay",init:.1,min:.001,max:5,step:.001,unit:"s"},{type:"hslider",id:"sustain",label:"Sustain",init:.7,min:0,max:1,step:.001},{type:"hslider",id:"release",label:"Release",init:.3,min:.001,max:5,step:.001,unit:"s"},{type:"checkbox",id:"gate",label:"Gate",init:0}],toBox:{outputs:{out:"seq(lib('en', 'adsr', param('attack'), param('decay'), param('sustain'), param('release'), param('gate')), prim('hbargraph', tplStr('{faustId}/state'), int(0), int(1)))"}}},{kind:"karplus",wraps:["pm.ks","pm.f2l","pm.impulseExcitation"],label:"Karplus String",category:"Instruments",description:"Plucked-string physical model — Faust `pm.ks` (physmodels.lib). Each rising edge of trig_in plucks the string at the current freq.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:40,max:2e3,step:.1,unit:"Hz",smoothing_class:"pitch"},{type:"hslider",id:"damping",label:"Damping",init:.1,min:0,max:1,step:.001},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Pluck",init:0}],toBox:{outputs:{out:"times(lib('pm', 'ks', lib('pm', 'f2l', param('freq')), param('damping'), lib('pm', 'impulseExcitation', param('trig'))), param('gain'))"}}},{kind:"guitar",wraps:["pm.ks","pm.f2l","pm.impulseExcitation"],label:"Guitar",category:"Instruments",description:"Plucked guitar — Faust `pm.ks` with higher damping init for a warmer, more body-like tone than karplus.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:40,max:2e3,step:.1,unit:"Hz",smoothing_class:"pitch"},{type:"hslider",id:"damping",label:"Damping",init:.3,min:0,max:1,step:.001},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Pluck",init:0}],toBox:{outputs:{out:"times(lib('pm', 'ks', lib('pm', 'f2l', param('freq')), param('damping'), lib('pm', 'impulseExcitation', param('trig'))), param('gain'))"}}},{kind:"djembe",wraps:["no.noise"],label:"Djembe",category:"Instruments",description:"Drum hit — bandpass-filtered noise burst with envelope decay (the band of fi.resonbp(freq, 8, 5), as a state-variable filter whose coefficient is smoothed: tan() once per audio block, not every sample). Sharpness controls how snappy the attack is.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:80,min:30,max:800,step:.1,unit:"Hz",scale:"log",style:"knob"},{type:"hslider",id:"sharpness",label:"Sharpness",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"},{type:"hslider",id:"gain",label:"Gain",init:.6,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Hit",init:0}],toBox:{defs:{edge:"gt(param('trig'), mem(param('trig')))",decay_coef:"plus(real(0.998), times(minus(real(1), param('sharpness')), real(0.0019)))",env:"rec(prim('+', def('edge')), prim('*', def('decay_coef')))"},outputs:{out:"times(times(seq(parN(times(lib('no', 'noise'), def('env')), seq(param('freq'), raw(\"(tan(_ * ma.PI / ma.SR) : si.smooth(ba.tau2pole(0.005)))\", 1, 1))), raw(\"(svf with { svf(x, g) = x : (t ~ (_, _)) : !, !, _ with { k = 1 / 8; t(s1, s2, v0) = 2 * v1 - s1, 2 * v2 - s2, v1 with { v1 = (s1 + g * (v0 - s2)) / (1 + g * (g + k)); v2 = s2 + g * v1; }; }; })\", 2, 1)), real(5.0)), param('gain'))"}}},{kind:"bell",wraps:["pm.standardBell"],label:"Bell",category:"Instruments",description:"Struck bell physical model (Faust pm.standardBell). Each rising edge of trig_in strikes the bell.",inputs:[{id:"trig_in",label:"trig",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"strike_pos",label:"Strike Position",init:.4,min:0,max:6,step:.01},{type:"hslider",id:"strike_cutoff",label:"Strike Cutoff",init:2e3,min:200,max:1e4,step:1,unit:"Hz",scale:"log"},{type:"hslider",id:"strike_sharp",label:"Strike Sharpness",init:.25,min:0,max:1,step:.001},{type:"hslider",id:"strike_gain",label:"Strike Gain",init:.8,min:0,max:1,step:.001},{type:"hslider",id:"gain",label:"Gain",init:1,min:0,max:2,step:.001,smoothing_class:"volume"},{type:"checkbox",id:"trig",label:"Strike",init:0}],toBox:{outputs:{out:"times(lib('pm', 'standardBell', param('strike_pos'), param('strike_cutoff'), param('strike_sharp'), param('strike_gain'), param('trig')), param('gain'))"}}},{kind:"resonator",wraps:["fi.nlf2"],label:"Resonator",category:"Instruments",description:"Resonant 2-pole filter (Faust fi.nlf2). Feed an excitation signal (noise burst, impulse, sample) into the input; it rings at freq with sharpness controlled by r (closer to 1 = longer ring).",inputs:[{id:"in",label:"excite",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:30,max:8e3,step:.1,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"},{type:"hslider",id:"r",label:"R",init:.999,min:.9,max:.9999,step:1e-4,style:"knob"},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,style:"knob",smoothing_class:"volume"}],toBox:{outputs:{out:"times(merge(lib('fi', 'nlf2', param('freq'), param('r'), input('in')), wire()), param('gain'))"}}},{kind:"tempo",label:"Tempo",category:"Time",description:"Convert a musical subdivision to milliseconds. Wire into a Delay's time input to get tempo-synced echoes.",inputs:[{id:"bpm_in",label:"bpm",kind:"control"}],outputs:[{id:"ms",label:"ms",kind:"control"}],params:[{type:"hslider",id:"numerator",label:"Numerator",init:3,min:1,max:32,step:1},{type:"hslider",id:"denominator",label:"Denominator",init:16,min:1,max:64,step:1},{type:"hslider",id:"bpm",label:"BPM",init:120,min:30,max:300,step:.1}],toBox:{outputs:{ms:"over(times(times(over(param('numerator'), param('denominator')), int(4)), int(60000)), param('bpm'))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- function e(e){let n="",t=0;for(;t<e.length;){const s=e[t];if('"'===s){let s=t+1;for(;s<e.length&&'"'!==e[s]&&"\n"!==e[s];)s+="\\"===e[s]?2:1;n+=e.slice(t,s+1),t=s+1}else if("/"===s&&"/"===e[t+1]){const s=e.indexOf("\n",t),o=s<0?e.length:s;n+=" ".repeat(o-t),t=o}else if("/"===s&&"*"===e[t+1]){const s=e.indexOf("*/",t+2),o=s<0?e.length:s+2;n+=e.slice(t,o).replace(/[^\n]/g," "),t=o}else n+=s,t++}return n}function n(n){return/^\s*process\s*[(=]/m.test(e(n))}function t(n){return/^\s*process\s*\(/m.test(e(n))}function s(n){return[...e(n).matchAll(/declare\s+options\s+"([^"\n]*)"/g)].map(e=>({at:e.index+e[0].indexOf('"')+1,text:e[1]}))}function o(n,t){let s;for(const o of e(n).matchAll(new RegExp(`declare\\s+${t}\\s+"([^"\\n]*)"`,"g")))s=o[1];return s}function c(e){for(const t of s(e)){const e=/\[nvoices:\s*(\d+)\s*\]/.exec(t.text);if(e)return Number(e[1])}const n=o(e,"nvoices");return void 0!==n&&/^\s*\d+\s*$/.test(n)?Number(n):0}function r(e){let n;for(const o of s(e)){const e=/\[midichannel:([^\]]*)\]/.exec(o.text);e&&(n=e[1])}if(n??=o(e,"midichannel"),void 0===n||""===n.trim())return 0;const t=/^\s*\d+\s*$/.test(n)?Number(n):NaN;return t>=0&&t<=16?t:0}function i(n,t,o){const c=new RegExp(`\\[\\s*${t}\\s*:[^\\]]*\\]`,"g");let r=n;for(const e of s(n).reverse())r=r.slice(0,e.at)+e.text.replace(c,"")+r.slice(e.at+e.text.length);const i=[...e(r).matchAll(/[ \t]*declare\s+options\s+"\s*"\s*;?[ \t]*(\r?\n)?/g)];for(const e of i.reverse())r=r.slice(0,e.index)+r.slice(e.index+e[0].length);if(null===o)return r;const l=s(r)[0];return l?r.slice(0,l.at)+`[${t}:${o}]`+r.slice(l.at):`declare options "[${t}:${o}]";\n${r}`}function l(n){const t=e(n),s=[...t.matchAll(/declare\s+options\s+"[^"\n]*"\s*;?/g)].map(e=>n.slice(e.index,e.index+e[0].length)),o=t.match(/^\s*process\s*(\(([^)]*)\))?\s*=/m);if(o){const e=o[1]?o[2].split(",").map((e,n)=>`in${n}`):[];s.push(e.length?`process(${e.join(", ")}) = ${e.join(", ")};`:"process = 0;")}return s.join("\n")+"\n"}export{n as a,i as c,c as i,r as n,t as o,s as r,l as s,e as t};
@@ -1 +0,0 @@
1
- var a=new URL("faustwasm-webclap-double-Drn3DiHA.wasm",import.meta.url).href;export{a as default};
@@ -1 +0,0 @@
1
- var a="0.21.1";export{a as t};
@@ -1 +0,0 @@
1
- var e={packId:"faustwave-conventions",title:"FaustWave Conventions",version:6,ownerHandle:"faustwave",description:"FaustWave-layer additions to the Faust Standard Library — coloration kinds (tape, tube, transistor_drive, bus_glue) shipped with the Sound-Quality-Conventions Welle (v0.55.0) plus the orthogonal PolyBLEP oscillator variants (saw_polyblep, square_polyblep). Distinct from the base `faust` pack so a future second Faust consumer can ship just the vanilla wrappers and stack these FaustWave-specific Kinds on top (or omit them). Bundled with the IDE; auto-restored on first launch. Uninstall safely; restore via Settings or node_pack_restore_bundled. v2 — templates migrated to Box-DSL form (Phase 2 of BOX-DSL + Multi-Channel initiative).",kinds:[{kind:"saw_polyblep",wraps:["os.phasor","ma.SR"],label:"Sawtooth (PolyBLEP)",category:"Oscillators",description:"Sawtooth with PolyBLEP (Polynomial Bandlimited Step) anti-aliasing — corrects the discontinuity at each cycle by adding a 2nd-order polynomial correction near the jump. Lower aliasing at high frequencies than the default Sawtooth (DPW2). Slightly more CPU; use for leads / patches above ~2 kHz fundamental where the standard `saw`'s residual HF aliasing becomes audible.",drift_param:"detune",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{defs:{phase:"lib('os', 'phasor', int(1), param('freq'))",dt:"over(param('freq'), lib('ma', 'SR'))",t1:"over(def('phase'), def('dt'))",t2:"over(minus(def('phase'), real(1)), def('dt'))",polyblep_corr:"select2(lt(def('phase'), def('dt')), select2(gt(def('phase'), minus(real(1), def('dt'))), int(0), plus(plus(plus(times(def('t2'), def('t2')), def('t2')), def('t2')), real(1))), minus(minus(plus(def('t1'), def('t1')), times(def('t1'), def('t1'))), real(1)))"},outputs:{out:"minus(minus(times(real(2), def('phase')), real(1)), def('polyblep_corr'))"}}},{kind:"square_polyblep",wraps:["os.phasor","ma.frac","ma.SR"],label:"Square (PolyBLEP)",category:"Oscillators",description:"Square with PolyBLEP anti-aliasing — applies the polynomial correction at both the up-jump (phase=0) and the down-jump (phase=0.5). Lower aliasing at high frequencies than the default Square (differentiated triangle). Slightly more CPU.",drift_param:"detune",inputs:[{id:"freq_in",label:"freq",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:220,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",style:"knob",smoothing_class:"pitch"}],toBox:{defs:{phase:"lib('os', 'phasor', int(1), param('freq'))",phase2:"lib('ma', 'frac', plus(def('phase'), real(0.5)))",dt:"over(param('freq'), lib('ma', 'SR'))",naive_square:"select2(lt(def('phase'), real(0.5)), real(-1), real(1))",blep_p1:"select2(lt(def('phase'), def('dt')), select2(gt(def('phase'), minus(real(1), def('dt'))), int(0), plus(plus(plus(times(over(minus(def('phase'), real(1)), def('dt')), over(minus(def('phase'), real(1)), def('dt'))), over(minus(def('phase'), real(1)), def('dt'))), over(minus(def('phase'), real(1)), def('dt'))), real(1))), minus(minus(plus(over(def('phase'), def('dt')), over(def('phase'), def('dt'))), times(over(def('phase'), def('dt')), over(def('phase'), def('dt')))), real(1)))",blep_p2:"select2(lt(def('phase2'), def('dt')), select2(gt(def('phase2'), minus(real(1), def('dt'))), int(0), plus(plus(plus(times(over(minus(def('phase2'), real(1)), def('dt')), over(minus(def('phase2'), real(1)), def('dt'))), over(minus(def('phase2'), real(1)), def('dt'))), over(minus(def('phase2'), real(1)), def('dt'))), real(1))), minus(minus(plus(over(def('phase2'), def('dt')), over(def('phase2'), def('dt'))), times(over(def('phase2'), def('dt')), over(def('phase2'), def('dt')))), real(1)))"},outputs:{out:"minus(plus(def('naive_square'), def('blep_p1')), def('blep_p2'))"}}},{kind:"tape",wraps:["fi.lowpass","ma.tanh"],label:"Tape",category:"Effects",description:"Tape-style saturation — tanh soft-clip with a drive-dependent high-frequency rolloff. Higher Drive squashes harder AND darkens the top end, mimicking analog tape's combined compression + HF loss. Gain-compensated like softclip.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"velocity_in",label:"velocity",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:1.5,min:.5,max:6,step:.01,smoothing_class:"drive",velocity_responds:.4}],toBox:{outputs:{out:"seq(over(lib('ma', 'tanh', times(input('in'), param('drive'))), lib('ma', 'tanh', param('drive'))), lib('fi', 'lowpass', int(1), prim('max', real(2000), minus(real(14000), times(param('drive'), real(1200))))))"}}},{kind:"tube",wraps:["ma.tanh"],label:"Tube",category:"Effects",description:"Tube-preamp coloration — two-stage waveshaper with massive 2nd-harmonic generation. Stage 1 (`sat = tanh(in · (1 + d·1.5))`) is a drive-pre-gained soft-clip baseline. Stage 2 adds a quadratic self-squarer (`d · 0.3 · sat²`) that injects strong 2nd-harmonic content scaling with Drive — the sat² term is sign-preserving for negative inputs (squared = positive) so the output gets a DC-asymmetric bias proportional to drive, the hallmark of tube preamp character. Makeup (`/ (1 + d · 0.4)`) keeps perceived level constant. Drive 0 = clean tanh; Drive 4 = strong asymmetric squash + significant 2nd-harmonic layer.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"velocity_in",label:"velocity",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:1.5,min:0,max:4,step:.01,smoothing_class:"drive",velocity_responds:.4}],toBox:{defs:{sat:"lib('ma', 'tanh', times(input('in'), plus(real(1), times(param('drive'), real(1.5)))))"},outputs:{out:"times(plus(def('sat'), times(times(real(0.3), param('drive')), times(def('sat'), prim('abs', def('sat'))))), over(real(1), plus(real(1), times(param('drive'), real(0.4)))))"}}},{kind:"transistor_drive",wraps:["ma.tanh"],label:"Transistor Drive",category:"Effects",description:"Solid-state-style hard drive — pushes the signal harder into tanh than softclip / tape and attenuates the output to leave room for the squared-up waveshape. Aggressive odd-harmonic character; sits between Soft Clip's smoothness and the Distortion node's cubic crunch.",bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"},{id:"velocity_in",label:"velocity",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"drive",label:"Drive",init:1,min:.5,max:5,step:.01,smoothing_class:"drive",velocity_responds:.5}],toBox:{outputs:{out:"times(lib('ma', 'tanh', times(times(input('in'), param('drive')), real(3))), real(0.7))"}}},{kind:"bus_glue",wraps:["co.compressor_mono"],label:"Bus Glue",category:"Effects",description:'Gentle bus compressor — light ratio + medium attack/release for that "glue" effect on a stereo bus or full mix. Mix slider blends dry + compressed for parallel-compression ("New York") style. Defaults are conservative: -10 dB threshold, 2:1 ratio, 5 ms attack, 80 ms release.',bypass:{input:"in",output:"out"},inputs:[{id:"in",label:"in",kind:"audio"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"threshold",label:"Threshold",init:-10,min:-40,max:0,step:.1,unit:"dB",smoothing_class:"drive"},{type:"hslider",id:"ratio",label:"Ratio",init:2,min:1,max:10,step:.01},{type:"hslider",id:"attack_ms",label:"Attack",init:5,min:.5,max:50,step:.1,unit:"ms",scale:"log"},{type:"hslider",id:"release_ms",label:"Release",init:80,min:10,max:500,step:1,unit:"ms",scale:"log"},{type:"hslider",id:"mix",label:"Mix",init:1,min:0,max:1,step:.001,smoothing_class:"mix"}],toBox:{defs:{comp:"lib('co', 'compressor_mono', param('ratio'), param('threshold'), times(param('attack_ms'), real(0.001)), times(param('release_ms'), real(0.001)), input('in'))"},outputs:{out:"plus(times(input('in'), minus(real(1), param('mix'))), times(def('comp'), param('mix')))"}}},{kind:"ar_envelope_legato",label:"AR Envelope (legato)",category:"Modulation",description:"Attack-Release envelope like AR Envelope (en.ar) — linear attack, then linear release from the top, a one-shot — except that a new hit while it still sounds rises from where it is instead of restarting at 0. en.ar drops to 0 on every hit: a kick struck again a sixteenth later jumps from its tail to silence in one sample, a hammer blow. From silence the two are the same. The state is a level plus 2 while it rises, the level while it falls — one feedback signal (raw: the DSL has no lambda to share it).",inputs:[{id:"gate_in",label:"gate",kind:"trigger"}],outputs:[{id:"out",label:"out",kind:"control"}],params:[{type:"hslider",id:"attack",label:"Attack",init:.005,min:.001,max:2,step:.001,unit:"s"},{type:"hslider",id:"release",label:"Release",init:.2,min:.001,max:5,step:.001,unit:"s"},{type:"checkbox",id:"gate",label:"Gate",init:0}],toBox:{outputs:{out:"seq(seq(parN(param('attack'), param('release'), param('gate')), raw(\"arl with { arl(at, rt, gate) = state ~ _ : level with { an = max(1, at * ma.SR); rn = max(1, rt * ma.SR); edge = gate > gate'; level(z) = ba.if(z >= 2, z - 2, z); state(z) = ba.if(att, ba.if(up >= 1, 1, up + 2), down) with { att = (z >= 2) | edge; up = min(1, level(z) + 1 / an); down = max(0, level(z) - 1 / rn); }; }; }\", 3, 1)), prim('hbargraph', tplStr('{faustId}/state'), int(0), int(1)))"}}},{kind:"osc_retrig",wraps:["os.hs_oscsin"],label:"Oscillator (retrigger)",category:"Oscillators",description:"Sine oscillator like Oscillator (os.osc), except that a rising edge on trig restarts it at phase 0 — from silence. A free-running sine is met by a fast attack at whatever phase it happens to be in: near a peak the level jumps almost vertically — a click that varies from hit to hit (a kick measured −25.8 to −37.2 dB of energy above 2 kHz in its first 5 ms over 40 hits). Restarted, every hit begins at the same zero crossing, the clean case every time (−37.1 dB), and the attack can stay short. Wire the gate that drives the envelope into trig, and the amp envelope into level: while the previous hit still sounds (level ≥ 0.02) the phase runs on, because jumping a ringing sine to 0 is a click of its own (a hit a sixteenth after a loud one: 0.71). Unwired, level is 0 and every edge restarts. The envelope must have died out before the next hit, or that hit keeps the phase it finds — keep the release shorter than the gap between hits.",inputs:[{id:"freq_in",label:"freq",kind:"control"},{id:"trig_in",label:"trig",kind:"trigger"},{id:"level_in",label:"level",kind:"control"}],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"hslider",id:"freq",label:"Frequency",init:440,min:20,max:2e4,step:.01,unit:"Hz",scale:"log",smoothing_class:"pitch"},{type:"checkbox",id:"trig",label:"Trig",init:0},{type:"hslider",id:"level",label:"Level",init:0,min:0,max:1,step:.001}],toBox:{outputs:{out:"lib('os', 'hs_oscsin', param('freq'), seq(parN(param('trig'), param('level')), raw(\"(rq with { rq(g, l) = (g > g') * (l' < 0.02); })\", 2, 1)))"}}},{kind:"noise_channel",wraps:["no.noises"],label:"Noise (own channel)",category:"Sources",description:"White noise on a channel of its own (no.noises): channels 0–7 are uncorrelated with each other. Every Noise node (no.noise) in a patch is the SAME signal — one fixed seed, and the compiler shares equal expressions — so two drums that hit together (a clap and a snare on two and four) add up as one noise, louder, with nothing between them. Give each noise voice its own channel. The eight channels come from one recursion the compiler shares between all nodes, so another channel costs almost nothing.",inputs:[],outputs:[{id:"out",label:"out",kind:"audio"}],params:[{type:"nentry",id:"channel",label:"Channel",init:0,min:0,max:7,step:1,recompileOnChange:!0,tooltip:"0–7, each uncorrelated with the others. Two voices on one channel are one noise."},{type:"hslider",id:"gain",label:"Gain",init:.5,min:0,max:1,step:.001,smoothing_class:"volume"}],toBox:{outputs:{out:"times(lib('no', 'noises', int(8), literal('channel')), param('gain'))"}}}]};export{e as default};
@@ -1 +0,0 @@
1
- import{n as e,o as t,t as a}from"./paths-DFjX1bFA.js";import{i as o}from"./fileRef-BmnWhXuY.js";function s(s){const{api:i,moduleId:l,ext:d}=s,n=s.autosaveMs??600,r=e=>!e||s.assetsOnly&&!o(e)?null:e,u=e=>!!e&&!r(e),c=i.documents.listModules().find(e=>e.id===l)?.filePath;let f=r(c),m=u(c),p=i.documents.resolveModuleTitle(l,{defaultExt:d}),w="",T=!1,g=null;const x=()=>s.onFile?.({title:p,ref:f}),M=e=>{f=e,m=!1,p=a(e),i.documents.updateModuleMeta(l,{filePath:e,title:p}),x()},v=async(e="autosave")=>{g&&clearTimeout(g),g=null;const a=s.get();T&&a!==w&&!m&&(f||M(await t(i.project,p,d)),await i.files.writeText(f,a),w=a,i.documents.updateModuleMeta(l,{dirty:s.get()!==w}),s.onText?.(a,e))},y=async()=>{T&&s.get()!==w&&await v();let e=await i.documents.loadDocumentSource(l)??"";if(f&&!e.trim())try{e=await i.files.readText(f)}catch{return}if(!f&&!e.trim()&&void 0!==s.scaffold)return w="",T=!0,s.set(s.scaffold),void s.onText?.(s.scaffold,"load");w=e,T=!0,s.set(e),s.onText?.(e,"load"),f||m||"at-once"!==s.place||(M(await t(i.project,p,d)),await i.files.writeText(f,e))},h={getSource:()=>s.get(),setSource:e=>s.set(e),reloadFromDisk:e=>(w=e,T=!0,s.set(e),s.onText?.(e,"reload"),!0),save:async a=>{const o=null!=a?e(a,d):f??await t(i.project,p,d);if(o!==f){const e=s.get();await i.files.writeText(o,e),w=e,T=!0,M(o),i.documents.updateModuleMeta(l,{dirty:!1}),s.onText?.(e,"save")}else await v("save");return{ok:!0,filePath:o}},getState:()=>({title:p,filePath:f,dirty:s.get()!==w})},j=i.documents.register(l,h),P=i.documents.subscribeModules(e=>{const t=e.find(e=>e.id===l);if(!t)return;const a=t.filePath,o=r(a);m=u(a),o!==f&&(f=o,p=i.documents.resolveModuleTitle(l,{defaultExt:d}),x(),s.reloadOnRefChange&&y())});return{runtime:h,changed(){const e=s.get()!==w;i.documents.updateModuleMeta(l,{dirty:e}),e&&(g&&clearTimeout(g),g=setTimeout(()=>{v()},n))},save:()=>v("save"),dirty:()=>s.get()!==w,ref:()=>f,title:()=>p,load:y,async dispose(){P(),await v(),j()}}}export{s as t};
@@ -1 +0,0 @@
1
- var s="asset:",e="pack:",t="session:";function n(s){switch(s.kind){case"asset":{const e=s.path;if(!e)return"asset path is empty";if(e.includes("\\"))return"asset path must use forward slashes";if(e.includes("|"))return'asset path contains reserved "|"';if(e.includes(":"))return'asset path must not contain ":" (no drive letters, no schemes)';if(e.startsWith("/"))return'asset path must be relative (no leading "/")';if(e.endsWith("/"))return'asset path names a file (no trailing "/")';const t=e.split("/");return t.some(s=>""===s)?"asset path has an empty segment":t.some(s=>"."===s||".."===s)?'asset path must not contain "." or ".." segments':null}case"pack":if(!s.packId)return"pack id is empty";if(/[#|/\\:]/.test(s.packId))return"pack id contains a reserved character (# | / \\ :)";if(void 0!==s.slug){if(!s.slug)return"pack slug is empty";if(/[#|]/.test(s.slug))return"pack slug contains a reserved character (# |)"}return null;case"session":return s.id?s.id.includes("|")?'session id contains reserved "|"':null:"session id is empty"}}function i(i){const a=n(i);if(a)throw new Error(`Invalid FileRef: ${a}`);switch(i.kind){case"asset":return s+i.path;case"pack":return void 0===i.slug?e+i.packId:`${e}${i.packId}#${i.slug}`;case"session":return t+i.id}}function a(i){let a;if(i.startsWith(s))a={kind:"asset",path:i.slice(6)};else if(i.startsWith(e)){const s=i.slice(5),e=s.indexOf("#");a=-1===e?{kind:"pack",packId:s}:{kind:"pack",packId:s.slice(0,e),slug:s.slice(e+1)}}else{if(!i.startsWith(t))return null;a={kind:"session",id:i.slice(8)}}return null===n(a)?a:null}function r(s){return"asset"===a(s)?.kind}function c(s,...e){return"string"==typeof s&&r(s)&&(0===e.length||e.some(e=>s.toLowerCase().endsWith(e)))}export{a,r as i,i as n,c as r,n as t};