You seem to be describing a web-based chiptune tracker with specific features, or requesting guidance/resources on creating one with features like:
- BPM (tempo)
- Multiple patterns with rows per pattern
- Synth per instrument with custom waveform oscillators
- Volume, detune, ADSR envelope, filters, noise
- Song sharing via URL
/# (hash-based)
- User interface shortcuts: duplicate, delete, loop
- No audio demo embedded (perhaps to avoid autoplay or bandwidth)
If you want an existing HTML/JS chiptune tracker with these features:
Here are some existing open-source or well-known web trackers you could try or study:
- FamiTracker (desktop) - popular but not web-based
- BeepBox (https://www.beepbox.co/)
- Web-based chiptune/sequencer with pattern and channel editing
- Supports custom waveforms, ADSR, filter, volume, pitch
- Share songs via URL hash
- Keyboard shortcuts for editing commands
- No built-in noise/noise channel but has square/saw/pulse/sub oscillators
- JsSidPlay2 (SID player with editor) — less tracker focused
- Websidplay2 Editor
- 8Bit Warping or Pixelbeat (older, less full-featured)
BeepBox is the closest match for an advanced browser-based chiptune tracker with many features you mention.
If you want to build your own minimal HTML/JS chiptune tracker with these features, here is a basic outline:
const bpm = 120;
const rowsPerPattern = 32;
const patterns = [
// Each pattern = array of rows
// Each row = array of notes per instrument
];
const instruments = [
{
synth: 'custom',
waveform: 'square', // or array describing waveform
volume: 0.8,
detune: 0,
adsr: { attack: 0.01, decay: 0.1, sustain: 0.7, release: 0.2 },
filter: { type: 'lowpass', frequency: 1000, Q: 1 },
noise: false
}
];
Use Web Audio API:
-
For each instrument create an OscillatorNode with the selected waveform or a custom periodicWave.
-
Apply GainNode for volume and envelope (ADSR).
-
Use BiquadFilterNode for filtering.
-
Use a Noise buffer + buffer source for noise channel.
-
Use detune parameter on oscillator for detuning.
-
Pattern playback:
Schedule note start times based on BPM and rowsPerPattern.
Use HTML elements and keyboard shortcuts for selecting notes, duplicating rows, deleting, looping patterns.
Serialize the song state (patterns, instruments, etc) to JSON, compress/encode it (e.g., base64 or URISafe), then place it after the URL hash /# to share.
On load, parse window location hash to load song.
Example minimal example of sharing song via URL hash:
function exportSong(songData) {
const json = JSON.stringify(songData);
const base64 = btoa(encodeURIComponent(json));
window.location.hash = base64;
}
function importSong() {
const hash = window.location.hash.substr(1);
if(!hash) return null;
const json = decodeURIComponent(atob(hash));
return JSON.parse(json);
}
Summary:
- Existing tracker like BeepBox fits many features you mention.
- Custom build requires Web Audio API knowledge — oscillators, envelopes, filters.
- Serialize song state in URL hash for sharing.
- Add keyboard shortcuts to manipulate patterns/instruments.
- Noise implemented via white noise buffer.
- No embedded sound demo needed, user triggers playback.
If you want, I can help you write a minimal example code snippet or explain any part in detail — just ask!