orDrumbox drum machine logo

OrDrumbox v2 User Manual

Table of Contents

  1. Getting Started
  2. Toolbar
  3. Pattern Panel
  4. Track Editor
  5. Note Editor
  6. Tools Panel
  7. Output Panel
  8. Synth Editor
  9. Keyboard Shortcuts
  10. Audio Signal Flow
  11. Installation & Offline Use

1. Getting Started

OrDrumbox v2 is a browser-based drum machine and pattern sequencer. When you open the application, you see:

Basic Workflow

  1. Select a Pattern from the Pattern dropdown
  2. Click Start to begin playback
  3. Click on the grid to add/remove notes
  4. Click a track name to open the Track Editor
  5. Click a note cell to open the Note Editor
  6. Use Auto Gen to enable automatic pattern regeneration (toggle)

2. Toolbar

The toolbar is the fixed control bar at the top of the screen.

Controls

Button / Control Description
Start / StopToggles playback. Red background when running.
BPMClick to open the tempo slider (range: 20–250 BPM).
PatternDropdown to switch between patterns.
KitDropdown to switch drumkits (samples load on first use).
Auto GenToggle button. When active (green), the pattern is automatically regenerated on section boundaries using genre-based song structure. Click again to disable.
ClearRemoves all notes from the current pattern (asks for confirmation).
ToolsOpens the Tools panel (export/import, pattern name).
OutputOpens the Output panel (master mixer, spectrum analyzer).

3. Pattern Panel

The Pattern Panel displays all tracks as horizontal step grids below the toolbar.

Display

Cell Colors

Appearance Meaning
Dark cellEmpty step
Red cell (varying opacity)Note present — opacity proportional to velocity
White outlineSelected note or track
Left borderStart of a beat
Right white borderLoop point
Pitch indicator (small bar inside cell)Shows pitch offset direction
Semi-transparent red (with number)Note with trigger frequency > 1
Orange (with number)Note with probability < 1
Blue rectangle (half-height, semi-transparent)Retrigger sub-hit
Yellow rectangle (half-height, semi-transparent)Euclidean fill sub-hit

Interactions

Action Result
Click empty cellCreates a note and opens Note Editor
Click a noteSelects it and opens Note Editor
Click a selected noteDeletes it
Click track nameOpens Track Editor for that track

4. Track Editor

The Track Editor opens when you click a track name. It contains all track-level parameters organized in groups.

Basic / Transport

Control Range Default Description
MuteoffMutes the entire track
Monoon/offoffForces monophonic playback
Autoon/offoffWhen enabled, this track is automatically regenerated at each loop boundary using the pattern generator
Variation0–100%0Automatic beat randomization intensity. Each loop iteration gets a fresh budget of operations (100% = 16 pts). Operations are applied greedily until the budget is exhausted.

Variation

The Variation slider (0–100%) controls the intensity of automatic beat randomization applied on each loop iteration. At 0%, the pattern plays as-is. As you increase the value, the sequencer randomly adds anticipation notes, doubles, ghost notes, silences, and tweaks velocity or pitch — making the beat evolve over time without manual editing. Each loop gets a fresh set of variations, so the pattern never repeats exactly the same way.

Levels / Pitch

Control Range Default Description
Velo0–11.0Track volume multiplier
Pan-1 to 10Stereo panning (left/right)
Pitch-24 to 240Pitch offset in semitones
Decay0–2 s0.5Sample decay time (exponential fade-out from peak to silence)

All four parameters support LFO modulation (click the row to open LFO settings).

Filters

Control Range Default Description
Typelowpass, highpass, bandpass, peaking, lowshelf, highshelf, notch, allpassallpassBiquad filter type
Freq0–120Cutoff frequency (normalized, maps to 20Hz–20kHz)
Q0–10.707Filter resonance

The Freq and Q parameters support LFO modulation.

Effects

Each effect has an LED toggle (green = active). Tabs 1/2/3 are on the same line as the "Effects" title.

Reverb

Control Options Default Description
LEDon/offonEnable/disable reverb (green = active)
RevTnone, room, hall, plate, spring, gatednoneReverb preset
RevV0–10Wet/dry mix

Reverb Presets:

Delay

Control Options/Range Default Description
LEDon/offonEnable/disable delay (green = active)
DelTynone, slap, tape, pingpongtapeDelay algorithm
DelT0.0625, 0.125, 0.25, 0.5, 1, 2, 41Delay time (beat multiplier)
DelV0–10Wet mix

Delay Types:

Saturation (Sat)

Control Options/Range Default Description
LEDon/offonEnable/disable saturation (green = active)
SatTsoft, hard, tapesoftSaturation algorithm
SatV0–10Drive amount

Saturation Types:

LFO Sub-Panel

Click any LFO-capable row (Velo, Pan, Pitch, Freq, Q) to open the LFO editor.

