It looks like you want to create or find an HTML-based chiptune tracker with features like:
- BPM control
- Patterns with rows per pattern
- Multiple instruments with synth parameters
- Custom oscillator waveforms per instrument
- Volume, detune, ADSR envelopes, filter, noise control per instrument
- Ability to share songs (e.g., via URL
/#[song-state])
- Keyboard shortcuts
- Looping functionality
- No demo restrictions
If you're seeking a ready-made solution:
As of now, many open-source or web-based chiptune trackers exist, but few have every feature combined exactly as listed. Here are possible solutions:
1. Open-Source HTML5 Chiptune Trackers / Synth Trackers
- Powerful NES/Famicom tracker and synthesizer.
- BPM, patterns, instruments with ADSR.
- Custom waveform on instruments limited to NES channels.
- Link sharing possible via project files.
- Not purely web in terms of sharing via URL fragments.
- No direct keyboard shortcuts for all functions, but some.
- Very popular online chiptune tracker.
- Adjustable BPM, patterns, rows.
- Synth with custom oscillators, volume, effect controls.
- EQ / filter / noise available.
- URL share via full song state encoding in URL
/#[song-data].
- Keyboard shortcuts for play, stop, pattern navigation.
- Loop support.
- No demo or usage restrictions.
BeepBox is closest to your specs.
2. Creating your own basic HTML5 chiptune tracker
If you want a custom simple tracker, here’s a minimal high-level outline for your own project:
Key tech components:
- WebAudio API for synth, oscillators, ADSR, noise generation.
- UI: Grid for patterns & rows editable.
- BPM control (tempo).
- Per instrument settings: oscillator type (sine, square, triangle, custom), volume, detune, ADSR envelope parameters, filters.
- Noise generator for percussion or noise channel.
- Keyboard shortcuts using
keydown listeners.
- Looping playback over pattern rows.
- Shareable URL via encoding song state to URI fragment (#).
Example minimal structure:
Summary
- BeepBox is an excellent existing HTML chiptune tracker matching your criteria.
- You can build a custom tracker using Web Audio API with the features you listed.
- Shareable URLs can serialize entire song data in the URL hash.
- Keyboard shortcuts and looping are implemented in both cases.
If you want, I can help write you a more complete example app or point you to further resources/tutorials! Just ask!
<!DOCTYPE html>
<html>
<head>
<title>Simple HTML5 Chiptune Tracker</title>
<style>
body { font-family: monospace; }
/* Basic styles for grid, buttons, etc */
</style>
</head>
<body>
<h1>Chiptune Tracker</h1>
BPM: <input type="number" id="bpm" value="120" min="30" max="300"><br>
<div id="patternGrid"></div>
<div>
<h3>Instrument Settings</h3>
<label>Oscillator:
<select id="oscType">
<option value="sine">Sine</option>
<option value="square">Square</option>
<option value="triangle">Triangle</option>
<option value="custom">Custom</option>
</select>
</label><br>
<label>Volume: <input type="range" id="volume" min="0" max="1" step="0.01" value="0.5"></label><br>
<label>Detune: <input type="range" id="detune" min="-100" max="100" value="0"></label><br>
<label>ADSR:
<br>Attack <input type="number" id="attack" value="0.01" step="0.01" min="0">
Decay <input type="number" id="decay" value="0.1" step="0.01" min="0">
Sustain <input type="number" id="sustain" value="0.7" step="0.01" min="0" max="1">
Release <input type="number" id="release" value="0.2" step="0.01" min="0">
</label><br>
<label>Filter cutoff: <input type="range" id="filterCutoff" min="500" max="10000" value="10000"></label><br>
<label>Noise Level: <input type="range" id="noiseLevel" min="0" max="1" step="0.01" value="0"></label><br>
</div>
<button id="playBtn">Play</button>
<button id="stopBtn">Stop</button>
<button id="shareBtn">Share URL</button>
<script>
// Basic Web Audio setup & tracker pattern logic here
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
// Pattern & song state
let bpm = 120;
let rowsPerPattern = 16;
// Simplified: single pattern, one instrument
// Example oscillator params
let oscType = 'square';
let volume = 0.5;
let detune = 0;
let adsr = {attack: 0.01, decay: 0.1, sustain: 0.7, release: 0.2};
let filterCutoff = 10000;
let noiseLevel = 0;
// Playback and scheduling...
// Keyboard shortcut example
window.addEventListener('keydown', (e) => {
if(e.key === ' ') {
e.preventDefault();
// Play/Stop toggle
}
// More shortcuts...
});
document.getElementById('bpm').addEventListener('change', e => {
bpm = parseInt(e.target.value);
// Update timer
});
document.getElementById('playBtn').onclick = () => {
// Start playback loop
};
document.getElementById('stopBtn').onclick = () => {
// Stop playback
};
document.getElementById('shareBtn').onclick = () => {
// Serialize song state to JSON, encode in base64 or uri component
// Add to location.hash or copy to clipboard
const songState = {
bpm, oscType, volume, detune, adsr, filterCutoff, noiseLevel
// plus pattern notes
};
const serialized = encodeURIComponent(JSON.stringify(songState));
navigator.clipboard.writeText(location.origin + location.pathname + '#/' + serialized);
alert('Song URL copied!');
};
</script>
</body>
</html>