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. Piano Roll
  10. Patterns Panel
  11. Pattern Settings
  12. Drumkit Manager
  13. About Panel
  14. Mobile Tab Bar
  15. Keyboard Shortcuts
  16. Audio Signal Flow
  17. 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

Header Action Buttons

ButtonDescription
✕ DeleteDelete the current pattern (with confirmation)
⌫ CleanClear all notes from the current pattern (with confirmation)
⧉ DuplicateDuplicate the current pattern
✎ RenameRename the current pattern
↓ SaveExport pattern as JSON file
↑ ReplaceLoad/replace pattern from JSON file

Per-Track Controls

ControlDescription
Track nameClick to open Track Editor for that track
Volume sliderPer-track volume (range 0–1)
Mute dividerClick to toggle mute for the track
Solo buttonClick to solo the track (only this track plays)

Bottom Row

ControlDescription
MasterMaster volume slider (range 0–2)
+ new trackAdd a new empty track to the pattern

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.
Var Prop0–100%0Variation probability — controls how likely each variation operation is to trigger within its budget.
Prob0–11Track-level note probability. All notes on this track have this base probability of triggering (independent of per-note probability).

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–5000 mssample defaultSample decay time in milliseconds (from drumkit). Controls how long the sound fades out after the attack phase. Editable in the Track Editor and Drumkit Manager.

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
↑ LoadImport an audio file (WAV/FLAC/MP3) to replace the current track's sample
WaveformSample waveform display with decay marker (yellow vertical line)

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. It has three tabs: Pattern, Export, and Import.

Pattern Tab

Button Description
CompactDetects repeating note patterns across tracks and adds loop points to minimize the number of notes
RndWrites random notes into each track of the current pattern using the pattern generator

Export Tab

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 Tab

Button Description
Import JSONOpens file picker for .json files, imports as a new pattern
Import MIDIOpens file picker for .mid / .midi files, imports MIDI into new pattern(s)
Import DirectoryOpens folder picker for audio files (.wav, .flac), imports folder contents as a new drumkit

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

The Volume tab features a rotary knob for master output volume, displayed above the real-time spectrum analyzer.

Control Range Default Description
Volume0–21.0Master output volume (rotary knob). Vertical drag or arrow keys to adjust.

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 VST-style rotary knob layout with a power button toggle. The signal chain is: Pre-Gain → Compressor → Low-cut → High-cut → Master Gain.

The power button (⚡ icon, top-right) toggles the compressor on/off. Green glow = active, dimmed = bypassed.

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

Knob interaction: Vertical drag to change value. Arrow keys for precision (±step). Shift+drag or Shift+arrows for fine mode (±0.1 step). Double-click to reset to default.

Spectrum Analyzer

A real-time frequency spectrum display updated via requestAnimationFrame. Beats 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.

Preset Management

The footer bar provides preset management controls:

ControlDescription
Preset selectorDropdown to load a built-in or user preset
SaveSave current settings to the selected preset
RevertRevert to the last saved state
+ (New)Create a new user preset
⧉ (Duplicate)Duplicate the current preset
✕ (Delete)Delete the current user preset

Group Controls

Each parameter group (Oscillators, Filter, LFO, etc.) has a bypass/power button (LED toggle). When dimmed, the group is bypassed and its processing is skipped.

Visual Displays

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, modulators affect carrier frequency. The modulation amount scales the modulator output by ×1000 Hz.
algo0–40FM routing algorithm (see below)

FM Algorithms:

AlgoRoutingDescription
02 → 1VCO2 modulates VCO1 frequency
13 → 1VCO3 modulates VCO1 frequency
23 → 2 → 1Serial chain: VCO3 modulates VCO2, VCO2 modulates VCO1
32+3 → 1VCO2 and VCO3 both modulate VCO1 (parallel)
42 ↔ 1Cross-modulation: VCO2 modulates VCO1 and VCO1 modulates VCO2

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. Piano Roll

The Piano Roll is an alternative view to the Pattern Panel step grid. It displays notes on a vertical pitch axis (MIDI-style) with time on the horizontal axis. Open it from the toolbar or view switcher.

Layout

Interactions

Action Result
Click on empty gridCreates a note at that pitch and time
Click on a noteSelects it, opens Note Editor
Click on selected noteDeletes it
Arrow keysMove cursor (pitch up/down, time left/right)
EnterCreate or toggle note at cursor position

Page navigation: The piano roll displays one page of beats at a time (default: 4 beats). Use the page buttons in the toolbar to navigate between pages.


10. Patterns Panel

The Patterns Panel manages all patterns in the current song. Open it from the toolbar pattern selector.

Pattern List

Actions

Button Description
+ PatternAdds a new empty pattern to the song
RenameRename the selected pattern
DeleteDelete the selected pattern (with confirmation)
Save SongSave the entire song (all patterns) to IndexedDB
Load SongLoad a previously saved song from IndexedDB

Song Name

Double-click the song name at the top to rename it. Default: "Untitled".


11. Pattern Settings

The Pattern Settings panel provides quick access to pattern-level parameters. On mobile, it opens from the toolbar gear icon. On desktop, it's accessible from the toolbar.

Control Range Description
PageP1, P2, ...Navigate between pages of the pattern (each page = 4 beats by default)
Beats1–16Number of beats in the pattern
Drumkitall kitsSwitch drumkit for all tracks in the pattern
Patternall patternsSwitch to a different pattern
GenerationDrum / Bass / ChordsAuto-generate notes for the selected category using the pattern generator

12. Drumkit Manager

The Drumkit Manager lets you inspect and edit individual samples in a drumkit. Open it from the toolbar or Track Editor.

Header Actions

ButtonDescription
↓ SaveExport current drumkit as a .json file
↑ LoadImport a drumkit from a .json file

Sound List

Sample Details

Control Range Description
▶ PlayAudition the selected sample
WaveformVisual display of the sample waveform
InfoPeak dB, RMS dB, duration, detected note
Tune-12 to +12 stCoarse pitch tuning in semitones
Decay0–5000 msDecay time in milliseconds (used by Track Editor decay knob)
Gain-24 to +6 dBOutput gain trim
ReplaceReplace sample with another audio file
RemoveRemove sample from the kit
Kitall kitsMove sample to a different drumkit
Instrumentall instrumentsChange instrument assignment (KICK, SNARE, etc.)

Footer Actions

ButtonDescription
+ AddAdd a WAV/FLAC/MP3/AAC audio file to the current kit
Auto-detectAuto-detect and assign instruments for all tracks in the kit
NormalizeNormalize all samples to 0 dB peak

13. About Panel

The About Panel displays application information and PWA installation options. Open it from the toolbar.

Info Tab

Field Value
NameOrDrumbox
Version2.0.0
LicenseGPL-3.0-only

PWA Tab


14. Mobile Tab Bar

On mobile viewports (width ≤ 768px), a bottom tab bar replaces the toolbar for navigation between views.

Tabs

Tab View Description
SequencerPattern gridStep sequencer view (default on mobile)
TrackTrack EditorOpens the Track Editor for the selected track
SynthSynth EditorOpens the Synth Editor (if a synth sound is selected)
ToolsTools PanelOpens the Tools panel (export/import, settings)

The active tab is highlighted. Tapping the same tab again does nothing. Switching views dispatches the corresponding event and updates the main display.


15. 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)

16. 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.


17. 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