Control Range Default Description
LEDon/offoffEnable/disable LFO
Typesine, triangle, sawtooth, squaresineLFO waveform shape
Freq0.1–21LFO rate (cycles per 4 beats)
Minvariesparent minLFO sweep minimum
Maxvariesparent maxLFO sweep maximum
Phas0–10Phase offset

Sound Sub-Panel

Control Description
autoassignLED toggle (green = active). When on, automatically assigns the best sample from the drumkit based on track name.
InstrInstrument type selector
SampleSpecific sample file selector
SynthSoft-synth generated sound selection
EditOpens the Synth Editor for the selected generated sound

Loop / Pattern Sub-Panel

Control Range Default Description
Steps/Beat1–84Number of steps per beat
Beats1–164Number of beats in the pattern
Loop Point1–(beats×steps/beat)endStep where the track loops back
Swing0–10Shuffle amount for odd-numbered steps

5. Note Editor

The Note Editor opens when you click a note in the Pattern Panel. It shows per-note parameters.

Header

Vel / Pitch / Pan

Control Range Default Description
Vel0–10.8Note velocity (volume)
Pitch-24 to 240Semitone offset from C3
Pan-1 to 10Per-note panning

Triggers

Control Range Default Description
Every1–161Play every N-th loop (1 = every loop)
Pos0–150Phase offset for trigger frequency
Prob0–11Probability of triggering (1 = 100%)

How triggers work:

A note triggers when: (currentLoop + pos) % every === 0

Retrig

Control Range Default Description
Retrig1–161Number of retrigger sub-hits
Rate1–161Spacing between retrigger hits
Eucl0–160Euclidean fill: adds N evenly-spaced sub-hits between this note and the next
Prob0–11Probability for retrig, euclidian, and arp sub-notes (1 = 100%)

Euclidean fill: Adds N evenly-spaced notes between this note and the next note in the track, creating complex rhythmic patterns.

Retrig Prob: This probability controls whether retrig sub-hits, euclidian fill sub-hits, and arp sub-notes are actually played. The base note (first hit) is always played.

Arpeggiator

Control Options/Range Default Description
Scalemajor, minor, pentatonic, etc.majorMusical scale for arp intervals
Dirup, down, updownupArpeggio direction
Range0–120Number of arp notes (0 = disabled)

How arpeggiator works:


6. Tools Panel

The Tools Panel opens when clicking the "Tools" button in the toolbar.

Pattern Settings

Control Description
NameText input to rename the current pattern

Export

Button Format Description
Export JSON.jsonExports pattern data (strips defaults, keeps only changed values)
Export MIDI.midExports as Standard MIDI File (SMF Type 1, multi-track)
Export WAV.wavRenders audio using OfflineAudioContext
Control Range Default Description
Loops1–321Number of times pattern loops in WAV/MIDI export

Export filenames: ordrumbox-{patternName}.{ext}

MIDI Export details:

Import

Button Description
Import JSONOpens file picker for .json files, imports as a new pattern

7. Output Panel

The Output Panel opens when clicking the "Output" button in the toolbar. It provides master mixing controls and a real-time spectrum analyzer.

Master

Control Range Default Description
Volume0–21.0Master output volume

Filters (Master)

The filters section is part of the master bus signal chain, applied after the compressor.

Control Range Default Description
Low Cut10–500 Hz35 HzHigh-pass filter (removes low frequencies)
High Cut1000–20000 Hz18500 HzLow-pass filter (removes high frequencies)

Compressor

The compressor section uses a 2-column grid layout and includes pre-gain, compression, and makeup gain controls. The signal chain is: Pre-Gain → Compressor → Low-cut → High-cut → Master Gain.

Control Range Default Unit Description
Pre-Gain-20 to +200dBInput gain before the compressor
Threshold-40–0-18dBCompression threshold
Ratio1–208Compression ratio
Attack0–10.002sResponse speed
Release0–10.08sRecovery speed
Knee0–403dBCurve softness
Makeup0–248dBOutput gain to compensate for compression

Spectrum Analyzer

A real-time frequency spectrum display updated via requestAnimationFrame. Bars are colored from dark (low amplitude) to red (high amplitude).


8. Synth Editor

The Synth Editor is a full-screen overlay for editing soft synthesizer parameters. It opens from the Track Editor's "Edit" button when a generated sound is selected.

Header: OK (saves changes) / Cancel (reverts) buttons.

Master Volume

Parameter Range Default Description
masterVolume0–10.8Synth output volume
slide0–500 ms0Portamento/glide time between consecutive notes. When > 0, pitch slides smoothly from the previous note to the new one.

Oscillators (VCO1, VCO2, VCO3)

Three independent oscillators with PolyBLEP anti-aliasing. Each oscillator has:

