Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

6.5 KB
Raw Blame
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Afterhours · Music Studio</title><!-- FAVICON --><style>/* STUDIO_CSS */</style></head><body>
<header><div class="identity"><span class="brand-icon"><!-- PROJECT_ICON --></span>AFTERHOURS<span>MUSIC STUDIO</span></div><div class="file-actions"><button id="open-project">Open project</button><button id="save-project">Save project</button><button id="export-stems" class="primary">Stems + project ↗</button></div></header>
<div class="notice" id="revision-notice" hidden><span>A new agent revision is available. Your saved mix and notes are still here.</span><button id="use-revision">Use new version</button><button id="keep-draft">Keep my draft</button></div>
<main><section class="main-panel"><div class="project-heading"><div><p class="eyebrow">YOUR COMPOSITION</p><h1 id="title"></h1><p id="brief"></p></div><div class="project-controls"><label>Tempo<input id="tempo" type="number" min="30" max="240" step="0.001"></label><label>Bars<input id="bars" type="number" min="1" max="256"></label><span id="meter"></span></div></div>
<div class="transport"><div class="transport-buttons"><button id="play" class="play" aria-label="Play">▶ Play</button><button id="stop">■ Stop</button><span id="time">0:00 / 0:00</span></div><div class="exports"><button id="export-wav">Export WAV ↗</button><button id="export-midi">Export MIDI ↗</button></div></div>
<div class="wave-stage"><canvas id="waveform" aria-label="Rendered stereo waveform"></canvas><div class="mix-stats"><span id="audio-status">Preparing your mix</span><span id="level">48 kHz / stereo</span></div></div>
<div class="section-heading"><h2>Arrangement</h2><div class="small-actions"><button id="open-midi">Open MIDI</button><button id="import-audio">Add recording</button><button id="add-track">+ Instrument</button></div></div>
<div id="sections" class="sections"></div><div id="tracks" class="tracks"></div>
<div class="section-heading"><div><h2 id="piano-title">Notes</h2><p class="hint">Click to add. Drag to move. Select a note to change its pitch, length or touch.</p></div><div class="small-actions"><button id="previous-bars" aria-label="Previous bars">←</button><span id="bar-window"></span><button id="next-bars" aria-label="Next bars">→</button></div></div>
<div class="piano-stage"><canvas id="piano" aria-label="Editable piano roll" tabindex="0"></canvas></div>
<div class="note-editor"><label>Pitch<input id="note-pitch" value="C4" size="5"></label><label>Start beat<input id="note-start" type="number" min="0" step="0.25"></label><label>Length<input id="note-length" type="number" min="0.125" step="0.25" value="1"></label><label>Touch<input id="note-velocity" type="range" min="0.05" max="1" step="0.01" value="0.75"></label><button id="delete-note">Delete note</button></div>
<div class="edit-actions"><div><button id="undo">↶ Undo</button><button id="redo">↷ Redo</button><button id="duplicate-section">Repeat these bars</button></div><span id="draft-status">Draft saved on this device</span></div>
<div class="handoff"><div><p class="eyebrow">KEEP MAKING IT YOURS</p><h2>A piece you can take anywhere.</h2><p>Bring your own MIDI or recordings. Keep the notes editable. Export the mix and separate tracks to continue in your DAW.</p></div><details><summary>Make a completely different piece</summary><p>Describe it in the Harness chat. Give the purpose, mood, length and any melody or recording you want to use. The agent writes a complete arrangement for your brief. This example is not a genre restriction.</p><p>Try: “Make a 40-second title sequence for a coastal documentary. Start with an intimate plucked motif, open into warm harmony, then end on a quiet resolved chord. Leave room for my voiceover.”</p></details></div>
</section><aside><p class="eyebrow">SELECTED TRACK</p><label>Track name<input id="track-name"></label><label>Sound<select id="instrument"></select></label><div id="sampler-controls" hidden><label>Sample<select id="sample-id"></select></label><label>Original pitch<input id="sample-root" value="C4"></label></div>
<div class="mixer-buttons"><button id="mute">Mute</button><button id="solo">Solo</button></div>
<label>Level <output id="gain-label"></output><input id="gain" type="range" min="0" max="1.5" step="0.01"></label><label>Position <output id="pan-label"></output><input id="pan" type="range" min="-1" max="1" step="0.01"></label>
<div class="rule"></div><p class="eyebrow">SHAPE THE SOUND</p><label>Soft entrance<input id="attack" type="range" min="0.001" max="3" step="0.001"></label><label>Release<input id="release" type="range" min="0.01" max="3" step="0.01"></label><label>Brightness<input id="tone" type="range" min="100" max="20000" step="100"></label><label>Room<input id="space" type="range" min="0" max="0.8" step="0.01"></label><label>Echo<input id="delay" type="range" min="0" max="0.6" step="0.01"></label>
<div id="clip-controls" hidden><div class="rule"></div><p class="eyebrow">RECORDING</p><label>Clip<select id="clip-select"></select></label><label>Start beat<input id="clip-beat" type="number" min="0" step="0.25"></label><label>Trim start (seconds)<input id="clip-offset" type="number" min="0" step="0.01"></label><label>Length (seconds)<input id="clip-duration" type="number" min="0.01" step="0.01"></label></div>
<div class="rule"></div><div class="transpose"><button id="transpose-down">− Octave</button><button id="transpose-up">+ Octave</button></div><button id="remove-track" class="quiet">Remove track</button><div class="rule"></div><p class="eyebrow">MASTER</p><label>Output level<input id="master" type="range" min="0" max="1" step="0.01"></label><p class="hint">WAV: 48 kHz, stereo, 16-bit. Stems follow mute and solo. MIDI keeps all notes; recordings travel as audio.</p><button id="export-html" class="quiet">Portable studio ↗</button><button id="reset-project" class="quiet">Restore agent version</button></aside></main>
<div id="error" class="error" role="alert" hidden></div><div id="toast" role="status"></div><input id="project-file" type="file" accept=".json" hidden><input id="midi-file" type="file" accept=".mid,.midi" hidden><input id="audio-file" type="file" accept="audio/wav,audio/mpeg,audio/mp3,audio/ogg,audio/mp4" hidden>
<script id="afterhours-data" type="application/json">"PROJECT_DATA"</script><script>/* MIDI_LIBRARY */</script><script id="afterhours-model">/* SESSION_MODEL */</script><script>/* AUDIO_ENGINE */</script><script>/* FILE_TOOLS */</script><script>/* STUDIO_APP */</script></body></html>