Stellix Beats: Free Online Beat Maker and Step Sequencer

Stellix Beats – Free Online Beat Maker & Step Sequencer | Coding Stellix

What is Stellix Beats?

Stellix Beats is a free beat maker that runs in your browser. You get a 16-step grid with four sounds: kick, snare, hi-hat and bass. Tap a square to switch a step on, press play, and the pattern loops. A live visualizer moves with the sound.

There are no audio files behind it. Every sound is generated in real time with the Web Audio API, which means the page loads fast and works without any download.

Features

  • 16-step sequencer with four tracks and a moving playhead
  • Tempo from 60 to 180 BPM
  • Swing control from 0 to 60 percent for a looser, more human groove
  • Bass key (C, D, E, F, G, A) and three bass sounds: saw, square and soft
  • Four ready patterns: Techno, Hip-Hop, House and Lo-fi, plus Random and Clear
  • Mute button on every track
  • Live frequency visualizer
  • Space bar to play and stop
  • Accurate timing, because notes are scheduled ahead on the audio clock instead of using simple timers

How to make your first beat

  1. Press a pattern name, such as Techno, to load a starting beat.
  2. Press the play button.
  3. Tap squares to add or remove hits while the loop plays.
  4. Move the tempo and swing sliders until it feels right.
  5. Mute one track at a time to hear what each part does.
  6. Press Random for new ideas, then keep the parts you like.

Beat basics for beginners

A normal beat is counted in groups of four steps. The kick usually lands on the first step of each group, and the snare lands on the second and fourth beat, which are steps 5 and 13 on this grid. The hi-hat fills in the space between. Start with that skeleton, then add small changes, because a few off-beat kicks or a skipped hat are what make a pattern sound alive.

How the sounds are made

The kick is a sine wave whose pitch drops quickly. The snare mixes a short burst of noise with a quick triangle tone. The hi-hat is only high-pass filtered noise with a very short fade. The bass is an oscillator through a low-pass filter whose cutoff closes as the note plays, which gives it the classic plucky sound.

Frequently asked questions

Is Stellix Beats free? Yes, it is free with no sign-up.

Why is there no sound at first? Browsers only allow audio after you tap something. Press the play button once and it will start.

Can I save my beat? Not in this version. Saving and exporting are planned for a future update.

