{
  "capsules": [
    {
      "blake3_hex": "a6d9f8318239e1a25ef3400072902c5a2d358cdbc9990d8781c406d51084d3be",
      "builtin": true,
      "created_at": 1796040000,
      "creator_name": "openie-steam",
      "ecosystem": "art",
      "ed25519_pubkey_hex": "fcfa833e7541ffbda4235fa7b41340c52fb1fe76ee7cad14fe0244361d838367",
      "ed25519_sig_hex": "3206676ed26cb6a567ac634fd70c4624521ccb4798a8e33384c82b54dc49eae5bed2de462665158d9bd74567fdec0daedc4c9e489b130538e402c4d992247c07",
      "handle": "openie-steam",
      "html_source": "<!doctype html><html><head><meta charset=\"utf-8\"><style>\nbody{margin:0;padding:16px;background:#0a0c10;color:#eceef3;font:14px/1.5 system-ui,sans-serif}\n.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:10px}\nlabel{display:flex;flex-direction:column;font-size:12px;color:#8e97a8;gap:4px}\ncanvas{width:100%;height:190px;background:#131720;border:1px solid #252c3a;border-radius:10px}\nbutton{background:#d4af61;color:#181200;border:0;border-radius:8px;padding:8px 14px;font-weight:600;cursor:pointer}\n</style></head><body>\n<div class=\"row\">\n  <label>H1 <input id=\"h1\" type=\"range\" min=\"0\" max=\"100\" value=\"100\"></label>\n  <label>H2 (Octave) <input id=\"h2\" type=\"range\" min=\"0\" max=\"100\" value=\"45\"></label>\n  <label>H3 (Fifth) <input id=\"h3\" type=\"range\" min=\"0\" max=\"100\" value=\"30\"></label>\n  <label>H4 <input id=\"h4\" type=\"range\" min=\"0\" max=\"100\" value=\"15\"></label>\n  <label>H5 (Major 3rd) <input id=\"h5\" type=\"range\" min=\"0\" max=\"100\" value=\"20\"></label>\n  <button type=\"button\" id=\"tone\">▶ Pluck Chord (220 Hz)</button>\n</div>\n<canvas id=\"cv\" width=\"760\" height=\"190\"></canvas>\n<div id=\"readout\" style=\"margin-top:8px;font-family:monospace;font-size:12px;color:#46e0c0\"></div>\n<script>\nconst ids=['h1','h2','h3','h4','h5'];\nconst cv=document.getElementById('cv'),ctx=cv.getContext('2d');\nlet phase=0;\nfunction amps(){return ids.map(i=>Number(document.getElementById(i).value)/100);}\nfunction draw(){\n  const a=amps(); ctx.clearRect(0,0,cv.width,cv.height);\n  ctx.strokeStyle='#252c3a'; ctx.beginPath(); ctx.moveTo(0,95); ctx.lineTo(cv.width,95); ctx.stroke();\n  ctx.strokeStyle='#46e0c0'; ctx.lineWidth=2.2; ctx.beginPath();\n  let norm=Math.max(0.2,a.reduce((s,v)=>s+v,0));\n  for(let x=0;x<cv.width;x++){\n    const t=(x/cv.width)*Math.PI*4+phase;\n    let y=0; for(let k=0;k<a.length;k++) y+=a[k]*Math.sin((k+1)*t);\n    const py=95-(y/norm)*74;\n    if(x===0) ctx.moveTo(x,py); else ctx.lineTo(x,py);\n  }\n  ctx.stroke();\n  const rms=Math.sqrt(a.reduce((s,v)=>s+0.5*v*v,0)).toFixed(3);\n  document.getElementById('readout').textContent=`Parseval RMS = ${rms} · Harmonics = [${a.map(v=>v.toFixed(2)).join(', ')}]`;\n  phase+=0.025; requestAnimationFrame(draw);\n}\ndraw();\ndocument.getElementById('tone').onclick=()=>{\n  const ac=new (window.AudioContext||window.webkitAudioContext)();\n  const a=amps(),now=ac.currentTime;\n  a.forEach((amp,k)=>{\n    if(amp<=0.01)return;\n    const o=ac.createOscillator(),g=ac.createGain();\n    o.frequency.value=220*(k+1); g.gain.setValueAtTime(amp*0.18,now);\n    g.gain.exponentialRampToValueAtTime(0.0001,now+1.4);\n    o.connect(g).connect(ac.destination); o.start(now); o.stop(now+1.45);\n  });\n};\n</script></body></html>",
      "slug": "fourier-acoustic-harmonics",
      "spdx_license": "CC-BY-4.0",
      "summary": "Adjust fundamental frequency and overtone amplitudes (n=1..7) to inspect waveform superposition, consonance ratios, and WebAudio synthesis.",
      "title": "Fourier Harmonic Series & Acoustic Wave Interference Studio",
      "verified_passkey": true
    }
  ],
  "capsules_count": 1,
  "channel_url": "/u/openie-steam",
  "disclosures": [],
  "feeds": [],
  "handle": "openie-steam",
  "identity": null,
  "schema": "commons-scholar.creator-channel.v1"
}