html chiptune tracker bpm rows per tracks patterns rows per pattern synth per instrument…
- User
html chiptune tracker bpm rows per tracks patterns rows per pattern synth per instrument custom osc volume detune adsr filter noise share song shortcuts loop "/#" no demo
- Assistant
It looks like you want to create or find an HTML-based chiptune tracker with specific features:
- BPM control
- Rows per track
- Patterns and rows per pattern
- Synth settings per instrument
- Custom oscillators
- Volume, detune, ADSR, filter, noise controls
- Ability to share songs (via URL, maybe with hash
/#) - Keyboard shortcuts
- Looping playback
- No demo (perhaps minimal or no initial example song loaded)
What You’re Asking For
You want either:
- A chiptune tracker implemented in HTML/JS that includes all those features, or
- Suggestions of existing tools/projects that meet these criteria, or
- A concise feasible approach or starter snippet for such a tracker.
Existing Tools & Projects
Here are some well-known open-source web chiptune trackers that have many of these features:
-
BeepBox, https://www.beepbox.co/
- Web-based chiptune sequencer/tracker
- Adjustable BPM, patterns, rows, multiple instruments
- Synths with oscillators, ADSR, filter, noise, detune, volume
- Looping playback, keyboard shortcuts
- Songs can be shared via the URL hash
- No demo defaults to empty pattern
- Open-source and usable/extendable
-
FamiStudio, https://famistudio.org/ (not HTML but popular chiptune tracker)
-
JSTrack (various Github projects)
Recommendations
1. Use BeepBox
BeepBox satisfies almost every requirement:
- BPM adjustable
- Patterns and rows selection (length of patterns configurable)
- Rows per track → model with patterns and timeline
- Synth per instrument with custom oscillator selection
- Volume, detune, ADSR, filter, noise controls
- Keyboard shortcuts (flow similar to trackers)
- Loop support
- Song sharing via URL (hash after
/) - Starts empty if you want (clear the demo song)
No need to code all features from scratch.
2. If you want a minimal example or custom build
You can:
- Use Web Audio API + Canvas/HTML UI
- Create a grid for tracks × patterns × rows
- Control BPM and rows per pattern
- Per instrument, use OscillatorNodes with adjustable:
- waveform type (sine, square, triangle, sawtooth, custom periodic wave)
- volume via GainNode
- detune parameter
- ADSR envelopes with GainNode automation
- FilterNode for lowpass/hi-pass filter control
- Noise via buffer source or ScriptProcessorNode
- Store song data in JavaScript object or JSON
- Implement sharing via encoding the song state as URL hash (
window.location.hash) - Use keyboard events for shortcuts
- Loop playback via scheduling audio buffering (AudioContext scheduling)
3. Implementation hints for share via URL hash
- Serialize patterns and instruments parameters into a JSON string
- Compress base64 (optional)
- Append to URL after
/# - On load, parse hash and restore state
4. Simple starter code skeleton
<!DOCTYPE html> <html> <head><title>Minimal HTML Chiptune Tracker</title></head> <body> <h1>Minimal Chiptune Tracker</h1> <label for="bpm">BPM:</label> <input type="number" id="bpm" value="120" min="30" max="300" step="1"/> <button id="play">Play</button> <button id="stop">Stop</button> <script> const AudioContext = window.AudioContext || window.webkitAudioContext; const ctx = new AudioContext(); // Basic synth for demo class Synth { constructor() { this.osc = ctx.createOscillator(); this.gain = ctx.createGain(); this.osc.connect(this.gain); this.gain.connect(ctx.destination); this.osc.type = 'square'; this.osc.frequency.value = 440; this.gain.gain.value = 0; this.osc.start(); } play(frequency, duration) { const now = ctx.currentTime; this.osc.frequency.setValueAtTime(frequency, now); this.gain.gain.cancelScheduledValues(now); this.gain.gain.setValueAtTime(0, now); this.gain.gain.linearRampToValueAtTime(0.3, now + 0.01); this.gain.gain.linearRampToValueAtTime(0, now + duration); } } const synth = new Synth(); document.getElementById('play').addEventListener('click', () => { const bpm = Number(document.getElementById('bpm').value); const secondsPerBeat = 60 / bpm; // Play a basic sequence let time = ctx.currentTime; for(let i=0; i<8; i++) { setTimeout(() => { synth.play(440 * (1 + 0.1 * i), secondsPerBeat * 0.75); }, i * secondsPerBeat * 1000); } }); </script> </body> </html>This is just the base you can expand with:
- Pattern editor UI (grid)
- Multiple synths/instruments
- ADSR envelopes via GainNode automation curves
- Filter nodes
- Noise synth (white noise buffer)
- Detune by
oscillator.detune.value - URL hash state saving/loading
Summary
Feature BeepBox DIY HTML Example BPM control ✔ Supported ✔ You implement Rows per track ✔ Supported ✔ You implement (UI) Patterns rows/pattern ✔ Supported ✔ You implement Synth per instrument ✔ Supported ✔ You implement using Web Audio API Custom oscillator ✔ Supported ✔ Oscillator.customPeriodicWave or built-ins Volume/detune/ADSR/filter/noise ✔ Supported ✔ Implement with GainNode, BiquadFilterNode, noise buffer Share song ✔ URL hash share ✔ Implement with serialization to hash Keyboard shortcuts ✔ Supported ✔ Implement with JS event listeners Looping ✔ Supported ✔ You implement in playback loop Demo Optionally none You decide
If you want, I can help you build a small custom tracker or help integrate a part, just ask!
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 →
- gpt-4.1-mini-2025-04-14Compare side by side →