Parameter Range Default Description
gain0–1vco1:1, others:0Oscillator volume
octave-4 to 40Octave offset
detune-100 to 1000Fine detuning in cents
wavesine, triangle, sawtooth, squaresineWaveform

FM (Frequency Modulation)

Parameter Range Default Description
amount0–10FM depth. When > 0, VCO2 modulates VCO1 frequency and VCO3 modulates VCO2 frequency (serial FM chain). The modulation amount scales the modulator output by ×1000 Hz.

How FM works:

Filter

Parameter Range Default Description
typelowpass, highpass, bandpass, notchlowpassFilter type (TPT SVF topology)
freq20–20000 Hz400 HzCutoff frequency
Q0.1–241Resonance (higher = narrower peak at cutoff)
Env0–10Filter envelope modulation depth. When > 0, sweeps the cutoff frequency upward during the attack phase and back during the decay phase.

Filter envelope behavior: When Env > 0, the cutoff frequency sweeps from its base value toward 20 kHz during the attack time, then returns to the base value during the decay time. At Env = 1, the sweep reaches the full 20 kHz range.

LFO

There are two independent LFOs (LFO and LFO2) with the same parameters:

Parameter Options/Range Default Description
targetsee target list belowNOT (disabled)Modulation target
wavesine, triangle, sawtooth, squaresineLFO waveform
freq0–200LFO rate in cycles per 4 beats
depth0–10Modulation depth
syncoff, 1/1, 1/2, 1/4, 1/8, 1/16, 1/8T, 1/16ToffTempo sync. When set to a note value, the LFO rate locks to the pattern BPM instead of the free-running freq. T = triplet.

LFO Targets:

Target Description Scale
NOTLFO disabled
FLTFilter cutoff frequency×1000 Hz
VCO1VCO1 coarse frequency modulation×1000 Hz
VCO2VCO2 coarse frequency modulation×1000 Hz
VCO3VCO3 coarse frequency modulation×1000 Hz
masterVolumeMaster volume tremolo×1
vco1.gainVCO1 amplitude×1
vco1.detuneVCO1 fine detune×100 cents
vco1.octaveVCO1 octave offset×1200 cents
vco2.gainVCO2 amplitude×1
vco2.detuneVCO2 fine detune×100 cents
vco2.octaveVCO2 octave offset×1200 cents
vco3.gainVCO3 amplitude×1
vco3.detuneVCO3 fine detune×100 cents
vco3.octaveVCO3 octave offset×1200 cents
filter.freqFilter cutoff frequency (same as FLT)×1000 Hz
filter.filterEnvelopeAmountFilter envelope depth×1000
filter.QFilter resonance×24
noise.mixNoise generator level×1

Noise

Parameter Range Default Description
mix0–10White noise level (xorshift32 PRNG). Mixed with oscillator output.
filterTypelowpass, highpass, bandpass, notchhighpassNoise filter type
filterFreq20–200001000 HzNoise filter cutoff
filterQ0.1–241Noise filter resonance

Envelope (ADSR)

Parameter Range Default Description
attack0–0.5 s0Attack time (quadratic ease-in curve)
decay0–1 s0.12Decay time (cubic ease-out curve)
sustain0–11Sustain level
release0–0.5 s0.05Release time (cubic ease-out curve)

9. Keyboard Shortcuts

Key Action
SpaceStart/Stop playback
BAuto-generate a new pattern
SLog patterns as JSON to console
FSwitch to a random pattern
GSwitch to a random drumkit
HConvert all tracks to soft-synth sounds
DExport current track sound
VToggle VU meters and waveform overlay
1–9Toggle mute for tracks 1–9
Q, W, E, R, T, Y, U, IPreview (audition) tracks 0–7
ArrowAdjust focused slider by one step
Shift + ArrowAdjust focused slider by 10 steps
Alt/Option + ArrowAdjust focused slider by 0.1 step (fine)

10. Audio Signal Flow

Per-Track Signal Chain

Sample/Synth → Filter → Saturation → Dry Gain → Reverb → Delay → Stereo Panner → Mixer Bus
    

Master Bus Signal Chain

Mixer Bus → Pre-Gain → Compressor → Low-cut Filter (35 Hz) → High-cut Filter (18.5 kHz) → Master Gain → Analyser → Speakers
    

All tracks feed into a shared mixer bus. The master bus applies pre-gain, then compression, then filters and final gain before reaching the output.


11. Installation & Offline Use

orDrumbox v2 can be used in three different ways:

1. Web Application

Simply visit the website in any modern browser. Note that an internet connection is required for the initial load.

2. Progressive Web App (PWA)

You can install orDrumbox directly from your browser:

Once installed, the application will have its own icon and window, and can function offline thanks to the integrated Service Worker.

3. Desktop Application

orDrumbox will be available soon