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 osc…

  1. User

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

  2. Assistant

    It sounds like you want to create or find an HTML-based chiptune tracker with specific features, and you want to share or build a song with the following attributes:

    • BPM control (tempo)
    • Patterns and rows per pattern
    • Synth per instrument with customizable oscillator (custom osc)
    • Volume, detune, ADSR (attack, decay, sustain, release) envelope control
    • Filter and noise capability
    • Ability to share songs via URL (something like "/#" in the URL for sharing)
    • Keyboard shortcuts to speed workflow
    • Looping patterns
    • Exclude or avoid demo sounds (so probably a clean interface without preloaded demos)

    Option 1: Use or adapt an existing HTML/JS chiptune tracker

    There are several web-based trackers that roughly cover these bases:

    • JummBox — Open source chiptune tracker with synth parameters, patterns, volume and ADSR envelopes.
    • Snafu Tracker — Web audio tracker with pattern editing.
    • WebAudioTracker — Classic, but not so modern.
    • [Deflemask, JSDrums (less granular for synth osc control)].

    Most modern trackers allow pattern editing with rows, instruments, tempo, and simple edit controls.


    Option 2: Build your own basic chiptune tracker in HTML/JS

    If you want a custom solution tailored exactly to your specs, you’d do roughly this:

    1. Base UI:
      • Pattern grid UI with rows and channels
      • Speed/BPM input and display
      • Instrument editor panels with synth controls:
        • Oscillator type selector (sine, square, saw, triangle, noise)
        • Volume slider
        • Detune slider or knob (cents)
        • ADSR sliders or knobs (attack, decay, sustain, release)
        • Filter controls (lowpass, highpass cutoff, resonance)
        • Noise toggles or noise volume
    2. Playback:
      • Use Web Audio API for synth playback per channel/instrument
      • Each row triggers notes and instrument parameters
      • Loop over patterns (repeat modes)
    3. Shortcuts:
      • Keyboard event listeners to navigate the pattern grid (arrow keys, note entry keys, etc)
    4. Share via URL:
      • Serialize the entire song data (pattern data, instrument settings, BPM, etc)
      • Encode as a Base64 JSON string or a compressed custom format
      • Append this string as URL hash fragment (/#song=...)
      • On page load, parse the URL, load the song and render it automatically

    This way users can save and share songs just by copying the URL.


    Example libraries/tools to use:

    • Tone.js — For synthesizing sound and ADSR envelopes
    • LZ-string — To compress the JSON song data string for URL sharing
    • Howler.js — Alternative audio library if preferred
    • Vanilla HTML5/CSS grid for UI

    Minimal Outline of Code Approach

    // Pseudocode for loading song from URL hash
    function loadSongFromURL() {
      const hash = window.location.hash;
      if (hash.startsWith("#song=")) {
        const compressedData = hash.substr(6);
        const jsonData = LZString.decompressFromEncodedURIComponent(compressedData);
        const song = JSON.parse(jsonData);
        loadSongData(song);
      }
    }
    
    function exportSongToURL() {
      const songData = gatherSongData();
      const jsonStr = JSON.stringify(songData);
      const compressed = LZString.compressToEncodedURIComponent(jsonStr);
      const shareURL = window.location.origin + window.location.pathname + "#song=" + compressed;
      return shareURL;
    }
    

    Summary

    • No single tracker may meet all your specs out of the box, but many can be customized or extended.
    • Otherwise, building your own using Web Audio API + Web UI + compression + sharing is feasible.
    • I can help point to full projects, demo code, or snippet examples if you want.
    • Would you like help finding a ready-to-use tracker, or help creating a minimal starter HTML chiptune tracker yourself?

    If you want, I can generate a starting HTML + JS example with an instrument editor and pattern playback using Tone.js and URL sharing! Just say the word.

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