Spaces:
Running
Running
Download index.html from solid-audio/listen-to-the-stems: direct link, hf CLI and curl.
- Browser
- Download file 10.7 kB
-
https://huggingface.co/spaces/solid-audio/listen-to-the-stems/resolve/main/index.html
- Command line
-
hf download hf://spaces/solid-audio/listen-to-the-stems/index.html
-
curl -L -o index.html https://huggingface.co/spaces/solid-audio/listen-to-the-stems/resolve/main/index.html
10.7 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>SOLID — Listen to the stems</title> | |
| <style> | |
| :root{ | |
| --bg:#0e0f14; --panel:#171922; --panel2:#1e2130; --line:#2a2e40; | |
| --text:#ecebf3; --muted:#9a9cb0; --accent:#8b5cf6; --accent2:#c4b5fd; | |
| } | |
| *{box-sizing:border-box} | |
| body{margin:0;background:var(--bg);color:var(--text); | |
| font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif} | |
| a{color:var(--accent2)} | |
| .wrap{max-width:920px;margin:0 auto;padding:40px 20px 64px} | |
| header .brand{font-weight:800;letter-spacing:.32em;font-size:15px;color:var(--accent2)} | |
| h1{font-size:34px;line-height:1.15;margin:14px 0 12px;font-weight:700} | |
| .lead{color:var(--muted);font-size:17px;max-width:720px;margin:0} | |
| .facts{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 6px} | |
| .facts span{border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:13px;color:var(--muted)} | |
| .how{margin:26px 0 30px;padding:14px 18px;border-left:3px solid var(--accent);background:var(--panel); | |
| border-radius:0 10px 10px 0;color:var(--muted);font-size:14.5px} | |
| .piece{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px 22px 18px;margin:18px 0} | |
| .piece .top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap} | |
| .composer{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent2);font-weight:600} | |
| .title{font-size:19px;font-weight:600;margin:4px 0 2px} | |
| .meta{font-size:13.5px;color:var(--muted)} | |
| .play{flex:none;width:52px;height:52px;border-radius:50%;border:0;background:var(--accent);color:#fff; | |
| font-size:20px;cursor:pointer;display:grid;place-items:center} | |
| .play:disabled{opacity:.6;cursor:wait} | |
| .bar{height:4px;background:var(--line);border-radius:4px;margin:18px 0 14px;overflow:hidden;cursor:pointer} | |
| .bar i{display:block;height:100%;width:0;background:var(--accent)} | |
| .chips{display:flex;flex-wrap:wrap;gap:8px} | |
| .chip{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:10px; | |
| padding:8px 13px;font-size:14px;cursor:pointer;user-select:none;transition:.12s} | |
| .chip.on{border-color:var(--accent);background:rgba(139,92,246,.18)} | |
| .chip.off{color:var(--muted);text-decoration:line-through;opacity:.7} | |
| .chip.mix{margin-left:auto} | |
| .chip.mix.on{background:var(--accent);color:#fff} | |
| .hint{font-size:12.5px;color:var(--muted);margin-top:10px} | |
| footer{margin-top:40px;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:14.5px} | |
| .cta{display:inline-block;margin:6px 10px 0 0;padding:10px 16px;border-radius:10px;background:var(--accent); | |
| color:#fff;text-decoration:none;font-weight:600} | |
| .cta.ghost{background:transparent;border:1px solid var(--line);color:var(--text)} | |
| </style> | |
| </head> | |
| <body> | |
| <div class="wrap"> | |
| <header> | |
| <div class="brand">SOLID</div> | |
| <h1>Real orchestral recordings, one instrument at a time</h1> | |
| <p class="lead">One dry stem per instrument or string desk, no bleed between microphones, every note aligned to the score and all rights cleared for commercial use. <a href="https://huggingface.co/datasets/solid-audio/orchestral-stems-score-aligned" target="_blank">Download the full evaluation set</a>, free for evaluation and research.</p> | |
| <div class="facts"> | |
| <span>Real acoustic instruments</span><span>Dry stems + separate reverbs</span> | |
| <span>Note-level alignment to the score</span><span>Rights cleared</span><span>WAV 48 kHz / 24 bit</span> | |
| </div> | |
| </header> | |
| <div class="how">Press play, then click an instrument to mute or unmute it. Everything stays in sync, so you can hear each player alone or rebuild the ensemble. <b>Studio mix</b> plays the mixed version with reverb. Excerpts are 20 seconds, compressed to MP3 for this page; the dataset itself is uncompressed WAV.</div> | |
| <div id="pieces"></div> | |
| <footer> | |
| <p>These excerpts come from the SOLID evaluation set: five pieces with dry stems, separate reverbs, stereo masters, MusicXML, performance MIDI and a JSON manifest with note-level alignment to the audio. Access is free for evaluation and research.</p> | |
| <a class="cta" href="https://huggingface.co/datasets/solid-audio/orchestral-stems-score-aligned" target="_blank">Get the evaluation set</a> | |
| <a class="cta ghost" href="https://solid-data.nl" target="_blank">solid-data.nl</a> | |
| <p style="margin-top:18px">Licensing, larger sets and recording on demand: <a href="mailto:contact@solid-data.nl">contact@solid-data.nl</a></p> | |
| </footer> | |
| </div> | |
| <script> | |
| const PIECES = [ | |
| {composer:"Johann Sebastian Bach", title:"Orchestral Suite No. 3 in D major, II. Air", cat:"BWV 1068", | |
| inst:"Solo violin and string orchestra, recorded desk by desk", | |
| stems:[["Solo violin","POP0015_vl_strings_Solo_Violin.mp3"],["Violins I","POP0015_vl_strings_Violin_1.mp3"], | |
| ["Violins II","POP0015_vl_strings_Violin_2.mp3"],["Violas","POP0015_vl_strings_Viola.mp3"], | |
| ["Cellos & basses","POP0015_vl_strings_Cello_Bass.mp3"]], mix:"POP0015_vl_strings_mix.mp3"}, | |
| {composer:"Ludwig van Beethoven", title:"Piano Trio No. 1 in E-flat major, I. Allegro", cat:"op. 1, No. 1", | |
| inst:"Violin, cello and piano", | |
| stems:[["Violin","POP0357_1_Violin.mp3"],["Cello","POP0357_1_Cello.mp3"],["Piano","POP0357_1_Piano.mp3"]], | |
| mix:"POP0357_1_mix.mp3"}, | |
| {composer:"Wolfgang Amadeus Mozart", title:"Duo No. 6 in B-flat major, Menuetto (Twelve Duos for Two Horns)", cat:"K. 487 (496a), No. 6", | |
| inst:"Two French horns", | |
| stems:[["Horn 1","POP0042_6_Horn_1.mp3"],["Horn 2","POP0042_6_Horn_2.mp3"]], mix:"POP0042_6_mix.mp3"}, | |
| {composer:"Claude Debussy", title:"Prélude à l'après-midi d'un faune (two-piano version)", cat:"L. 86", | |
| inst:"Two pianos", | |
| stems:[["Piano 1","POP0428_Piano_1.mp3"],["Piano 2","POP0428_Piano_2.mp3"]], mix:"POP0428_mix.mp3"}, | |
| {composer:"Johann Sebastian Bach", title:"Prelude No. 1 in C major (The Well-Tempered Clavier, Book II)", cat:"BWV 870", | |
| inst:"Piano, left and right hand recorded separately", | |
| stems:[["Left hand","POP0001_LH.mp3"],["Right hand","POP0001_RH.mp3"]], mix:"POP0001_mix.mp3"} | |
| ]; | |
| let ctx = null, current = null; | |
| const box = document.getElementById('pieces'); | |
| PIECES.forEach((p, idx) => { | |
| const el = document.createElement('div'); | |
| el.className = 'piece'; | |
| el.innerHTML = ` | |
| <div class="top"> | |
| <div> | |
| <div class="composer">${p.composer}</div> | |
| <div class="title">${p.title}</div> | |
| <div class="meta">${p.cat} · ${p.inst}</div> | |
| </div> | |
| <button class="play" aria-label="Play">▶</button> | |
| </div> | |
| <div class="bar"><i></i></div> | |
| <div class="chips"> | |
| ${p.stems.map((s,i)=>`<span class="chip on" data-i="${i}">${s[0]}</span>`).join('')} | |
| <span class="chip mix" data-mix="1">Studio mix</span> | |
| </div> | |
| <div class="hint">Dry stems: each instrument exactly as it was recorded, without reverb. In the dataset, the reverb of each stem is delivered separately, as its own file, so you can add it back or leave it out. The studio mix includes this reverb, which blends the instruments together: that is why it sounds slightly fuller than the dry stems played together.</div>`; | |
| box.appendChild(el); | |
| const st = {p, el, buffers:null, sources:[], gains:[], mixGain:null, on:p.stems.map(()=>true), | |
| mix:false, playing:false, offset:0, startedAt:0, dur:20, raf:null}; | |
| const btn = el.querySelector('.play'), bar = el.querySelector('.bar'), fill = bar.querySelector('i'); | |
| async function load(){ | |
| if (st.buffers) return; | |
| btn.disabled = true; btn.textContent = '…'; | |
| const files = p.stems.map(s=>s[1]).concat([p.mix]); | |
| st.buffers = await Promise.all(files.map(f => | |
| fetch(f).then(r=>r.arrayBuffer()).then(b=>ctx.decodeAudioData(b)))); | |
| st.dur = Math.min(...st.buffers.map(b=>b.duration)); | |
| btn.disabled = false; | |
| } | |
| function level(i){ return st.mix ? 0 : (st.on[i] ? 1 : 0); } | |
| function applyGains(){ | |
| if (!st.gains.length) return; | |
| const t = ctx.currentTime; | |
| st.gains.forEach((g,i)=>g.gain.setTargetAtTime(level(i), t, 0.02)); | |
| st.mixGain.gain.setTargetAtTime(st.mix ? 1 : 0, t, 0.02); | |
| } | |
| function stop(keep){ | |
| st.sources.forEach(s=>{try{s.stop()}catch(e){}}); | |
| st.sources=[]; st.gains=[]; st.mixGain=null; | |
| if (keep) st.offset += ctx.currentTime - st.startedAt; else st.offset = 0; | |
| st.playing=false; btn.textContent='▶'; cancelAnimationFrame(st.raf); | |
| if (!keep) fill.style.width='0'; | |
| } | |
| function start(){ | |
| if (current && current!==st) current.stopExt(); | |
| current = st; | |
| const t = ctx.currentTime + 0.05; | |
| st.buffers.forEach((b,i)=>{ | |
| const src = ctx.createBufferSource(); src.buffer = b; | |
| const g = ctx.createGain(); | |
| const isMix = i === st.buffers.length-1; | |
| g.gain.value = isMix ? (st.mix?1:0) : level(i); | |
| src.connect(g).connect(ctx.destination); | |
| src.start(t, st.offset); | |
| st.sources.push(src); | |
| if (isMix) st.mixGain = g; else st.gains.push(g); | |
| }); | |
| st.startedAt = t; st.playing = true; btn.textContent = '❚❚'; | |
| const tick = () => { | |
| const pos = st.offset + Math.max(0, ctx.currentTime - st.startedAt); | |
| fill.style.width = Math.min(100, pos/st.dur*100) + '%'; | |
| if (pos >= st.dur) { stop(false); return; } | |
| st.raf = requestAnimationFrame(tick); | |
| }; | |
| tick(); | |
| } | |
| st.stopExt = () => stop(true); | |
| btn.addEventListener('click', async () => { | |
| if (!ctx) ctx = new (window.AudioContext||window.webkitAudioContext)(); | |
| if (ctx.state === 'suspended') await ctx.resume(); | |
| await load(); | |
| if (st.playing) stop(true); else start(); | |
| }); | |
| bar.addEventListener('click', e => { | |
| if (!st.buffers) return; | |
| const r = bar.getBoundingClientRect(); | |
| const pos = (e.clientX - r.left) / r.width * st.dur; | |
| const was = st.playing; if (was) stop(true); | |
| st.offset = Math.max(0, Math.min(st.dur-0.1, pos)); | |
| fill.style.width = (st.offset/st.dur*100)+'%'; | |
| if (was) start(); | |
| }); | |
| el.querySelectorAll('.chip').forEach(c => c.addEventListener('click', () => { | |
| if (c.dataset.mix) { st.mix = !st.mix; } | |
| else { const i = +c.dataset.i; if (st.mix) st.mix = false; st.on[i] = !st.on[i]; | |
| if (!st.on.some(Boolean)) st.on = st.on.map(()=>true); } | |
| el.querySelectorAll('.chip[data-i]').forEach(x=>{ | |
| const i=+x.dataset.i; x.classList.toggle('on', !st.mix && st.on[i]); x.classList.toggle('off', st.mix || !st.on[i]); }); | |
| el.querySelector('.chip.mix').classList.toggle('on', st.mix); | |
| applyGains(); | |
| })); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |