Make it your own
Clone the Hotstrings source from GitHub and add your own hotstrings.
Hotstrings is open source, and the code is on GitHub at
JanZaion/Hotstrings. If a word you want isn't in the list,
or you'd rather type rv than verb, clone the repo and change it. Every hotstring is a line of
TypeScript, and the build turns it into a device you load in Live like the released one.
What to install first
These are the tools you need before you can install the project's packages. The packages themselves come later, with one command.
- Git, to clone the repo and pull updates.
- Node.js, the current LTS version. The build scripts run on Node. Other JavaScript runtimes like Bun or Deno might run them too, but only Node is tested.
- pnpm 10. The repo uses pnpm, and its lockfile won't work with npm
or Yarn. Once Node is installed,
npm install -g pnpmis the quickest way to get it. - Ableton Live Suite 12 with Max 8 or higher, to load and test the device.
- AutoHotkey v2 on Windows, or Hammerspoon on macOS. You need the same helper as a normal install, set up as described in Getting Started.
- A code editor, like VS Code or Cursor.
Clone and build
git clone https://github.com/JanZaion/Hotstrings.git
cd Hotstrings
pnpm install
pnpm buildpnpm build writes the device and its scripts to dist/windows. On a Mac, run pnpm build:mac
instead. It runs the same build and copies the result to dist/mac.
Drag Hotstrings.amxd from that folder onto a track. The device reads its scripts from the folder
it sits in, so load it from dist rather than copying it somewhere else.
While you work, run pnpm build:watch. It rebuilds on every save, and the device picks up the new
scripts without being reloaded.
Add a hotstring
A hotstring takes three steps. The example below adds oct, which moves the selected notes up an
octave.
-
Write the action. Actions live in
src/actions/, grouped by what they touch. Note edits go inmidiClip.ts, chords inchords.ts, devices indevices.ts, and so on. Look at an existing action likedouborrevinmidiClip.tsto see how to read and write notes through the Live API, then export your own function namedoct. -
Expose it to Max. In
src/live.ts, importoctand addvoid oct;to the list at the bottom of the file. The import puts the function into the builtlive.js, where the device calls it by name. Thevoidline stops the linter from flagging the import as unused. -
Bind a word to it. In
src/bindings.ts, add a line to thehotstringsarray:{ key: 'oct', bind: 'oct' },keyis what you type after the initiator.bindis the name of the function it calls. They don't have to match, so{ key: 'rv', bind: 'verb' }gives Reverb a second, shorter word.
Run pnpm build, reload the device, then press ; and type oct.
To give your hotstring a description in the hotstring list, add it to
HOTSTRING_DESC in src/hotstringCatalog.ts. Without one, the list shows the function name.
Before you build
The repo has checks that catch most mistakes before Live does:
pnpm typecheck
pnpm lint
pnpm prettier:fixIf a hotstring does nothing after a build, open the Max Console and look for errors. See Troubleshooting for how to open it.
Share it
If you made something other people would use, open a pull request on
GitHub. To send a device to a friend without the source,
open it in Max and freeze it first, so the scripts get packed into the .amxd file.
We'd love to see what you made. Send it to us through the contact form.