ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

index.html

Source identity, revision, and recovered contents.

archive memberSource text recovered

Source identity

FieldRecorded value
Source typearchive member
Original recordindex.html
DateNot specified in source
Path or archive memberarchives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/deploy_699b50b7e8085e34b2900028/index.html
Original SHA-256357da1bef977840a35ff3c52bbee54a1aea7dccbb49f07580a9961d30615d98f
Reading-copy SHA-256357da1bef977840a35ff3c52bbee54a1aea7dccbb49f07580a9961d30615d98f
Archive source{"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/deploy_699b50b7e8085e34b2900028/index.html"}

Every recorded occurrence

These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
index.html{"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/deploy_699b50b7e8085e34b2900028/index.html"}libsrc-808c55fb33e8archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/deploy_699b50b7e8085e34b2900028/index.html
2ce818048c880dbad1bd5dbfe8cd18f608253c19{"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/.content_store/2c/2ce818048c880dbad1bd5dbfe8cd18f608253c19"}libsrc-b496e6ff6438archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__ai-music-interaction-studio__ea9c1115-2d96-46cc-9140-389dd03d9031/originals/.content_store/2c/2ce818048c880dbad1bd5dbfe8cd18f608253c19

Recovered source transcript

Download complete source text ↓2,059 lines · 88.3 KB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AI Music Interaction | Professional Studio</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Roboto+Condensed:wght@400;500;700&display=swap" rel="stylesheet"> <style> :root { --bg-console: #1a1a1a; --bg-panel: #232323; --bg-channel: #2a2a2a; --bg-dark: #141414; --bg-meter: #0a0a0a; --surface-1: #2d2d2d; --surface-2: #333333; --surface-3: #3a3a3a; --border-dark: #1a1a1a; --border-light: #404040; --text-primary: #e8e8e8; --text-secondary: #999; --text-dim: #666; --text-label: #777; --accent-blue: #4a90d9; --accent-green: #4ade80; --accent-amber: #fbbf24; --accent-red: #ef4444; --accent-cyan: #22d3ee; --meter-green: #22c55e; --meter-yellow: #eab308; --meter-orange: #f97316; --meter-red: #dc2626; --led-on: #4ade80; --led-off: #1a3a1a; --knob-bg: linear-gradient(145deg, #3a3a3a 0%, #252525 100%); --knob-ring: #1a1a1a; --fader-track: #1a1a1a; --fader-cap: linear-gradient(180deg, #4a4a4a 0%, #333 50%, #4a4a4a 100%); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto Condensed', 'Inter', system-ui, sans-serif; background: var(--bg-console); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; } ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-dark); } ::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; } .header { background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%); border-bottom: 2px solid #141414; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.4); } .logo { display: flex; align-items: center; gap: 12px; } .logo-badge { background: linear-gradient(135deg, #333 0%, #222 100%); border: 1px solid #444; border-radius: 4px; padding: 6px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); } .logo-text { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: 2px; text-transform: uppercase; } .logo-sub { font-size: 9px; color: var(--text-dim); letter-spacing: 1px; } .transport { display: flex; align-items: center; gap: 4px; background: var(--bg-dark); padding: 4px; border-radius: 4px; border: 1px solid var(--border-light); } .transport-btn { width: 36px; height: 32px; background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%); border: 1px solid #444; border-radius: 3px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all 0.1s; } .transport-btn:hover { background: linear-gradient(180deg, #444 0%, #333 100%); color: var(--text-primary); } .transport-btn:active { background: linear-gradient(180deg, #2a2a2a 0%, #3a3a3a 100%); } .transport-btn.play { color: var(--accent-green); } .transport-btn.stop { color: var(--accent-amber); } .transport-btn.record { color: var(--accent-red); } .transport-btn.active { background: var(--accent-red); color: white; } .time-display { background: #0a0a0a; border: 2px solid #333; border-radius: 4px; padding: 8px 16px; font-family: 'JetBrains Mono', monospace; box-shadow: inset 0 2px 8px rgba(0,0,0,0.6); } .time-value { font-size: 24px; font-weight: 500; color: var(--accent-green); text-shadow: 0 0 10px rgba(74, 222, 128, 0.5); letter-spacing: 2px; } .time-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; } .tempo-section { display: flex; align-items: center; gap: 8px; } .tempo-display { background: #0a0a0a; border: 2px solid #333; border-radius: 4px; padding: 6px 12px; text-align: center; box-shadow: inset 0 2px 8px rgba(0,0,0,0.6); } .tempo-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--accent-amber); text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); } .tempo-label { font-size: 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; } .tempo-btns { display: flex; flex-direction: column; gap: 2px; } .tempo-btn { width: 20px; height: 14px; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: 2px; color: var(--text-dim); cursor: pointer; font-size: 8px; display: flex; align-items: center; justify-content: center; } .tempo-btn:hover { background: var(--surface-3); color: var(--text-primary); } .main-container { display: grid; grid-template-columns: 220px 1fr 260px; height: calc(100vh - 60px); } .browser-panel { background: var(--bg-panel); border-right: 1px solid var(--border-dark); display: flex; flex-direction: column; } .panel-header { background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%); padding: 10px 12px; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 8px; } .panel-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); } .panel-content { flex: 1; overflow-y: auto; padding: 8px; } .browser-section { margin-bottom: 12px; } .browser-section-title { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); padding: 4px 8px; margin-bottom: 4px; } .instrument-list { display: flex; flex-direction: column; gap: 2px; } .instrument-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; transition: all 0.1s; } .instrument-item:hover { background: var(--surface-1); border-color: var(--border-light); } .instrument-item.active { background: rgba(74, 144, 217, 0.15); border-color: var(--accent-blue); } .inst-icon { width: 24px; height: 24px; background: var(--surface-2); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-secondary); border: 1px solid var(--border-light); } .instrument-item.active .inst-icon { background: var(--accent-blue); color: white; border-color: var(--accent-blue); } .inst-name { font-size: 12px; font-weight: 500; color: var(--text-secondary); } .instrument-item.active .inst-name { color: var(--accent-blue); } .synth-controls { padding: 12px; border-top: 1px solid var(--border-dark); background: var(--bg-dark); } .control-row { margin-bottom: 12px; } .control-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .control-name { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); } .control-readout { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent-cyan); background: var(--bg-meter); padding: 2px 6px; border-radius: 2px; } input[type="range"] { width: 100%; height: 6px; -webkit-appearance: none; background: var(--fader-track); border-radius: 3px; border: 1px solid var(--border-dark); } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--fader-cap); border: 1px solid #555; border-radius: 2px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.4); } .center-area { display: flex; flex-direction: column; background: var(--bg-console); } .visualizer-section { background: var(--bg-dark); border-bottom: 1px solid var(--border-dark); padding: 12px; display: flex; gap: 12px; } .viz-panel { flex: 1; background: #0a0a0a; border: 2px solid #2a2a2a; border-radius: 4px; padding: 8px; position: relative; } .viz-panel canvas { width: 100%; height: 80px; display: block; } .viz-title { position: absolute; top: 6px; left: 10px; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); } .tab-bar { display: flex; background: linear-gradient(180deg, #2a2a2a 0%, #222 100%); border-bottom: 1px solid var(--border-dark); } .tab-btn { padding: 10px 20px; background: transparent; border: none; color: var(--text-dim); font-family: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.1s; } .tab-btn:hover { color: var(--text-secondary); } .tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); background: rgba(74, 144, 217, 0.05); } .tab-content { flex: 1; overflow: auto; } .tab-panel { display: none; } .tab-panel.active { display: block; } .piano-section { padding: 16px; background: var(--bg-panel); } .piano-container { background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%); border: 2px solid #333; border-radius: 6px; padding: 16px; box-shadow: inset 0 4px 12px rgba(0,0,0,0.4); } .octave-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .octave-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; } .octave-btns { display: flex; gap: 4px; } .octave-btn { width: 28px; height: 24px; background: var(--surface-2); border: 1px solid var(--border-light); border-radius: 3px; color: var(--text-secondary); font-size: 10px; cursor: pointer; } .octave-btn:hover { background: var(--surface-3); } .keyboard { display: flex; justify-content: center; position: relative; height: 140px; user-select: none; } .white-keys { display: flex; gap: 2px; } .key { position: relative; cursor: pointer; transition: all 0.05s; } .key.white { width: 36px; height: 140px; background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 85%, #ccc 100%); border: 1px solid #aaa; border-radius: 0 0 4px 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.1); } .key.white:hover { background: linear-gradient(180deg, #fff 0%, #f0f0f0 85%, #ddd 100%); } .key.white:active, .key.white.active { background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 85%, #c0c0c0 100%); box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.1); transform: translateY(2px); } .key.black { position: absolute; width: 24px; height: 90px; background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 85%, #0a0a0a 100%); border: 1px solid #111; border-radius: 0 0 3px 3px; z-index: 2; box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 -2px 4px rgba(255,255,255,0.05); } .key.black:hover { background: linear-gradient(180deg, #333 0%, #222 85%, #111 100%); } .key.black:active, .key.black.active { background: linear-gradient(180deg, #222 0%, #1a1a1a 85%, #0a0a0a 100%); transform: translateY(2px); box-shadow: 0 2px 4px rgba(0,0,0,0.5); } .key-label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #888; font-weight: 500; } .key.black .key-label { color: #555; bottom: 6px; } .drum-section { padding: 16px; } .drum-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .drum-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); } .sequencer { background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 4px; padding: 12px; } .seq-header { display: flex; margin-bottom: 8px; padding-left: 80px; } .step-num { width: 28px; text-align: center; font-size: 9px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; } .step-num.beat { color: var(--accent-amber); } .seq-row { display: flex; align-items: center; margin-bottom: 4px; } .drum-label { width: 80px; font-size: 10px; color: var(--text-secondary); font-weight: 500; cursor: pointer; } .drum-label:hover { color: var(--accent-blue); } .seq-steps { display: flex; gap: 2px; } .seq-step { width: 26px; height: 26px; background: var(--surface-1); border: 1px solid var(--border-dark); border-radius: 3px; cursor: pointer; transition: all 0.1s; } .seq-step:hover { background: var(--surface-2); } .seq-step.active { background: var(--accent-blue); border-color: var(--accent-blue); box-shadow: 0 0 8px rgba(74, 144, 217, 0.4); } .seq-step.playing { box-shadow: 0 0 12px rgba(74, 222, 128, 0.6); } .seq-step.beat-marker { border-color: var(--border-light); } .pattern-controls { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-dark); } .pattern-btn { padding: 8px 16px; background: var(--surface-1); border: 1px solid var(--border-light); border-radius: 3px; color: var(--text-secondary); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; } .pattern-btn:hover { background: var(--surface-2); } .mixer-panel { background: linear-gradient(180deg, #222 0%, #1a1a1a 100%); border-left: 1px solid var(--border-dark); display: flex; flex-direction: column; } .channel-strips { flex: 1; display: flex; gap: 1px; padding: 8px; background: var(--bg-dark); overflow-x: auto; } .channel-strip { width: 76px; min-width: 76px; background: linear-gradient(180deg, #2a2a2a 0%, #222 100%); border: 1px solid var(--border-dark); border-radius: 4px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; } .channel-name { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); text-align: center; width: 100%; padding-bottom: 6px; border-bottom: 1px solid var(--border-dark); } .knob-container { display: flex; flex-direction: column; align-items: center; gap: 4px; } .knob { width: 36px; height: 36px; background: var(--knob-bg); border-radius: 50%; border: 2px solid var(--knob-ring); position: relative; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); user-select: none; } .knob::after { content: ''; position: absolute; top: 6px; left: 50%; width: 2px; height: 10px; background: var(--text-primary); border-radius: 1px; transform-origin: center 12px; transform: translateX(-50%) rotate(var(--rotation, 0deg)); } .knob:hover { border-color: var(--accent-blue); } .knob.active { border-color: var(--accent-cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.3); } .knob-label { font-size: 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; } .knob-value { font-family: 'JetBrains Mono', monospace; font-size: 8px; color: var(--accent-cyan); } .meter-container { width: 100%; display: flex; gap: 4px; justify-content: center; } .vu-meter { width: 10px; height: 80px; background: var(--bg-meter); border: 1px solid var(--border-dark); border-radius: 2px; position: relative; overflow: hidden; display: flex; flex-direction: column-reverse; } .vu-level { width: 100%; background: linear-gradient(to top, var(--meter-green) 0%, var(--meter-green) 60%, var(--meter-yellow) 60%, var(--meter-yellow) 80%, var(--meter-orange) 80%, var(--meter-orange) 90%, var(--meter-red) 90%); transition: height 0.05s; } .fader-container { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; height: 110px; } .fader-track { width: 6px; height: 90px; background: var(--fader-track); border-radius: 3px; position: relative; border: 1px solid var(--border-dark); } .fader-fill { position: absolute; bottom: 0; width: 100%; background: linear-gradient(to top, var(--accent-blue) 0%, var(--accent-cyan) 100%); border-radius: 3px; transition: height 0.05s; } .fader-handle { position: absolute; width: 24px; height: 10px; background: var(--fader-cap); border: 1px solid #555; border-radius: 2px; left: 50%; transform: translateX(-50%); cursor: ns-resize; box-shadow: 0 2px 4px rgba(0,0,0,0.4); z-index: 2; } .fader-handle:hover { background: linear-gradient(180deg, #5a5a5a 0%, #444 50%, #5a5a5a 100%); } .fader-db { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent-cyan); } .channel-btns { display: flex; gap: 4px; margin-top: auto; } .ch-btn { width: 24px; height: 20px; font-size: 8px; font-weight: 700; border: 1px solid var(--border-dark); border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .ch-btn.mute { background: var(--surface-1); color: var(--text-dim); } .ch-btn.mute.active { background: var(--accent-amber); color: #000; border-color: var(--accent-amber); } .ch-btn.solo { background: var(--surface-1); color: var(--text-dim); } .ch-btn.solo.active { background: var(--accent-green); color: #000; border-color: var(--accent-green); } .effects-section { padding: 12px; border-top: 1px solid var(--border-dark); background: var(--bg-panel); } .effects-header { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 10px; } .fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .fx-module { background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 4px; padding: 8px; } .fx-module.active { border-color: var(--accent-blue); } .fx-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .fx-name { font-size: 9px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } .fx-toggle { width: 12px; height: 12px; background: var(--led-off); border-radius: 50%; cursor: pointer; border: 1px solid var(--border-dark); } .fx-toggle.active { background: var(--led-on); box-shadow: 0 0 8px var(--led-on); } .fx-knobs { display: flex; justify-content: space-around; gap: 8px; } .fx-knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; } .mini-knob { width: 28px; height: 28px; background: var(--knob-bg); border-radius: 50%; border: 2px solid var(--knob-ring); position: relative; cursor: pointer; user-select: none; } .mini-knob::after { content: ''; position: absolute; top: 4px; left: 50%; width: 2px; height: 8px; background: var(--text-primary); border-radius: 1px; transform-origin: center 10px; transform: translateX(-50%) rotate(var(--rotation, 0deg)); } .mini-knob:hover { border-color: var(--accent-blue); } .mini-knob-label { font-size: 7px; color: var(--text-dim); text-transform: uppercase; } .master-section { padding: 12px; background: linear-gradient(180deg, #1f1f1f 0%, #181818 100%); border-top: 2px solid var(--accent-red); } .master-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-red); text-align: center; margin-bottom: 8px; } .master-meters { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; } .master-meter { width: 16px; height: 80px; background: var(--bg-meter); border: 1px solid var(--border-dark); border-radius: 2px; position: relative; overflow: hidden; } .master-level { position: absolute; bottom: 0; width: 100%; background: linear-gradient(to top, var(--meter-green) 0%, var(--meter-green) 60%, var(--meter-yellow) 60%, var(--meter-yellow) 80%, var(--meter-red) 80%); } .master-fader { display: flex; justify-content: center; align-items: center; gap: 8px; } .master-fader input[type="range"] { width: 120px; } .master-db { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent-cyan); min-width: 45px; } </style> </head> <body> <header class="header"> <div class="logo"> <div class="logo-badge"> <div class="logo-text">AI Music</div> <div class="logo-sub">Professional Studio</div> </div> </div> <div class="transport"> <button class="transport-btn" onclick="rewind()">⏮</button> <button class="transport-btn stop" onclick="stopAll()">■</button> <button class="transport-btn play" id="playBtn" onclick="togglePlay()">▶</button> <button class="transport-btn record" id="recBtn" onclick="toggleRecord()">●</button> <button class="transport-btn" onclick="forward()">⏭</button> </div> <div class="tempo-section"> <div class="tempo-display"> <div class="tempo-value" id="tempoValue">120</div> <div class="tempo-label">BPM</div> </div> <div class="tempo-btns"> <button class="tempo-btn" onclick="changeTempo(1)">▲</button> <button class="tempo-btn" onclick="changeTempo(-1)">▼</button> </div> </div> <div class="time-display"> <div class="time-value" id="timeDisplay">00:00:00</div> <div class="time-label">Time</div> </div> </header> <div class="main-container"> <div class="browser-panel"> <div class="panel-header"> <span class="panel-title">Instruments</span> </div> <div class="panel-content"> <div class="browser-section"> <div class="browser-section-title">Synthesizers</div> <div class="instrument-list" id="synthList"></div> </div> <div class="browser-section"> <div class="browser-section-title">Keyboards</div> <div class="instrument-list" id="keyboardList"></div> </div> <div class="browser-section"> <div class="browser-section-title">Bass & Lead</div> <div class="instrument-list" id="bassLeadList"></div> </div> </div> <div class="synth-controls"> <div class="control-row"> <div class="control-header"> <span class="control-name">Attack</span> <span class="control-readout" id="attackVal">20ms</span> </div> <input type="range" id="attackSlider" min="1" max="1000" value="20" oninput="updateADSR()"> </div> <div class="control-row"> <div class="control-header"> <span class="control-name">Decay</span> <span class="control-readout" id="decayVal">100ms</span> </div> <input type="range" id="decaySlider" min="1" max="2000" value="100" oninput="updateADSR()"> </div> <div class="control-row"> <div class="control-header"> <span class="control-name">Sustain</span> <span class="control-readout" id="sustainVal">70%</span> </div> <input type="range" id="sustainSlider" min="0" max="100" value="70" oninput="updateADSR()"> </div> <div class="control-row"> <div class="control-header"> <span class="control-name">Release</span> <span class="control-readout" id="releaseVal">300ms</span> </div> <input type="range" id="releaseSlider" min="10" max="3000" value="300" oninput="updateADSR()"> </div> <div class="control-row"> <div class="control-header"> <span class="control-name">Filter</span> <span class="control-readout" id="filterVal">8000Hz</span> </div> <input type="range" id="filterSlider" min="100" max="20000" value="8000" oninput="updateFilter()"> </div> <div class="control-row"> <div class="control-header"> <span class="control-name">Resonance</span> <span class="control-readout" id="resVal">1.0</span> </div> <input type="range" id="resSlider" min="0" max="20" value="1" step="0.1" oninput="updateFilter()"> </div> </div> </div> <div class="center-area"> <div class="visualizer-section"> <div class="viz-panel"> <span class="viz-title">Waveform</span> <canvas id="waveformCanvas"></canvas> </div> <div class="viz-panel"> <span class="viz-title">Spectrum</span> <canvas id="spectrumCanvas"></canvas> </div> </div> <div class="tab-bar"> <button class="tab-btn active" onclick="showTab('piano')">Keyboard</button> <button class="tab-btn" onclick="showTab('drums')">Drum Machine</button> <button class="tab-btn" onclick="showTab('arpeggiator')">Arpeggiator</button> </div> <div class="tab-content"> <div class="tab-panel active" id="pianoPanel"> <div class="piano-section"> <div class="piano-container"> <div class="octave-info"> <span class="octave-label">Octave: <span id="octaveDisplay">4</span></span> <div class="octave-btns"> <button class="octave-btn" onclick="changeOctave(-1)">−</button> <button class="octave-btn" onclick="changeOctave(1)">+</button> </div> </div> <div class="keyboard" id="keyboard"></div> </div> </div> </div> <div class="tab-panel" id="drumsPanel"> <div class="drum-section"> <div class="drum-header"> <span class="drum-title">Step Sequencer</span> </div> <div class="sequencer" id="sequencer"></div> <div class="pattern-controls"> <button class="pattern-btn" onclick="clearPattern()">Clear</button> <button class="pattern-btn" onclick="loadPattern('basic')">Basic</button> <button class="pattern-btn" onclick="loadPattern('hiphop')">Hip-Hop</button> <button class="pattern-btn" onclick="loadPattern('house')">House</button> <button class="pattern-btn" onclick="loadPattern('dnb')">D&B</button> <button class="pattern-btn" onclick="loadPattern('trap')">Trap</button> </div> </div> </div> <div class="tab-panel" id="arpeggiatorPanel"> <div class="drum-section"> <div class="drum-header"> <span class="drum-title">Arpeggiator</span> </div> <div class="pattern-controls" style="flex-wrap: wrap; gap: 12px;"> <div class="control-row" style="flex: 1; min-width: 150px;"> <div class="control-header"><span class="control-name">Pattern</span></div> <select id="arpPattern" style="width: 100%; padding: 8px; background: var(--surface-1); border: 1px solid var(--border-light); border-radius: 3px; color: var(--text-primary);"> <option value="up">Up</option> <option value="down">Down</option> <option value="updown">Up-Down</option> <option value="random">Random</option> </select> </div> <div class="control-row" style="flex: 1; min-width: 150px;"> <div class="control-header"> <span class="control-name">Rate</span> <span class="control-readout" id="arpRateVal">1/8</span> </div> <input type="range" id="arpRate" min="0" max="4" value="2" oninput="updateArpRate()"> </div> <div class="control-row" style="flex: 1; min-width: 150px;"> <div class="control-header"> <span class="control-name">Octaves</span> <span class="control-readout" id="arpOctVal">2</span> </div> <input type="range" id="arpOctaves" min="1" max="4" value="2" oninput="updateArpOctaves()"> </div> <button class="pattern-btn" id="arpToggle" onclick="toggleArpeggiator()" style="height: 40px;">Start Arp</button> </div> </div> </div> </div> </div> <div class="mixer-panel"> <div class="panel-header"> <span class="panel-title">Mixer</span> </div> <div class="channel-strips" id="channelStrips"></div> <div class="effects-section"> <div class="effects-header">Effects</div> <div class="fx-grid" id="fxGrid"></div> </div> <div class="master-section"> <div class="master-label">Master</div> <div class="master-meters"> <div class="master-meter"><div class="master-level" id="masterL" style="height: 0%"></div></div> <div class="master-meter"><div class="master-level" id="masterR" style="height: 0%"></div></div> </div> <div class="master-fader"> <input type="range" id="masterVol" min="0" max="100" value="80" oninput="updateMasterVol()"> <span class="master-db" id="masterDb">0.0 dB</span> </div> </div> </div> </div> <script> // Knob Controller Class class KnobController { constructor() { this.activeKnob = null; this.startY = 0; this.startValue = 0; this.sensitivity = 0.5; document.addEventListener('mousemove', this.onMouseMove.bind(this)); document.addEventListener('mouseup', this.onMouseUp.bind(this)); } attach(element, options) { element.dataset.value = options.value || 0; element.dataset.min = options.min || 0; element.dataset.max = options.max || 100; this.updateKnobVisual(element); element.addEventListener('mousedown', (e) => { e.preventDefault(); this.activeKnob = element; this.startY = e.clientY; this.startValue = parseFloat(element.dataset.value); element.classList.add('active'); }); element.addEventListener('dblclick', () => { element.dataset.value = options.default || ((options.max + options.min) / 2); this.updateKnobVisual(element); if (options.onChange) options.onChange(parseFloat(element.dataset.value)); }); element._onChange = options.onChange; } onMouseMove(e) { if (!this.activeKnob) return; const delta = (this.startY - e.clientY) * this.sensitivity; const min = parseFloat(this.activeKnob.dataset.min); const max = parseFloat(this.activeKnob.dataset.max); const range = max - min; const newValue = Math.max(min, Math.min(max, this.startValue + (delta / 100) * range)); this.activeKnob.dataset.value = newValue; this.updateKnobVisual(this.activeKnob); if (this.activeKnob._onChange) { this.activeKnob._onChange(newValue); } } onMouseUp() { if (this.activeKnob) { this.activeKnob.classList.remove('active'); this.activeKnob = null; } } updateKnobVisual(element) { const value = parseFloat(element.dataset.value); const min = parseFloat(element.dataset.min); const max = parseFloat(element.dataset.max); const percent = (value - min) / (max - min); const rotation = -135 + (percent * 270); element.style.setProperty('--rotation', rotation + 'deg'); } } const knobController = new KnobController(); // Fader Controller Class class FaderController { constructor() { this.activeFader = null; this.startY = 0; this.startValue = 0; document.addEventListener('mousemove', this.onMouseMove.bind(this)); document.addEventListener('mouseup', this.onMouseUp.bind(this)); } attach(track, handle, fill, dbDisplay, options) { const state = { value: options.value || 80 }; this.updateFaderVisual(track, handle, fill, dbDisplay, state.value); handle.addEventListener('mousedown', (e) => { e.preventDefault(); this.activeFader = { track, handle, fill, dbDisplay, state, options }; this.startY = e.clientY; this.startValue = state.value; }); return state; } onMouseMove(e) { if (!this.activeFader) return; const { track, handle, fill, dbDisplay, state, options } = this.activeFader; const trackHeight = track.offsetHeight - handle.offsetHeight; const delta = (this.startY - e.clientY) / trackHeight * 100; const newValue = Math.max(0, Math.min(100, this.startValue + delta)); state.value = newValue; this.updateFaderVisual(track, handle, fill, dbDisplay, newValue); if (options.onChange) options.onChange(newValue); } onMouseUp() { this.activeFader = null; } updateFaderVisual(track, handle, fill, dbDisplay, value) { const trackHeight = track.offsetHeight - handle.offsetHeight; const position = (value / 100) * trackHeight; handle.style.bottom = position + 'px'; fill.style.height = value + '%'; if (dbDisplay) { const db = value === 0 ? '-∞' : (20 * Math.log10(value / 80)).toFixed(1); dbDisplay.textContent = db === '-∞' ? '-∞ dB' : db + ' dB'; } } } const faderController = new FaderController(); // Audio Engine class AudioEngine { constructor() { this.ctx = null; this.masterGain = null; this.analyser = null; this.compressor = null; this.activeNotes = new Map(); this.currentInstrument = 'synth'; this.octave = 4; this.filterCutoff = 8000; this.filterQ = 1; this.channels = { synth: { gain: null, pan: null, muted: false, solo: false, level: 80 }, drums: { gain: null, pan: null, muted: false, solo: false, level: 80 }, fx: { gain: null, pan: null, muted: false, solo: false, level: 60 } }; this.effects = { reverb: { enabled: true, mix: 0.3, decay: 0.5 }, delay: { enabled: false, time: 0.25, feedback: 0.3 }, chorus: { enabled: false, rate: 1.5, depth: 0.3 }, distortion: { enabled: false, amount: 0.3, tone: 0.5 } }; this.instruments = { synth: { wave: 'sawtooth', attack: 0.02, decay: 0.1, sustain: 0.7, release: 0.3, category: 'synth', label: 'Analog Synth' }, supersaw: { wave: 'sawtooth', attack: 0.01, decay: 0.15, sustain: 0.8, release: 0.4, detune: 15, voices: 5, category: 'synth', label: 'Supersaw' }, square: { wave: 'square', attack: 0.01, decay: 0.1, sustain: 0.6, release: 0.2, category: 'synth', label: 'Square Lead' }, piano: { wave: 'triangle', attack: 0.005, decay: 0.5, sustain: 0.3, release: 0.8, detune: 3, category: 'keyboard', label: 'Acoustic Piano' }, epiano: { wave: 'sine', attack: 0.01, decay: 0.3, sustain: 0.5, release: 0.6, fm: true, category: 'keyboard', label: 'Electric Piano' }, organ: { wave: 'sine', attack: 0.01, decay: 0.01, sustain: 1, release: 0.1, harmonics: true, category: 'keyboard', label: 'Organ' }, clavinet: { wave: 'square', attack: 0.001, decay: 0.2, sustain: 0.4, release: 0.15, category: 'keyboard', label: 'Clavinet' }, bass: { wave: 'sawtooth', attack: 0.01, decay: 0.2, sustain: 0.6, release: 0.15, category: 'basslead', label: 'Synth Bass' }, subbass: { wave: 'sine', attack: 0.02, decay: 0.3, sustain: 0.8, release: 0.2, category: 'basslead', label: 'Sub Bass' }, lead: { wave: 'square', attack: 0.01, decay: 0.15, sustain: 0.5, release: 0.2, category: 'basslead', label: 'Square Lead' }, pluck: { wave: 'triangle', attack: 0.001, decay: 0.3, sustain: 0.05, release: 0.4, category: 'basslead', label: 'Pluck' }, strings: { wave: 'sawtooth', attack: 0.3, decay: 0.2, sustain: 0.8, release: 0.8, detune: 5, category: 'basslead', label: 'Strings' }, pad: { wave: 'sine', attack: 0.8, decay: 0.3, sustain: 0.7, release: 1.5, detune: 8, category: 'basslead', label: 'Warm Pad' }, brass: { wave: 'sawtooth', attack: 0.08, decay: 0.2, sustain: 0.6, release: 0.3, category: 'basslead', label: 'Brass' } }; } init() { if (this.ctx) return; this.ctx = new (window.AudioContext || window.webkitAudioContext)(); this.analyser = this.ctx.createAnalyser(); this.analyser.fftSize = 2048; this.compressor = this.ctx.createDynamicsCompressor(); this.compressor.threshold.value = -24; this.compressor.knee.value = 30; this.compressor.ratio.value = 12; this.compressor.attack.value = 0.003; this.compressor.release.value = 0.25; this.masterGain = this.ctx.createGain(); this.masterGain.gain.value = 0.8; // Create channel gains Object.keys(this.channels).forEach(ch => { this.channels[ch].gain = this.ctx.createGain(); this.channels[ch].gain.gain.value = this.channels[ch].level / 100; this.channels[ch].pan = this.ctx.createStereoPanner(); this.channels[ch].pan.pan.value = 0; this.channels[ch].gain.connect(this.channels[ch].pan); this.channels[ch].pan.connect(this.compressor); }); // Reverb this.reverbGain = this.ctx.createGain(); this.reverbGain.gain.value = this.effects.reverb.mix; this.convolver = this.ctx.createConvolver(); this.createReverbIR(); this.reverbGain.connect(this.convolver); this.convolver.connect(this.channels.fx.gain); // Delay this.delayNode = this.ctx.createDelay(1); this.delayNode.delayTime.value = this.effects.delay.time; this.delayFeedback = this.ctx.createGain(); this.delayFeedback.gain.value = this.effects.delay.feedback; this.delayMix = this.ctx.createGain(); this.delayMix.gain.value = 0; this.delayNode.connect(this.delayFeedback); this.delayFeedback.connect(this.delayNode); this.delayNode.connect(this.delayMix); this.delayMix.connect(this.channels.fx.gain); // Distortion this.distortion = this.ctx.createWaveShaper(); this.distortion.curve = this.makeDistortionCurve(0); this.distortionGain = this.ctx.createGain(); this.distortionGain.gain.value = 0; this.compressor.connect(this.masterGain); this.masterGain.connect(this.analyser); this.analyser.connect(this.ctx.destination); this.startVisualizer(); } makeDistortionCurve(amount) { const k = amount * 100; const samples = 44100; const curve = new Float32Array(samples); for (let i = 0; i < samples; i++) { const x = (i * 2) / samples - 1; curve[i] = ((3 + k) * x * 20 * (Math.PI / 180)) / (Math.PI + k * Math.abs(x)); } return curve; } createReverbIR() { const sampleRate = this.ctx.sampleRate; const decay = this.effects.reverb.decay; const length = sampleRate * (1 + decay * 3); const impulse = this.ctx.createBuffer(2, length, sampleRate); for (let channel = 0; channel < 2; channel++) { const channelData = impulse.getChannelData(channel); for (let i = 0; i < length; i++) { channelData[i] = (Math.random() * 2 - 1) * Math.pow(1 - i / length, 1 + decay); } } this.convolver.buffer = impulse; } setChannelGain(channel, value) { if (this.channels[channel] && this.channels[channel].gain) { this.channels[channel].level = value; this.channels[channel].gain.gain.value = value / 100; } } setChannelPan(channel, value) { if (this.channels[channel] && this.channels[channel].pan) { this.channels[channel].pan.pan.value = (value - 50) / 50; } } setChannelMute(channel, muted) { if (this.channels[channel]) { this.channels[channel].muted = muted; this.updateChannelRouting(); } } setChannelSolo(channel, solo) { if (this.channels[channel]) { this.channels[channel].solo = solo; this.updateChannelRouting(); } } updateChannelRouting() { const anySolo = Object.values(this.channels).some(ch => ch.solo); Object.entries(this.channels).forEach(([name, ch]) => { if (ch.gain) { if (ch.muted) { ch.gain.gain.value = 0; } else if (anySolo && !ch.solo) { ch.gain.gain.value = 0; } else { ch.gain.gain.value = ch.level / 100; } } }); } setEffectParam(effect, param, value) { this.effects[effect][param] = value; if (effect === 'reverb') { if (param === 'mix') { this.reverbGain.gain.value = this.effects.reverb.enabled ? value : 0; } else if (param === 'decay') { this.createReverbIR(); } } else if (effect === 'delay') { if (param === 'time') { this.delayNode.delayTime.value = value; } else if (param === 'feedback') { this.delayFeedback.gain.value = value; } } else if (effect === 'distortion') { if (param === 'amount') { this.distortion.curve = this.makeDistortionCurve(value); } } } toggleEffect(effect, enabled) { this.effects[effect].enabled = enabled; if (effect === 'reverb') { this.reverbGain.gain.value = enabled ? this.effects.reverb.mix : 0; } else if (effect === 'delay') { this.delayMix.gain.value = enabled ? 0.3 : 0; } else if (effect === 'distortion') { this.distortionGain.gain.value = enabled ? this.effects.distortion.amount : 0; } } noteToFreq(note, octave) { const notes = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B']; const noteIndex = notes.indexOf(note); const midiNote = (octave + 1) * 12 + noteIndex; return 440 * Math.pow(2, (midiNote - 69) / 12); } playNote(note, octave = this.octave) { this.init(); const noteId = `${note}${octave}`; if (this.activeNotes.has(noteId)) return; const freq = this.noteToFreq(note, octave); const inst = this.instruments[this.currentInstrument]; const now = this.ctx.currentTime; const noteData = { oscillators: [], gains: [], filter: null }; const filter = this.ctx.createBiquadFilter(); filter.type = 'lowpass'; filter.frequency.value = this.filterCutoff; filter.Q.value = this.filterQ; noteData.filter = filter; const createOsc = (wave, detune = 0, gainMult = 1) => { const osc = this.ctx.createOscillator(); const gain = this.ctx.createGain(); osc.type = wave === 'noise' ? 'sawtooth' : wave; osc.frequency.value = freq; osc.detune.value = detune; gain.gain.setValueAtTime(0, now); gain.gain.linearRampToValueAtTime(gainMult * 0.3, now + inst.attack); gain.gain.linearRampToValueAtTime(gainMult * 0.3 * inst.sustain, now + inst.attack + inst.decay); osc.connect(gain); gain.connect(filter); osc.start(now); noteData.oscillators.push(osc); noteData.gains.push(gain); }; if (inst.voices && inst.detune) { for (let i = 0; i < inst.voices; i++) { const detune = (i - (inst.voices - 1) / 2) * inst.detune; createOsc(inst.wave, detune, 1 / inst.voices); } } else if (inst.harmonics) { createOsc('sine', 0, 1); createOsc('sine', 1200, 0.5); createOsc('sine', 1902, 0.3); } else if (inst.fm) { const modOsc = this.ctx.createOscillator(); const modGain = this.ctx.createGain(); modOsc.frequency.value = freq * 2; modGain.gain.value = freq * 0.5; modOsc.connect(modGain); const carrier = this.ctx.createOscillator(); const carrierGain = this.ctx.createGain(); carrier.frequency.value = freq; modGain.connect(carrier.frequency); carrierGain.gain.setValueAtTime(0, now); carrierGain.gain.linearRampToValueAtTime(0.3, now + inst.attack); carrierGain.gain.linearRampToValueAtTime(0.3 * inst.sustain, now + inst.attack + inst.decay); carrier.connect(carrierGain); carrierGain.connect(filter); modOsc.start(now); carrier.start(now); noteData.oscillators.push(modOsc, carrier); noteData.gains.push(carrierGain); } else if (inst.detune) { createOsc(inst.wave, -inst.detune, 0.5); createOsc(inst.wave, inst.detune, 0.5); } else { createOsc(inst.wave); } filter.connect(this.channels.synth.gain); filter.connect(this.reverbGain); filter.connect(this.delayNode); this.activeNotes.set(noteId, noteData); } stopNote(note, octave = this.octave) { const noteId = `${note}${octave}`; const noteData = this.activeNotes.get(noteId); if (!noteData) return; const inst = this.instruments[this.currentInstrument]; const now = this.ctx.currentTime; noteData.gains.forEach(gain => { gain.gain.cancelScheduledValues(now); gain.gain.setValueAtTime(gain.gain.value, now); gain.gain.linearRampToValueAtTime(0, now + inst.release); }); setTimeout(() => { noteData.oscillators.forEach(osc => { try { osc.stop(); } catch(e) {} }); }, inst.release * 1000 + 100); this.activeNotes.delete(noteId); } playDrum(type) { this.init(); const now = this.ctx.currentTime; const output = this.channels.drums.gain; const drumSynth = { kick: () => { const osc = this.ctx.createOscillator(); const gain = this.ctx.createGain(); osc.frequency.setValueAtTime(150, now); osc.frequency.exponentialRampToValueAtTime(30, now + 0.1); gain.gain.setValueAtTime(1, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.4); osc.connect(gain); gain.connect(output); osc.start(now); osc.stop(now + 0.4); }, snare: () => { const bufferSize = this.ctx.sampleRate * 0.2; const buffer = this.ctx.createBuffer(1, bufferSize, this.ctx.sampleRate); const data = buffer.getChannelData(0); for (let i = 0; i < bufferSize; i++) data[i] = Math.random() * 2 - 1; const noise = this.ctx.createBufferSource(); noise.buffer = buffer; const noiseFilter = this.ctx.createBiquadFilter(); noiseFilter.type = 'highpass'; noiseFilter.frequency.value = 1000; const noiseGain = this.ctx.createGain(); noiseGain.gain.setValueAtTime(0.8, now); noiseGain.gain.exponentialRampToValueAtTime(0.01, now + 0.2); noise.connect(noiseFilter); noiseFilter.connect(noiseGain); noiseGain.connect(output); noise.start(now); const osc = this.ctx.createOscillator(); const oscGain = this.ctx.createGain(); osc.frequency.value = 180; oscGain.gain.setValueAtTime(0.5, now); oscGain.gain.exponentialRampToValueAtTime(0.01, now + 0.1); osc.connect(oscGain); oscGain.connect(output); osc.start(now); osc.stop(now + 0.2); }, hihat: () => { const bufferSize = this.ctx.sampleRate * 0.05; const buffer = this.ctx.createBuffer(1, bufferSize, this.ctx.sampleRate); const data = buffer.getChannelData(0); for (let i = 0; i < bufferSize; i++) data[i] = Math.random() * 2 - 1; const noise = this.ctx.createBufferSource(); noise.buffer = buffer; const filter = this.ctx.createBiquadFilter(); filter.type = 'highpass'; filter.frequency.value = 7000; const gain = this.ctx.createGain(); gain.gain.setValueAtTime(0.3, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.05); noise.connect(filter); filter.connect(gain); gain.connect(output); noise.start(now); }, openhat: () => { const bufferSize = this.ctx.sampleRate * 0.3; const buffer = this.ctx.createBuffer(1, bufferSize, this.ctx.sampleRate); const data = buffer.getChannelData(0); for (let i = 0; i < bufferSize; i++) data[i] = Math.random() * 2 - 1; const noise = this.ctx.createBufferSource(); noise.buffer = buffer; const filter = this.ctx.createBiquadFilter(); filter.type = 'highpass'; filter.frequency.value = 6000; const gain = this.ctx.createGain(); gain.gain.setValueAtTime(0.3, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.3); noise.connect(filter); filter.connect(gain); gain.connect(output); noise.start(now); }, clap: () => { for (let i = 0; i < 3; i++) { const bufferSize = this.ctx.sampleRate * 0.02; const buffer = this.ctx.createBuffer(1, bufferSize, this.ctx.sampleRate); const data = buffer.getChannelData(0); for (let j = 0; j < bufferSize; j++) data[j] = Math.random() * 2 - 1; const noise = this.ctx.createBufferSource(); noise.buffer = buffer; const filter = this.ctx.createBiquadFilter(); filter.type = 'bandpass'; filter.frequency.value = 2000; const gain = this.ctx.createGain(); gain.gain.setValueAtTime(0.5, now + i * 0.01); gain.gain.exponentialRampToValueAtTime(0.01, now + i * 0.01 + 0.1); noise.connect(filter); filter.connect(gain); gain.connect(output); noise.start(now + i * 0.01); } }, tom: () => { const osc = this.ctx.createOscillator(); const gain = this.ctx.createGain(); osc.frequency.setValueAtTime(200, now); osc.frequency.exponentialRampToValueAtTime(80, now + 0.15); gain.gain.setValueAtTime(0.6, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.3); osc.connect(gain); gain.connect(output); osc.start(now); osc.stop(now + 0.3); }, rim: () => { const osc = this.ctx.createOscillator(); const gain = this.ctx.createGain(); osc.type = 'square'; osc.frequency.value = 1800; gain.gain.setValueAtTime(0.3, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.02); osc.connect(gain); gain.connect(output); osc.start(now); osc.stop(now + 0.02); }, perc: () => { const osc = this.ctx.createOscillator(); const gain = this.ctx.createGain(); osc.type = 'triangle'; osc.frequency.setValueAtTime(800, now); osc.frequency.exponentialRampToValueAtTime(400, now + 0.05); gain.gain.setValueAtTime(0.3, now); gain.gain.exponentialRampToValueAtTime(0.01, now + 0.1); osc.connect(gain); gain.connect(output); osc.start(now);

Search equations, builds, manuscript text, and recovered sources.