A Max for Live plugin that simulates guitar strumming, with arbitrary fretting.
Disclaimer: This project was built entirely by Claude 5.5 Opus using OpenClaw.
Strumtab is a MIDI effect. You assign a guitar chord shape to any key by clicking it on a fretboard, and when that key plays, Strumtab outputs the chord as a strum: string by string, in guitar-string order, with optional velocity-sensitive timing and a tremolo-arm "glide" dip.
- Chords per key: map any incoming MIDI note to its own chord shape. Unmapped notes can pass through or be ignored.
- Clickable 24-fret neck in standard tuning:
- click a fret to place a finger;
- click the same fret again to mute the string;
- click left of the nut to switch a string between open and muted.
- Every click plays the string you changed so you can hear the chord as you build it.
- Strum direction: ↑ Down (low E first), ↓ Up (high E first), or ↑↓ alternating Down/Up. The arrows show the direction the strum moves on the neck.
- Strum time: 0–127 ms between strings. Muted strings keep their place in the timing, so
x221xxstrums at the same pace as022100. - Velocity or Manual timing:
- Velocity: harder notes strum faster, from the full knob time at velocity 1 down to all strings at once at velocity 127.
- Manual: always uses the knob time.
- Glide: a tremolo-arm dip on each chord, using pitch bend.
- Delay: 0–2 s before the dip starts.
- Time: 20 ms–3 s for the dip, down and back up.
- Depth: 0–100 % of the instrument's pitch-bend range.
- Display:
- strings animate as they're plucked, in time with the strum;
- the last chord played stays on the neck;
- playing a chord selects its key for editing.
- Saved and automatable:
- the chord map and all settings are saved with the Live Set;
- Strum, Direction, Velocity/Manual, Glide and the Glide dials can be automated or mapped to an LFO/modulator.
- Ableton Live with Max for Live: Live Suite, or Standard with the Max for Live add-on. Developed on Live 12.2 (bundled Max 9.0.8).
- Live 11 will probably work but is untested.
- An instrument after Strumtab on the same track. For Glide, the instrument must respond to pitch bend.
- macOS is tested. Windows should work (no compiled externals, only Max objects and JavaScript), but is untested.
Download Strumtab.amxd from the Releases page and put it anywhere in your Live User Library, for example User Library/Presets/MIDI Effects/Max MIDI Effect/. It appears in Live's browser under MIDI Effects → Max MIDI Effect.
The device in this repository is not frozen: the patch loads its scripts from the folder it lives in. Copy these three files together into one folder in your User Library:
Strumtab.amxd
strumtab.js
fretboard.js
For example:
DEST="$HOME/Music/Ableton/User Library/Presets/MIDI Effects/Max MIDI Effect/Strumtab"
mkdir -p "$DEST"
cp Strumtab.amxd strumtab.js fretboard.js "$DEST/"If the device loads but the neck is blank, or the Max Console says it can't find a .js file, the scripts aren't next to the .amxd.
- Put Strumtab on a MIDI track before an instrument, such as a guitar, piano or pad.
- Pick a key to edit by doing one of the following:
- set the Key box;
- click a row in the chord list;
- press Learn and play a note.
- Click the chord shape on the neck. The list and the note readout update immediately.
- Play that key. Strumtab plays the chord, strummed with the current settings.
- Set Strum and the direction (↑ / ↓ / ↑↓), and choose Velocity or Manual timing.
- Optionally turn on Glide and set Delay, Time and Depth.
Default chords: C3 = C (x32010), D3 = Dm (xx0231), E3 = Em (022000), F3 = F (133211), G3 = G (320003), A3 = Am (x02210). Note names follow Live's convention (MIDI 60 = C3).
| Control | What it does |
|---|---|
| Learn | The next note you play becomes the selected key. Mainly useful for keys without a chord yet. |
| Key | The key whose chord is shown and edited. |
| Clear | Removes the selected key's chord. |
| Chord list | All mapped keys. Click a row to select it. |
| Neck | Shows and edits the selected chord. |
| Other notes | Pass through or ignore keys that have no chord. |
| Direction | ↑ Down, ↓ Up, ↑↓ alternate. Alternation restarts on Down when the mode is selected, and only chords count toward it. |
| Strum | 0–127 ms between strings. In Velocity mode this is the slowest (softest) strum. |
| Velocity / Manual | Strum time follows velocity, or uses the knob exactly. |
| Readout | What the last chord did, e.g. down 32 ms / vel 94. |
| Glide | Turns the tremolo dip on or off. |
| Delay / Time / Depth | When the dip starts, how long it lasts, and how deep it goes. |
- Note-offs follow the key. All of a chord's notes end when its key is released. If you release before the strum finishes, the strings not yet played are skipped.
- Overlapping chords are safe. Notes shared by several held keys keep sounding until the last of those keys is released.
- Glide uses MIDI pitch bend, which moves every note on the track at once, as a real tremolo arm moves all the strings. Pitch bend from your controller still passes through, but it will fight a glide in progress.
- Timing comes from Max's JavaScript scheduler (
Task), which may drift by a few milliseconds. That's fine for strums but not sample-accurate.
Strumtab.amxd generated device (do not hand-edit; see build.py)
build.py generates Strumtab.amxd: patcher layout, wiring and Live parameters
strumtab.js main logic: chord map, strumming, note bookkeeping, glide, save/restore
fretboard.js jsui that draws the neck, handles clicks and animates strings
tests/ node tests for both scripts, using stubs for the Max APIs
LICENSE Apache License 2.0
python3 build.py # writes Strumtab.amxd next to build.pybuild.py is the source of truth for the patch. Changes made in the Max editor and saved into Strumtab.amxd will be overwritten the next time it runs, so carry them over into build.py.
The scripts run in Node with small stubs for outlet, Task, mgraphics and so on. Each test prints the MIDI and UI messages for a set of scenarios:
for t in tests/*.cjs; do echo "== $t"; node "$t"; doneThese tests check the logic, not the look or feel inside Live, so try changes in Live too.
- Both scripts set
autowatch = 1, so saving a.jsfile in the install folder reloads it in a running device. The reload resets the script's state, including the chord map, to the defaults. Don't save the Live Set right after; reopen it to restore your saved chords. - After changing
build.py, rebuild, copy the files into your User Library again, then delete the device from the track and drag it in fresh. A loaded device keeps its old patch.
- Build and install the device, load it in Live, and open it in the Max editor.
- Click Freeze Device (snowflake icon) and Save As a release copy, e.g.
Strumtab-1.0.amxd. Freezing embedsstrumtab.jsandfretboard.js. - Test the frozen file on its own: copy it to an empty folder (or move the
.jsfiles away) and load it. - Attach the frozen
.amxdto a GitHub release and/or upload it to maxforlive.com.
Apache License 2.0. See LICENSE.