# \[ANN\] DrumMachine.jl 1.5.0: step sequencer for drum practice, with MIDI for e-drums

**URL:** <https://discourse.julialang.org/t/ann-drummachine-jl-1-5-0-step-sequencer-for-drum-practice-with-midi-for-e-drums/143300>\
**Category:** Package Announcements\
**Created:** [November 29, 2026, 9:33am UTC](https://discourse.julialang.org/t/ann-drummachine-jl-1-5-0-step-sequencer-for-drum-practice-with-midi-for-e-drums/143300 "2026-11-29T09:33:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ac\_sch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ac_sch/32/222021_2.png) [@ac\_sch](https://discourse.julialang.org/u/ac_sch)\
**Post date:** [November 29, 2026, 9:33am UTC](https://discourse.julialang.org/t/ann-drummachine-jl-1-5-0-step-sequencer-for-drum-practice-with-midi-for-e-drums/143300/1 "2026-11-29T09:33:15Z")

</div>

Hi everyone,

DrumMachine.jl is a step sequencer in Julia for drum practice: you enter a groove, listen to it, export it as WAV and play along.

I play drums and built it for my own practice. It talks to my e-drum module (Roland TD-27) over USB: it records what I play, and it can play a groove through the module while I play along.

**Grooves and sound**

- Grid in 16ths, 8ths, 8th or 16th triplets, 32nds; up to 32 steps per pattern, so 5/4 or 7/8 work
- Ghost, normal and accent per note, plus double stroke, buzz roll, flam and drag
- Up to 24 patterns per song, each with its own tempo; 30 to 400 BPM, swing 50 to 80 %
- 12 tracks, sampled kits from free libraries (AVL, DrumGizmo, Virtuosity, Crocell) and 808/909 synth kits
- 57 presets, “+ Fill” makes a fill from the current groove
- _Human_: the timing drifts slowly like a drummer instead of random noise per hit, hi-hat and ride accent the beats, softer hits pick softer recordings
- _Feel_ moves a track up to 40 ms earlier or later (laid-back snare)
- WAV export with count-in and click, loop export the TD-27 accepts, MIDI export

**MIDI with an e-drum**

- _Record_: a click plays, from the first hit on every bar goes into a new song
- _Calibrate_: you play a short groove along, the program sets the thresholds for ghost and accent per pad and the timing offset
- _Output_: the pattern goes out as notes on channel 10, with MIDI clock so the module’s click follows the tempo
- _Output_ with “clock only”: the pattern plays from the computer, the module gets only the tempo, so your own playing and the pattern have different sounds
- _Kit_: selects the kit of the module by number (program change), also written into the MIDI export
- Setup player for the stage: songs, WAVs and MIDI files in order, MIDI files through the module

For the Julia side: the GUI is GLMakie, audio goes through PortAudio, MIDI through PortMidi\_jll with `ccall`. The audio thread sends the MIDI messages without allocating, timed for the moment the sound card plays the same point, so module and computer stay in time.

**Install** (Julia 1.13 or newer, OpenGL 3.3)

```julia-auto
julia -t auto -e 'using Pkg; Pkg.add("DrumMachine"); using DrumMachine; DrumMachine.run()'

```

**Limits**

Tested on Linux (KDE Plasma, Wayland). It runs on Windows too, MIDI is untested there; macOS is untested. PLATFORMS.md lists the known gaps. The note table is made for the TD-27; other modules need a mapping in the settings file. Preset names are German.
