It sounds like you're looking for or describing a HTML-based chiptune tracker with specific features:
- BPM (tempo control)
- Rows per track
- Patterns with rows per pattern
- Synth settings per instrument (custom oscillator)
- Volume, detune, ADSR envelope, filter, noise controls
- Ability to share songs (e.g., via URL or code snippet)
- Keyboard shortcuts
- Chord support
- Looping capabilities
- Possibly some notation with "/#" syntax or similar for sharps or slide notes
- No demo mode (or you want a version without demo/demo restrictions)
Do you want:
-
An existing chiptune tracker fitting this description?
-
A lightweight minimal chiptune tracker example in pure HTML/JS matching these features?
-
Help to customize or build one yourself?
If you want an existing solution:
There are several popular online chiptune trackers, some featuring custom oscillators and detailed editing:
- Jummbox (https://jummbus.com) — Advanced tracker but maybe overkill.
- FamiTracker — Classic famicom tracker, Windows native.
- BeepBox (https://www.beepbox.co/) — Opensource, web-based chiptune with pattern editing, instruments, ADSR, noise, filters, BPM control, shareable links, keyboard shortcuts.
BeepBox is probably your best fit for web:
- It supports BPM.
- Rows per pattern adjustable.
- Instruments with multiple oscillators.
- Volume, detune, ADSR.
- Pattern chaining for loops.
- Keyboard shortcuts.
- Sharing via URL.
- No demo limitations.
Quick overview of BeepBox features:
- BPM: adjustable.
- Patterns & tracks with rows per pattern.
- Synth per instrument with custom oscillator waveforms.
- Volume and pitch envelopes with ADSR.
- Filtering and noise.
- Share permalink that stores full song.
- Keyboard shortcuts (space, arrows, etc.).
- Loop patterns.
- Supports chord input.
Link: https://www.beepbox.co/
If you want a minimal example or building help:
Creating a full chiptune tracker is fairly complex but you can use:
- Web Audio API for oscillator and sound synthesis.
- Canvas or HTML5 tables for pattern display.
- Use integers for BPM and rows per pattern.
- Support envelopes with timed gain nodes.
- Simple filter nodes.
- Volume/detune per voice.
- Keyboard shortcuts using
keydown listeners.
- Share songs via URL-encoded data (JSON compressed).
- Looping by playing pattern sequences repeatedly.
Example minimal starting HTML skeleton (conceptual):
<!DOCTYPE html>
<html>
<head>
<title>Mini Chiptune Tracker</title>
</head>
<body>
<h1>Mini Chiptune Tracker</h1>
<div>
BPM: <input type="number" id="bpm" value="120" min="30" max="300">
Rows per Pattern: <input type="number" id="rowsPerPattern" value="16" min="4" max="64">
</div>
<div id="patterns"></div>
<button id="play">Play</button>
<button id="share">Share Song</button>
<script>
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
let bpm = 120;
let rowsPerPattern = 16;
let isPlaying = false;
let currentRow = 0;
// Simple oscillator with ADSR envelope example
function playNote(freq, duration = 0.3) {
let osc = audioCtx.createOscillator();
let gainNode = audioCtx.createGain();
osc.type = 'square'; // Custom oscillator waveforms possible
osc.frequency.setValueAtTime(freq, audioCtx.currentTime);
gainNode.gain.setValueAtTime(0, audioCtx.currentTime);
gainNode.gain.linearRampToValueAtTime(0.3, audioCtx.currentTime + 0.01); // Attack
gainNode.gain.exponentialRampToValueAtTime(0.0001, audioCtx.currentTime + duration); // Decay/Sustain
osc.connect(gainNode).connect(audioCtx.destination);
osc.start();
osc.stop(audioCtx.currentTime + duration);
}
document.getElementById('play').onclick = () => {
if(isPlaying) {
isPlaying = false;
return;
}
isPlaying = true;
bpm = Number(document.getElementById('bpm').value);
rowsPerPattern = Number(document.getElementById('rowsPerPattern').value);
let interval = (60 / bpm) / 4 * 1000; // assuming 4 rows per beat
currentRow = 0;
let playInterval = setInterval(() => {
if(!isPlaying) {
clearInterval(playInterval);
return;
}
// Play something simple per row:
let freq = 440; // A4 note
playNote(freq, interval/1000 * 0.9);
currentRow++;
if(currentRow >= rowsPerPattern) {
currentRow = 0; // loop
}
}, interval);
}
// Add sharing functionality to encode song data to URL here
</script>
</body>
</html>
This is a minimal starting example, real trackers are way more advanced.
If you clarify more about your exact need (tool suggestion, code snippet, custom build, or feature explanation) I can help further!