chiptune sequencer adsr osc filter fm detune synth tracks count patterns range bpm share…
- User
chiptune sequencer adsr osc filter fm detune synth tracks count patterns range bpm share "/#" html
- Assistant
It sounds like you want to create or find a chiptune-style music sequencer with features such as:
- ADSR envelope control
- Oscillators (osc)
- Filters
- FM synthesis
- Detune
- Synth tracks
- Patterns with count and range
- Adjustable BPM (tempo)
- Sharing capabilities
- Possibly implemented or embeddable in HTML or as a web-based tool
How to approach building or using such a chiptune sequencer:
1. Existing Web-Based Chiptune Sequencers
Some existing projects come close to your requirements:
- JSFXR: Web version of sfxr for making chiptune sound effects.
- FamiStudio: An NES/Famicom tracker (desktop app).
- BeepBox: Online chiptune sequencer with synth tracks, patterns, tempo control, simple UI, allows sharing via URL, and exports.
- Deflemask: Multi-platform tracker for chiptune.
- WebAudio Modules + Tone.js: Libraries to build synths/sequencers with FM, ADSR, filters etc.
2. Core Components Explained:
- ADSR Envelope (Attack, Decay, Sustain, Release)
- Controls the amplitude envelope shaping how the note behaves over time.
- Oscillator (Osc)
- Generates waveforms: square, saw, triangle, noise (typical for chiptune).
- Filter
- Typically low-pass, high-pass, to shape tonal content.
- FM Synthesis
- Frequency modulated synthesis for complex timbres.
- Detune
- Slight offset of oscillator frequencies to thicken sound.
- Tracks & Patterns
- Multiple tracks (channels), broken down into repeating patterns.
- BPM
- Beats per minute, controls playback speed.
- Share
- Export JSON, URL sharing, or save/load pattern data.
3. Simple HTML/JS Starting Point with Tone.js
You can build a simple web sequencer with Tone.js that supports:
- Synth with ADSR
- Multiple oscillator types, detune
- Filters
- Scheduler for patterns
- BPM control
- Export/import JSON for sharing
Example minimal code snippet:
<!DOCTYPE html> <html> <head> <title>Simple Chiptune Synth</title> <script src="https://cdn.jsdelivr.net/npm/tone@14.7.77/build/Tone.min.js"></script> </head> <body> <h1>Chiptune Synth Sequencer</h1> <button id="start">Start</button> <button id="stop">Stop</button> <label>BPM: <input type="number" id="bpm" value="120" min="40" max="300"></label> <script> const synth = new Tone.Synth({ oscillator: { type: "square", detune: 0 }, envelope: { attack: 0.01, decay: 0.1, sustain: 0.3, release: 0.5 } }).toDestination(); const filter = new Tone.Filter(800, "lowpass").toDestination(); synth.connect(filter); const sequence = [ "C4", "D4", "E4", "G4", null, "G4", "E4", "D4" ]; let index = 0; let loop = null; function playNote() { const note = sequence[index]; if(note){ synth.triggerAttackRelease(note, "8n"); } index = (index + 1) % sequence.length; } document.getElementById("start").onclick = async () => { await Tone.start(); Tone.Transport.bpm.value = Number(document.getElementById("bpm").value); Tone.Transport.scheduleRepeat(playNote, "8n"); Tone.Transport.start(); }; document.getElementById("stop").onclick = () => { Tone.Transport.stop(); Tone.Transport.cancel(); index = 0; }; document.getElementById("bpm").addEventListener("change", (e) => { Tone.Transport.bpm.value = Number(e.target.value); }); </script> </body> </html>This example demonstrates:
- A single square wave synth with ADSR envelope
- Basic sequencing over 8 steps
- Start/Stop buttons
- Adjustable BPM
4. Extending This to Full Chiptune Sequencer
Features you’d want to add:
- Multiple synth tracks (polyphony)
- Multiple patterns with pattern order (song mode)
- FM synthesis setup (you can use
Tone.FMSynthinstead) - Detune amount control per oscillator
- Filter types and params adjustable per channel
- Export/import pattern JSON (for sharing or saving)
- UI grid for sequencing notes per pattern per track
- Optionally, download/export WAV or share as URL-encoded data
Summary / Recommendations:
-
If you want a ready-to-use something in-browser:
Try BeepBox (https://www.beepbox.co/) — it covers patterns, multiple tracks, synth parameters, BPM, and sharing via URL. -
If you want to build your own in HTML/JavaScript:
Use Tone.js as a powerful Web Audio API-based synth + sequencer foundation, expand the example above by adding UI controls and multiple tracks. -
For FM, filters, ADSR in synth:
Tone.js includes synth types supporting these controls, e.g.,Tone.FMSynthwith detailed envelope and oscillator settings. -
For sharing your creations:
Serialize pattern data and synth settings into JSON, encode into base64 or URL parameters for loading later.
If you want, I can help draft a more full-featured prototype or guide you on integrating a track pattern UI, or expand on these features — just ask!