It sounds like you're asking for or describing a web-based HTML chiptune tracker with these features:
- BPM control
- Patterns & rows per pattern
- Multiple instruments with synth per instrument
- Custom oscillators
- Volume, detune, ADSR envelope, filter, noise controls
- Ability to share songs
- Keyboard shortcuts (like duplicate, delete, loop)
- Using URL hash routing (e.g.,
/ and /#) to share or load songs
- No demo included (or maybe no autoplay demo)
If you want suggestions or a ready-made solution:
-
Jsnes / WebAudio Tracker / Web Chiptune Clients:
Several chiptune trackers exist online but might lack some features you want.
-
Look at projects like:
- BeepBox — It's a popular chiptune-style tracker with pattern editing, multiple instruments, custom waveforms, volume, detune, ADSR, filter, noise, BPM, pattern rows, sharing via URL, and keyboard shortcuts. It uses URL hash (
/#) to encode song data so you can share your tracks easily.
It is built in HTML/JS using WebAudio.
- BeepBox meets almost all your criteria.
-
If you want a minimal starting template for creating your own tracker:
Below is an outline for a minimal HTML + JS chiptune tracker skeleton that you can expand:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Simple Chiptune Tracker</title>
<style>
body { font-family: monospace; background: #222; color: #eee; }
.pattern { white-space: pre; font-size: 14px; margin: 1em 0; }
</style>
</head>
<body>
<h1>Simple Chiptune Tracker</h1>
<!-- Controls -->
<div>
BPM: <input type="number" id="bpm" value="120" min="30" max="300" />
Rows/Pattern: <input type="number" id="rows" value="16" min="4" max="64" />
</div>
<!-- Instruments -->
<div>
<h3>Instrument 1: Synth</h3>
Oscillator:
<select id="osc1">
<option value="square">Square</option>
<option value="sawtooth">Sawtooth</option>
<option value="triangle">Triangle</option>
<option value="custom">Custom (TODO)</option>
</select>
Volume: <input type="range" id="vol1" min="0" max="1" step="0.01" value="0.5" />
Detune: <input type="range" id="detune1" min="-100" max="100" value="0" />
<br />
ADSR:
A: <input type="range" id="attack1" min="0" max="1" step="0.01" value="0.1" />
D: <input type="range" id="decay1" min="0" max="1" step="0.01" value="0.1" />
S: <input type="range" id="sustain1" min="0" max="1" step="0.01" value="0.7" />
R: <input type="range" id="release1" min="0" max="1" step="0.01" value="0.2" />
</div>
<!-- Pattern Editor - simple demo textarea -->
<div>
<h3>Pattern 1</h3>
<textarea id="pattern1" rows="16" cols="32" placeholder="Enter notes (C4, E4, G4, etc)..."></textarea>
</div>
<button id="playBtn">Play</button>
<script>
const AudioCtx = window.AudioContext || window.webkitAudioContext;
const ctx = new AudioCtx();
let playing = false;
let currentTimeout;
function playNote(freq, duration, vol, detune) {
const osc = ctx.createOscillator();
const gain = ctx.createGain();
osc.type = document.getElementById("osc1").value;
osc.frequency.setValueAtTime(freq, ctx.currentTime);
osc.detune.setValueAtTime(detune, ctx.currentTime);
gain.gain.setValueAtTime(vol, ctx.currentTime);
osc.connect(gain);
gain.connect(ctx.destination);
osc.start();
osc.stop(ctx.currentTime + duration);
}
// Simple note frequency map
const notes = {
"C4": 261.63,
"D4": 293.66,
"E4": 329.63,
"F4": 349.23,
"G4": 392.00,
"A4": 440.00,
"B4": 493.88,
"": 0
};
document.getElementById('playBtn').addEventListener('click', () => {
if (playing) {
playing = false;
clearTimeout(currentTimeout);
return;
}
playing = true;
const bpm = parseInt(document.getElementById('bpm').value);
const patternText = document.getElementById('pattern1').value.toUpperCase().split("\n");
let row = 0;
function step() {
if (!playing || row >= patternText.length) {
playing = false;
return;
}
let note = patternText[row].trim();
if (notes[note]) {
playNote(notes[note], 60 / bpm, parseFloat(document.getElementById('vol1').value), parseInt(document.getElementById('detune1').value));
}
row++;
currentTimeout = setTimeout(step, (60 / bpm) * 1000);
}
step();
});
</script>
</body>
</html>
This is a very basic starting point:
- Enter note names per row, one note per line.
- Click Play, and it plays each note in sequence according to BPM.
- You can set oscillator type, volume, detune, and basic ADSR sliders (not hooked into sound shaping yet, just UI placeholders).
- You could extend this with patterns, multiple instruments, filters, noise, and pattern data saved in URL hashes for sharing.
If you want a tracker with no demo and full features out of the box, I recommend:
- BeepBox (public domain, no ads, runs fully in-browser, and provides sharing via URL hashes).
- You can disable auto-play demo by going to the site and clearing the URL to a blank song (empty state).
- It's open source if you want to self-host or modify: https://github.com/jimbo1qaz/beepbox
Summary:
- Your feature list is very close to BeepBox's functionality.
- If you want to build your own, start simple (as the code above), then iterate: add pattern matrix, multiple instruments, synth parameters, sound shaping with Web Audio API, URL hash serialization for sharing, and shortcuts.
- No demo can mean stripped-down initial state, or no autoplay. BeepBox can handle that too.
If you'd like help building out any specific feature or want me to generate a more advanced tracker code, just ask!