html chiptune tracker bpm patterns rows per pattern synth per instrument custom osc…
- User
html chiptune tracker bpm patterns rows per pattern synth per instrument custom osc volume detune adsr filter noise share song shortcuts dupe delete loop "/#" no demo
- Assistant
It sounds like you're looking for an HTML-based chiptune tracker with the following features or capabilities:
- BPM control
- Patterns and rows per pattern
- Multiple synths per instrument or custom oscillators
- Volume and detune controls
- ADSR envelope and filter
- Noise channel support
- Ability to share songs via URL (like
/something#patternor/something#id) - Keyboard shortcuts for common actions like duplicate (dupe), delete, loop
- No demo sound/autoplay on load
Here’s a breakdown of what you might want and some approaches or existing tools you could consider:
1. Existing HTML/JS Chiptune Trackers
-
BeepBox (https://www.beepbox.co/)
- Supports patterns & rows, multiple synths per instrument
- Has BPM, volume, detune, ADSR envelope, filter, and noise
- Allows sharing via URL (song saved in hash)
- Keyboard shortcuts for duplicate, delete, and looping support
- No autoplay demo sounds (it only plays when you interact)
- Great for 8-bit style chip music
-
JummBox (https://jummbus.github.io/jummbox/)
- More advanced tracker with support for sample and synth instruments
- Various controls including volume and ADSR
- Sharing tracks via URL hash is possible
- Keyboard shortcuts available
- No demo sounds on load
-
deflemask (not HTML but notable chiptune tracker)
- Desktop-based, so no HTML/JS
2. Building Your Own Minimal Chiptune Tracker
If you want a custom HTML/JS tracker that fulfills all your requirements, this is a possible feature set and tech choices outline:
-
UI Components:
- BPM input (number)
- Patterns list, each pattern with a grid of rows (like common trackers)
- Rows per pattern configurable (e.g., 16, 32, etc.)
- Instrument editor with synth selection or custom oscillator (sine, square, triangle, sawtooth)
- Controls:
- Volume (0-100)
- Detune (-50 to +50 cents)
- ADSR envelope editor (4 sliders for Attack, Decay, Sustain, Release)
- Filter cutoff & resonance controls
- Noise toggle/volume
-
Audio Engine:
- Use Web Audio API
- Oscillators for synths (custom oscillator types possible)
- Gain nodes for volume
- BiquadFilterNode for filters
- ADSR applied via gain automation
- Noise generated via buffer source or script processor node
-
Pattern and Song Structure:
- Data structure holding patterns, order, instruments
- Playhead controlled by BPM
- Playback loop on/off
-
Sharing:
- Serialize song data into JSON, compress if needed
- Encode in URL hash (using
encodeURIComponentor base64) - Decode on load to restore song
-
Keyboard shortcuts:
- For example:
- Ctrl+D for duplicate pattern or selection
- Delete key to remove note/pattern
- Space to toggle loop/play
- For example:
-
"No demo" sound:
- Don’t play sound or auto-start playback on page load
- Wait for user interaction (click/start button)
3. Simple Example: Starting Point Snippet
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Minimal Chiptune Tracker</title> <style> body { font-family: monospace; background: #222; color: #eee; } input, select { margin: 4px; } .pattern { margin-top: 10px; } .row { display: flex; } .cell { width: 30px; text-align:center; border: 1px solid #555; margin: 1px; cursor: pointer; } .cell.active { background: #0c0; } </style> </head> <body> <h1>Chiptune Tracker Demo</h1> <label>BPM: <input type="number" id="bpm" value="120" min="30" max="300"></label> <label>Rows Per Pattern: <input type="number" id="rows" value="16" min="4" max="64"></label> <button id="playBtn">Play</button> <button id="stopBtn">Stop</button> <div id="pattern" class="pattern"></div> <script> const bpmInput = document.getElementById('bpm'); const rowsInput = document.getElementById('rows'); const patternDiv = document.getElementById('pattern'); const playBtn = document.getElementById('playBtn'); const stopBtn = document.getElementById('stopBtn'); let patternData = []; let currentRow = 0; const rowsPerPattern = parseInt(rowsInput.value, 10); function createPattern(rows) { patternData = new Array(rows).fill(null).map(() => null); patternDiv.innerHTML = ''; for(let i=0; i<rows; i++){ const rowDiv = document.createElement('div'); rowDiv.className = 'row'; const cell = document.createElement('div'); cell.className = 'cell'; cell.textContent = '-'; cell.onclick = () => { if(cell.textContent === '-') cell.textContent = 'C-4'; else cell.textContent = '-'; patternData[i] = cell.textContent; } rowDiv.appendChild(cell); patternDiv.appendChild(rowDiv); } } createPattern(rowsPerPattern); rowsInput.addEventListener('change', () => { createPattern(parseInt(rowsInput.value, 10)); }); // Audio context and play logic simplified for demo let audioCtx = null; let interval = null; function playNote(note) { if(!note || note === '-') return; const noteFreqs = { 'C-4': 261.63, 'D-4': 293.66, 'E-4': 329.63, 'F-4': 349.23, 'G-4': 392.00, 'A-4': 440.00, 'B-4': 493.88 }; const freq = noteFreqs[note]; if(!freq) return; const osc = audioCtx.createOscillator(); osc.type = 'square'; osc.frequency.setValueAtTime(freq, audioCtx.currentTime); const gainNode = audioCtx.createGain(); gainNode.gain.setValueAtTime(0.1, audioCtx.currentTime); osc.connect(gainNode); gainNode.connect(audioCtx.destination); osc.start(); osc.stop(audioCtx.currentTime + 0.2); } playBtn.onclick = () => { if(!audioCtx) audioCtx = new (window.AudioContext || window.webkitAudioContext)(); let index = 0; const msPerRow = (60000 / parseInt(bpmInput.value, 10)) / 4; interval = setInterval(() => { playNote(patternData[index]); index++; if(index >= patternData.length) index=0; }, msPerRow); }; stopBtn.onclick = () => { clearInterval(interval); }; </script> </body> </html>This is a very minimal starting point to demonstrate:
- Editable pattern rows
- Play notes from a simple pattern
- BPM control (rough)
- Square wave synth per note
You can extend this by adding detune, volume sliders, ADSR envelopes, filters, noise channel, and so on using WebAudio API.
Summary
If you want a ready-to-use solution BeepBox is your best bet.
If you want a custom solution, the above minimal demo and outline should help you build your own with modern web audio capabilities.
Let me know if you want help coding a full featured tracker or specific features!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →
- gpt-4.1-mini-2025-04-14Compare side by side →