Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-mini-2025-04-14· OpenAIAi2 WildChat-4.8M (AI2)

html chiptune tracker bpm patterns rows per pattern synth per instrument custom waveform…

  1. User

    html chiptune tracker bpm patterns rows per pattern synth per instrument custom waveform osc volume detune adsr filter noise share song shortcuts dupe delete loop "/#" no demo

  2. Assistant

    It sounds like you want to build or find an HTML-based chiptune tracker with specific features, including:

    • BPM (Beats Per Minute) control
    • Patterns and rows per pattern
    • Multiple synths per instrument
    • Custom waveforms for oscillators
    • Volume, detune, ADSR (Attack, Decay, Sustain, Release) envelopes
    • Filters and noise generation
    • Ability to share songs (probably via URL hash /#!)
    • Keyboard shortcuts (e.g., duplicate, delete, loop)
    • No demo audio auto-playing on load

    What you want:

    An HTML/JS chiptune tracker app — either a lightweight open source project or a ready-to-use tool — that supports these features. Or guidance on how to build such a tracker.


    Existing Solutions to Consider

    1. Pattern or 8bitmidi trackers

    Some online chiptune trackers include:

    • BeepBox
      • Web-based chiptune tracker
      • Supports BPM, patterns, rows per pattern
      • Multiple instruments with synth and waveform selection
      • ADSR, filtering
      • Sharing via URL
      • Keyboard shortcuts for editing patterns
      • No forced demo auto-play
      • Open source: https://github.com/juhana/beepbox

    BeepBox is very close to what you described.


    2. FamiTracker online / JS versions

    Some FamiTracker-like tools exist in JS but may lack online share or some features.


    3. ES6 Chiptune tracker projects on GitHub

    Some small projects might provide a customizable base for you to extend:

    But usually missing UI or share.


    If You Want to Build One Yourself

    Main features to implement:

    • Pattern handling: store rows per pattern, sequences of patterns

    • BPM: affects timer or tick rate for playing notes

    • Synth/Instrument:

      Each instrument can have multiple synth layers. Each synth has:

      • Oscillator type — custom waveform support means you have to generate wave tables.
      • ADSR envelope controlling amplitude over time
      • Volume & detune controls
      • Optional filter (lowpass, highpass)
      • Noise synthesis (e.g., white noise oscillator)
    • UI:

      • Pattern editor grid for inputting notes
      • Controls to add/delete/duplicate patterns/rows
      • Keyboard shortcuts for editing
    • Sharing:

      • Encode song data as JSON or custom string in URL hash fragment (/#...)
      • On loading, parse hash to restore the song state
    • Playback:

      • Use Web Audio API for oscillators, ADSR, filter nodes, noise
      • Implement a scheduler to play notes at BPM speed, step through patterns
    • Extras:

      • Loop selection
      • Undo/redo (nice to have)
      • Disable autoplay demo sounds on load

    Libraries and APIs to use

    • Web Audio API is your main tool for synthesizing sound
    • For GUI: use HTML5 + CSS + JavaScript (or frameworks e.g. React or Vanilla JS)
    • Waveform customization can be done via PeriodicWave in Web Audio API

    Example code snippets

    Custom waveform example:

    const audioCtx = new AudioContext();
    
    const real = new Float32Array([0, 1, 0.5, 0.3]);
    const imag = new Float32Array(real.length);
    const wave = audioCtx.createPeriodicWave(real, imag);
    
    const osc = audioCtx.createOscillator();
    osc.setPeriodicWave(wave);
    osc.connect(audioCtx.destination);
    osc.start();
    

    Playback scheduler outline:

    let currentRow = 0;
    const rowsPerPattern = 32;
    const bpm = 120;
    const secondsPerBeat = 60 / bpm;
    const secondsPerRow = secondsPerBeat / 4; // assuming 4 rows per beat.
    
    function playStep() {
      // play notes for currentRow
      currentRow++;
      if(currentRow >= rowsPerPattern) currentRow = 0;
      setTimeout(playStep, secondsPerRow * 1000);
    }
    
    playStep();
    

    Summary & Recommendations

    • Use BeepBox if it matches your needs and can be embedded or extended.
    • If building from scratch, leverage Web Audio API oscillator + PeriodicWave for custom waveforms, build your own tracker UI, and use URL hash for sharing data.
    • Implement keyboard shortcuts with JavaScript event listeners (e.g., Ctrl+D to duplicate, Del to delete).
    • Store song data in a compressed JSON or string in the URL hash to enable sharing.

    If you'd like, I can help you build a minimal starter template or demo for such a tracker. Just say the word!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.