Does it work on a phone? Yes. On a narrow screen the grid scrolls sideways.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Stellix Beats – Free Online Beat Maker & Step Sequencer | Coding Stellix</title>
<meta name="description" content="Stellix Beats is a free online beat maker by Coding Stellix. Build drum and bass patterns on a 16-step grid, set tempo and swing, and watch a live visualizer. No samples needed.">
<style>
:root{--bg:#0b0c14;--card:#141626;--line:#252a45;--ink:#eef0ff;--mute:#8d93b8;--cell:#1d2040;--k:#ff5d73;--s:#ffb84d;--h:#4dd4ff;--b:#9b7bff;color-scheme:dark;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI","Trebuchet MS",Arial,sans-serif;line-height:1.5}
.wrap{max-width:1000px;margin:auto;padding:30px 18px 44px}
.pill{display:inline-block;font-size:13px;font-weight:600;color:var(--h);border:1px solid var(--line);padding:4px 12px;border-radius:99px}
h1{margin:12px 0 4px;font-size:clamp(30px,6vw,48px);letter-spacing:-1px;line-height:1.1}
.lead{margin:0 0 20px;color:var(--mute);font-size:17px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}
canvas{display:block;width:100%;height:120px;border-radius:12px;background:#0d0f1d}
.bar{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;margin-top:14px}
.play{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:linear-gradient(135deg,var(--k),var(--s));color:#1a0a0a;font-size:22px;display:grid;place-items:center;flex:none}
.ctl{display:flex;flex-direction:column;gap:2px;min-width:120px;flex:1}
.ctl label{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.7px;text-transform:uppercase;color:var(--mute)}
.ctl label b{color:var(--ink)}
input[type=range]{width:100%;accent-color:var(--h)}
select{background:var(--cell);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 8px;font:inherit;font-size:14px}
.seq{overflow-x:auto}
.in{min-width:640px}
.row{display:grid;grid-template-columns:78px 1fr;gap:10px;align-items:center;margin-bottom:8px}
.row:last-child{margin-bottom:0}
.lab{font:inherit;font-size:13px;font-weight:600;text-align:left;border:1px solid var(--line);background:none;color:var(--ink);border-radius:9px;padding:8px 8px;cursor:pointer}
.lab::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--c);margin-right:7px}
.lab.mute{opacity:.4;text-decoration:line-through}
.cells{display:grid;grid-template-columns:repeat(16,1fr);gap:5px}
.c{aspect-ratio:1;min-height:34px;border-radius:8px;border:0;background:var(--cell);cursor:pointer;transition:transform .08s,box-shadow .08s}
.c:nth-child(8n+1),.c:nth-child(8n+2),.c:nth-child(8n+3),.c:nth-child(8n+4){background:#23274d}
.c.on{background:var(--c);box-shadow:0 0 14px -2px var(--c)}
.c.now{outline:2px solid #fff;outline-offset:1px;transform:scale(1.08)}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chips span{font-size:12px;letter-spacing:.7px;text-transform:uppercase;color:var(--mute);margin-right:4px}
.chips button{font:inherit;font-size:14px;color:var(--ink);background:none;border:1px solid var(--line);border-radius:99px;padding:6px 14px;cursor:pointer}
.chips button:hover{border-color:var(--h);color:var(--h)}
.tip{color:var(--mute);font-size:13px;margin:12px 0 0}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--h);outline-offset:2px}
</style>
</head>
<body>
<!-- Stellix Beats by Coding Stellix -->
<div class="wrap">
<span class="pill">Coding Stellix</span>
<h1>Stellix Beats</h1>
<p class="lead">Tap the squares, press play, and make your own beat. Every sound is created live in your browser.</p>

<section class="card" aria-label="Player">
<canvas id="viz" aria-hidden="true"></canvas>
<div class="bar">
<button class="play" id="play" aria-label="Play"></button>
<div class="ctl"><label>Tempo <b id="vb">110 BPM</b></label><input id="bpm" type="range" min="60" max="180" value="110"></div>
<div class="ctl"><label>Swing <b id="vs">0%</b></label><input id="sw" type="range" min="0" max="60" value="0"></div>
<div class="ctl"><label>Volume <b id="vv">80%</b></label><input id="vol" type="range" min="0" max="100" value="80"></div>
<div class="ctl"><label>Bass key</label><select id="root" aria-label="Bass key"><option value="0">C</option><option value="2">D</option><option value="4">E</option><option value="5">F</option><option value="7">G</option><option value="9">A</option></select></div>
<div class="ctl"><label>Bass sound</label><select id="wave" aria-label="Bass sound"><option value="sawtooth">Saw</option><option value="square">Square</option><option value="triangle">Soft</option></select></div>
</div>
</section>

<section class="card seq" aria-label="Step sequencer"><div class="in" id="grid"></div></section>

<section class="card"><div class="chips" id="pre"><span>Patterns</span></div>
<p class="tip">Tip: click a name on the left to mute a sound. Press the space bar to play or stop.</p></section>
</div>
<script>
var $=function(i){return document.getElementById(i)};
var TR=[{id:"k",n:"Kick",c:"#ff5d73"},{id:"s",n:"Snare",c:"#ffb84d"},{id:"h",n:"Hi-hat",c:"#4dd4ff"},{id:"b",n:"Bass",c:"#9b7bff"}];
var NOTES=[0,0,3,0,5,7,5,3,0,0,3,5,7,10,7,5];
var P={k:[],s:[],h:[],b:[]},mute={},cells={},ctx,master,an,nb,playing=false,step=0,next=0,q=[],timer=0,cur=-1;
function setP(o){TR.forEach(function(t){P[t.id]=o[t.id].split("").map(Number)});drawCells()}
var PRE={
Techno:{k:"1000100010001000",s:"0000100000001000",h:"1011101110111011",b:"1010101110101011",bpm:132,sw:0},
"Hip-Hop":{k:"1000000110100000",s:"0000100000001000",h:"1010101010101010",b:"1000000010000010",bpm:88,sw:25},
House:{k:"1000100010001000",s:"0000100000001000",h:"0010001000100010",b:"0110011001100110",bpm:124,sw:10},
"Lo-fi":{k:"1000000100100000",s:"0000100000001000",h:"1010101010101011",b:"1000000100000100",bpm:76,sw:40}};
function setCtl(b,s){$("bpm").value=b;$("sw").value=s;lab()}
Object.keys(PRE).forEach(function(n){var b=document.createElement("button");b.textContent=n;b.onclick=function(){setP(PRE[n]);setCtl(PRE[n].bpm,PRE[n].sw)};$("pre").appendChild(b)});
[["Random",function(){var pr={k:.25,s:.15,h:.5,b:.3},o={};TR.forEach(function(t){o[t.id]=Array.from({length:16},function(){return Math.random()<pr[t.id]?1:0}).join("")});o.k=o.k.replace(/^./,"1");setP(o)}],["Clear",function(){setP({k:"0".repeat(16),s:"0".repeat(16),h:"0".repeat(16),b:"0".repeat(16)})}]].forEach(function(a){var b=document.createElement("button");b.textContent=a[0];b.onclick=a[1];$("pre").appendChild(b)});
var g=$("grid");
TR.forEach(function(t){var r=document.createElement("div");r.className="row";r.style.setProperty("--c",t.c);
var l=document.createElement("button");l.className="lab";l.textContent=t.n;l.setAttribute("aria-label","Mute "+t.n);l.onclick=function(){mute[t.id]=!mute[t.id];l.className="lab"+(mute[t.id]?" mute":"")};
var c=document.createElement("div");c.className="cells";cells[t.id]=[];
for(var i=0;i<16;i++)(function(i){var b=document.createElement("button");b.className="c";b.setAttribute("aria-label",t.n+" step "+(i+1));b.onclick=function(){P[t.id][i]=P[t.id][i]?0:1;b.className=cls(t.id,i)};cells[t.id].push(b);c.appendChild(b)})(i);
r.appendChild(l);r.appendChild(c);g.appendChild(r)});
function cls(id,i){return "c"+(P[id][i]?" on":"")+(cur===i&&playing?" now":"")}
function drawCells(){TR.forEach(function(t){for(var i=0;i<16;i++)cells[t.id][i].className=cls(t.id,i)})}
function lab(){$("vb").textContent=$("bpm").value+" BPM";$("vs").textContent=$("sw").value+"%";$("vv").textContent=$("vol").value+"%";if(master)master.gain.value=$("vol").value/100*.8}
["bpm","sw","vol"].forEach(function(i){$(i).oninput=lab});
function init(){if(ctx)return;ctx=new (window.AudioContext||window.webkitAudioContext)();master=ctx.createGain();an=ctx.createAnalyser();an.fftSize=128;an.smoothingTimeConstant=.8;master.connect(an);an.connect(ctx.destination);
nb=ctx.createBuffer(1,ctx.sampleRate,ctx.sampleRate);var d=nb.getChannelData(0);for(var i=0;i<d.length;i++)d[i]=Math.random()*2-1;lab()}
function env(g,t,v,d){g.gain.setValueAtTime(v,t);g.gain.exponentialRampToValueAtTime(.001,t+d)}
function noise(t,d,hp,v){var s=ctx.createBufferSource();s.buffer=nb;var f=ctx.createBiquadFilter();f.type="highpass";f.frequency.value=hp;var g=ctx.createGain();env(g,t,v,d);s.connect(f);f.connect(g);g.connect(master);s.start(t);s.stop(t+d+.02)}
function tone(t,type,f0,f1,d,v){var o=ctx.createOscillator(),g=ctx.createGain();o.type=type;o.frequency.setValueAtTime(f0,t);if(f1)o.frequency.exponentialRampToValueAtTime(f1,t+d*.35);env(g,t,v,d);o.connect(g);g.connect(master);o.start(t);o.stop(t+d+.02)}
function bass(t,i,sd){var o=ctx.createOscillator(),f=ctx.createBiquadFilter(),g=ctx.createGain();o.type=$("wave").value;o.frequency.value=65.41*Math.pow(2,(+$("root").value+NOTES[i])/12);
f.type="lowpass";f.frequency.setValueAtTime(1400,t);f.frequency.exponentialRampToValueAtTime(250,t+sd*1.5);g.gain.setValueAtTime(.0001,t);g.gain.exponentialRampToValueAtTime(.5,t+.01);g.gain.exponentialRampToValueAtTime(.001,t+sd*1.7);
o.connect(f);f.connect(g);g.connect(master);o.start(t);o.stop(t+sd*1.8)}
function hit(i,t){var sd=60/$("bpm").value/4;
if(P.k[i]&&!mute.k)tone(t,"sine",160,40,.42,1);
if(P.s[i]&&!mute.s){noise(t,.2,1200,.6);tone(t,"triangle",190,120,.1,.45)}
if(P.h[i]&&!mute.h)noise(t,.05,7500,.35);
if(P.b[i]&&!mute.b)bass(t,i,sd)}
function sched(){while(next<ctx.currentTime+.12){hit(step,next);q.push({s:step,t:next});var sd=60/$("bpm").value/4,sw=$("sw").value/200;next+=sd*(step%2==0?1+sw:1-sw);step=(step+1)%16}}
function start(){init();ctx.resume();step=0;next=ctx.currentTime+.06;q=[];playing=true;timer=setInterval(sched,25);sched();icon()}
function stop(){playing=false;clearInterval(timer);q=[];cur=-1;drawCells();icon()}
function icon(){$("play").innerHTML=playing?'<svg width="22" height="22" viewBox="0 0 22 22"><rect x="4" y="3" width="5" height="16" rx="1.5" fill="currentColor"/><rect x="13" y="3" width="5" height="16" rx="1.5" fill="currentColor"/></svg>':'<svg width="22" height="22" viewBox="0 0 22 22"><path d="M6 3l13 8-13 8z" fill="currentColor"/></svg>';$("play").setAttribute("aria-label",playing?"Stop":"Play")}
$("play").onclick=function(){playing?stop():start()};
document.addEventListener("keydown",function(e){if(e.code=="Space"&&!/^(BUTTON|INPUT|SELECT)$/.test(e.target.tagName)){e.preventDefault();playing?stop():start()}});
var cv=$("viz"),cx=cv.getContext("2d"),data=new Uint8Array(64);
function size(){var r=window.devicePixelRatio||1;cv.width=cv.clientWidth*r;cv.height=cv.clientHeight*r}
window.addEventListener("resize",size);size();
function frame(){
if(playing){while(q.length&&q[0].t<=ctx.currentTime){var n=q.shift().s;if(n!==cur){cur=n;drawCells()}}}
var W=cv.width,H=cv.height;cx.clearRect(0,0,W,H);
if(an)an.getByteFrequencyData(data);else data.fill(0);
var n=48,bw=W/n,gr=cx.createLinearGradient(0,0,W,0);gr.addColorStop(0,"#ff5d73");gr.addColorStop(.35,"#ffb84d");gr.addColorStop(.65,"#4dd4ff");gr.addColorStop(1,"#9b7bff");cx.fillStyle=gr;
for(var i=0;i<n;i++){var v=data[i]/255,h=Math.max(3*(window.devicePixelRatio||1),v*H*.9);cx.beginPath();cx.roundRect(i*bw+bw*.15,(H-h)/2,bw*.7,h,bw*.3);cx.fill()}
requestAnimationFrame(frame)}
setP(PRE.Techno);setCtl(110,0);icon();frame();
</script>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *

SHARE:-

Trending Post

Latest Post