Skip to main content
Glama

Lathe

TDQS

A small, dependable DAW. It opens, finds your interface, loads a template, and records. It hosts VST3 plug-ins, has a mixer with returns and sends, routes audio and MIDI to and from your interface, and exports a mix and stems. It doesn't try to do everything else.

Built with C++20 and JUCE 8.0.9, the same setup as the plug-in projects. It runs on macOS (CoreAudio), Windows (ASIO, WASAPI) and Linux.

Download it at getlathe.app. How to use it is in docs/.


Downloads on getlathe.app

Publishing a release also puts it on the website: .github/workflows/publish-downloads.yml copies the three archives to the site's bucket, so the download buttons on getlathe.app always get the newest published release.

Related MCP server: reaper-mcp-mac

Build

macOS

You need the Xcode command line tools and CMake (brew install cmake).

cd ~/Projects/lathe
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
open build/Lathe_artefacts/Release/Lathe.app

The first configure downloads JUCE, which takes a minute. macOS asks for microphone access the first time Lathe opens the interface. Allow it, or nothing will record.

Windows

You need Visual Studio 2022 (with "Desktop development with C++") and CMake. Install your audio interface's driver from its maker first, since its ASIO driver is what gives low latency.

cd lathe
cmake -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release
build\Lathe_artefacts\Release\Lathe.exe

ASIO support is built in automatically. Steinberg's ASIO SDK has been GPLv3 since October 2025, and CMake fetches it. To build without it, pass -DLATHE_ASIO=OFF. To use your own copy, pass -DLATHE_ASIO_SDK_DIR=....

Tests

cmake -B build -DLATHE_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build --output-on-failure

These are headless engine checks that run a fake audio device through the real audio callback. They cover clip timing, plug-in delay compensation, mute, solo and faders, sends, looping, record-latency offset, export, project round-trip, clip splitting, undo (clips, tracks, plug-ins and routing), the AI assistant's tools (building a session, measuring CPU on a real-time audio thread), and joining clips (the joined audio plays back sample-identical). The test build also makes three tiny VST3s (one that works, one that crashes while loading, and one that hangs). With those, the tests check that scanning skips the bad plug-ins without freezing or crashing Lathe. They also test the plug-in store: release parsing against the real release format, picking the right platform archive, zip (with Unix permissions) and tar.gz installs, updates over an existing copy, staged updates, and the full download-and-install flow.

The engine renders tracks on several cores (docs/multicore.md). ctest also runs every test with each block shared over 4 threads (LATHE_TEST_THREADS=4), and compares 200 random sessions rendered on 1 and 4 threads sample for sample. CI's Thread check job runs both under ThreadSanitizer. For the speed: LatheTests --bench out.csv 1,full, or Lathe --benchmark on any machine (docs/performance.md).

Third-party code

The sound engines of Multi Synth, Resonator, Grains and Random Notes are Émilie Gillet's open-source DSP (MIT licence), vendored in ThirdParty/mutable/ with a few portability changes. Its README lists the source, the licence and every change.

MP3 export uses LAME 3.100 (LGPL), which CMake fetches at a fixed commit and builds as a static library; cmake/lame/config.h replaces the one LAME's own build would generate. FLAC and Ogg Vorbis come with JUCE.

Documentation

The user guide and the code map are in docs/: getting started, recording and mixing, keys, Lathe Cloud, the AI assistant, the built-in devices and plug-in browser, updating, project files, and where things live in the source.

Available Tools

23 tools
analyze_mixListen to the mixA
Read-onlyIdempotent

Renders bars of the song offline (nothing plays; nothing is written) and measures what you'd check by ear when mixing. The mix: peak, true peak, integrated loudness (LUFS), crest factor, balance across seven frequency bands, stereo width and correlation (also below 250 Hz). Each section: its loudness and the loudest tracks. Each track and return: its loudness (LUFS) and level while it plays, its share of the tracks' loudness (K-weighted, as ears and meters hear it, not raw energy, which the bass always wins), the bars it plays in, where most of its energy is, and its stereo width. Masking: pairs of tracks loud in the same band at the same time, within 6 dB of each other, and for how much of the time. Plus notes on anything measurably off (clipping, true peak above -1 dBTP, a wide or out-of-phase low end). The loop if it's on, else the whole song, unless bars are given. Use it after changing a mix to check the change. To act on masking, cut one of the pair where they collide with edit_session's set_eq. To compare the mix with an earlier version of itself or a reference track, use compare_mix.

Inputs: to_bar, from_bar, section_bars.

compare_mixCompare the mix with before and a referenceA

Lathe's Compare window keeps up to three versions to switch between while they play in step: Before (the mix as it was when someone marked it), Now (the mix as it is) and a Reference (a finished track the person chose). Each is measured like analyze_mix's mix: integrated loudness, true peak, crest, width, correlation and balance across seven bands. With mark_before, Lathe renders the mix now as Before: do it before changing a mix, so the person can hear what you did by switching between them. Without it, Lathe renders Now (over Before's bars, if there's a Before) and replies with every version's numbers and a summary of what changed and how both stand against the reference. The person picks the reference in the window; the reply says if there's none. Renders over the loop if it's on, else the whole song.

Inputs: mark_before.

compare_processing_coresCompare 1 core with all coresA

Measures the same bars with Lathe rendering on 1 core and on all cores (Auto), alternating (1, all, 1, all) so a warming or throttling computer doesn't favour either, and returns both side by side with the speed-up, every run, each track's cost, and the conditions. The Processing cores setting is put back afterwards. Takes about 2 x rounds x seconds, plus warm-ups.

Inputs: rounds, to_bar, seconds, from_bar.

convert_to_midiConvert audio to MIDIA
Destructive

Finds the notes in an audio track's clips and puts them on a new MIDI track right under it, named " MIDI", a MIDI clip for each audio clip at the same place, like the clip menu's Convert to MIDI. kind "melody" hears one note at a time (a voice, a bass, a lead; not chords): each note's pitch, start, length and velocity. kind "drums" finds each hit and makes it a kick (36), snare (38) or closed hi-hat (42), General MIDI's notes; "one_drum" makes every hit the same drum, for a track of one drum. The audio track is left as it is. The new track has no instrument: add one with edit_session (a drum plug-in for drums). Use get_notes to read what was found. One undo step.

Inputs: kind (required), track (required), clip.

describe_sessionDescribe the sessionA
Read-onlyIdempotent

Overview of the project open in Lathe: tempo, time signature, key changes (the key lane), transport (playing, recording, position), every track with its kind, input, output, monitoring, arm/mute/solo, volume and pan, plug-ins in signal order (and which ones generate notes), number of clips, the returns and the master. Also lists likely reasons a track can't be heard. Start here.

Inputs: no named parameters.

describe_trackDescribe a trackA
Read-onlyIdempotent

Everything about one track (or a return, or "Master"): input, output, monitoring, plug-ins in signal order, sends, EQ, and every clip with its id, position in bars and length (MIDI clips: note count and pitch range; audio clips: file and gain).

Inputs: track (required).

edit_sessionChange the sessionA
Destructive

Builds or changes the project: adds, removes, renames and moves tracks and returns, and sets plug-ins, routing, sends, mixer, channel EQ, tempo and keys. Give every change for one request in a single call, in order: they all land as ONE undo step in Lathe, or, if one can't be made, none of them do (the reply says which and why). Plug-in placement is automatic unless position is given: a note generator goes before the instrument it drives, an instrument before the effects. A MIDI track plays one instrument. A track whose input is another track gets monitoring In so it plays without being armed. Routing a note generator into an instrument, two ways: on one track, {"action":"add_track","kind":"midi","name":"Arp","plugins":["",""]} (simplest), or on two, so the generator's notes can be recorded or drive several instruments: a MIDI track with the generator, a MIDI track with the instrument, then {"action":"set_input","track":"","from_track":""}. A reverb return: {"action":"add_track","kind":"return","name":"Verb","plugins":["Reverb"]}, then set_send from each track. Lathe's own effects start 100% wet on a return. Every track, return and the master has a six-band channel EQ (low cut, low shelf, bell 1, bell 2, high shelf, high cut), after its plug-ins unless it was moved in among them (describe_track shows what's active and where it sits). set_eq changes one band: {"action":"set_eq","track":"Guitar","band":"bell 1","freq_hz":300,"gain_db":-3,"q":1.4} or {"action":"set_eq","track":"Vocal","band":"low cut","freq_hz":100}. Changing a band switches it on. Prefer this to adding an EQ plug-in for corrective cuts. "before" moves the EQ in the chain: {"action":"set_eq","track":"Master","before":"Mastering"}. On the master, put the EQ before Mastering (or any limiter) for tonal moves on the whole mix: after it, a boost can push the output past the limiter's ceiling. On a MIDI track it can't go before the instrument. The key lane says what key the song is in, bar by bar; Lathe's Play Along window shows the person where those notes are on guitar, bass, ukulele and keyboard so they can jam along. set_keys replaces the lane (or a range of it): {"action":"set_keys","keys":[{"bar":1,"key":"A minor pentatonic"},{"bar":17,"key":"C major"}]}. An empty list clears it. With "track", a track gets keys of its own, for a part that plays in a different key or mode from the band (a solo in D dorian over a D minor song); it follows the song's key until its first one, and an empty list puts it back on the song's. Play Along can follow that track. Most parts don't need one: a bass playing roots is still in the song's key. Work the keys out from the notes (get_notes; convert_to_midi for audio) and pick the scale a player would improvise with: minor pentatonic or blues over a minor blues-rock riff, the full major or minor scale when the melody uses all seven notes. Volume, pan, send levels and the EQ are part of the undo step; mute, solo, monitoring and arm change live and aren't.

Inputs: changes (required).

export_audioExport audioA

Renders the song to audio files (WAV unless another format is asked for), like File > Export: the mix, and stems (a file per track and return) if asked. From the start to the end of the last clip unless bars are given. Lathe stops playing first. Files go in the project's Exports folder; the reply lists them with each one's length and, for the mix, its peak, true peak and integrated loudness (LUFS), so you can check the level.

Inputs: mix, kbps, stems, folder, +5 more.

export_midiExport a MIDI fileA

Saves MIDI clips as a Standard MIDI File (.mid), like File > Export MIDI File: for another program, or for someone to play. Without track: every MIDI track that has notes, one track each in the file, from the start of the song. With track: just that track; with clip too, just that clip, measured from the bar it starts in. The file has the song's tempo and time signature, each track's name and MIDI channel, and the clips' notes, controllers and pitch bend: notes, not sound (an instrument's sound isn't in a MIDI file). Without path it goes in the song's Exports folder. A file already there is never replaced. Doesn't change the song.

Inputs: clip, path, track.

get_notesGet MIDI notesA
Read-onlyIdempotent

The notes in a MIDI track's clips. By default in Lathe's note notation (see notation_guide): drum grids and token lines, with the bars they cover, ready to edit and write back with write_notes' pattern over the same bars. format "list" gives one JSON object per note instead: pitch (number and name, C3 = middle C), start in bars (1-based) and beats, length in beats, velocity 1-127, at most 2000 notes. Optionally one clip, or only notes between two bars.

Inputs: track (required), clip, format, to_bar, +1 more.

get_plugin_paramsGet a plug-in's settingsA
Read-onlyIdempotent

Every setting a plug-in on a track publishes (Lathe's own devices and VST3s): number, name, id, the current value as the plug-in shows it, and either its choices (a menu or a switch) or its range (min, max and unit). Use search to find one in a plug-in with hundreds.

Inputs: track (required), plugin (required), search.

import_midiImport a MIDI fileA
Destructive

Puts a Standard MIDI File (.mid) from the computer into the song as MIDI clips, like dragging it onto Lathe's arrangement: a groove from a drum library, a part exported from another program. Use this instead of reading a file and writing its notes out. With track (a MIDI track), the whole file goes onto it as one clip, clearing whatever was there in those bars. Without track, each part of the file (a track of it, or a channel of a one-track file) gets a new MIDI track named after it, or one new track with one_track; new tracks have no instrument, so add one with edit_session. Clips run to the end of the bar their last note ends in. Notes keep their place in beats: the song's tempo is not changed (the reply gives the file's tempo and time signature, so you can match them with edit_session). One undo step.

Inputs: path (required), bar, track, one_track.

list_pluginsList installed plug-insA
Read-onlyIdempotent

The plug-ins Lathe can load on this computer: Lathe's own built-in devices first (instruments such as Multi Synth and Drums, the Random Notes generator, and effects such as Reverb and Mastering), then the installed ones, with name, maker, kind (instrument, note generator or effect) and format. Use the names with edit_session's add_plugin and add_track's plugins.

Inputs: kind, search.

measure_performanceMeasure CPU useA

Plays part of the project for real and times every audio block, the way a CPU meter does: mean, 99th-percentile and peak load (share of each block's deadline; over 100% is a dropout), blocks that missed the deadline, dropouts the interface reported, each track's own cost per block (heaviest first, with its plug-ins), and the conditions (computer, CPU and cores, interface, buffer size). Bars default to the loop if it's on, else the first four. Takes about seconds plus a short warm-up; Lathe is stopped first and the playhead goes back afterwards.

Inputs: to_bar, seconds, from_bar.

new_projectNew projectA
Destructive

Starts a new project, like File > New: empty (an audio track and a MIDI track) or from one of the person's templates by name. It replaces the open project, so unsaved changes stop it unless "unsaved" says what to do. The new project is Untitled until save_project gives it a name.

Inputs: unsaved, template.

notation_guideNote notation guideA
Read-onlyIdempotent

The full reference for Lathe's note notation, used by write_notes' pattern and get_notes: every symbol, velocities, timing, swing and humanize, with examples. Read it before writing a detailed part.

Inputs: no named parameters.

open_projectOpen a projectA
Destructive

Opens a project, like File > Open: by name from the projects folder (exact, or a unique part of it), or by path. Without either it lists the projects, newest first. It replaces the open project, so unsaved changes stop it unless "unsaved" says what to do.

Inputs: name, path, unsaved.

playPlayA

Starts playback, from the given bar or from Lathe's insert marker. With to_bar, Lathe stops by itself exactly when the playhead gets there. With loop_times, it plays the loop that many times and stops at the loop end (the loop must be on: see set_loop). When it stops, the playhead goes back to the insert marker, as with Stop. Without from_bar or to_bar it does nothing if Lathe is already playing; from_bar jumps there, to_bar alone sets where the current playback stops.

Inputs: to_bar, from_bar, loop_times.

save_projectSave the projectA

Saves the open project. Without a name it saves where it is (Cmd/Ctrl+S); a project that's never been saved needs one. With a name it's saved as a new project, Name/Name.lathe in the projects folder, with its own Audio folder (audio it uses is copied in), like File > Save As. It never saves over another project.

Inputs: name.

set_loopSet the loopA

Sets the loop region and turns looping on, or turns it off. The loop is saved with the project, like moving the loop brackets in Lathe. Bars are 1-based: from_bar 1 to_bar 5 loops the first four bars.

Inputs: on, to_bar, from_bar.

set_plugin_paramsChange a plug-in's settingsA

Turns a plug-in's knobs, flips its switches and picks from its menus: Lathe's own devices (a Drums kit, a synth's wave) and VST3s. Give every change for one plug-in in one call; if one can't be made, none are. Each change happens at once, as if turned by hand, and like a knob in Lathe it isn't an undo step: the reply gives each old value, so it can be put back. Check names and ranges with get_plugin_params first.

Inputs: track (required), params (required), plugin (required).

stopStopA

Stops playback, like pressing Stop. If the person is recording, this finishes the recording and keeps the take, exactly as the Stop button does. Only the person can start a recording; no tool does.

Inputs: no named parameters.

write_notesWrite MIDI notesA
Destructive

Writes notes into a MIDI track, as one undo step in Lathe. Give pattern (Lathe's note notation; notation_guide has the full reference) or notes (a JSON list). A pattern is lines; each loops to fill from_bar to to_bar. Drum grid: a lane then one character per step (16ths by default; . rest, x hit, X accent, o ghost, 1-9 velocity levels), e.g. "kick x... ..x. x... ....". Token line: notes split each bar evenly (| between bars; ~ rest, _ hold, [a b] share a step, [a,b] chord), each with optional :velocity, +8ms/-5ms or +20% timing, =beats length, e.g. "bass: c2:110 ~ [c2 c2:70-6ms] ~ | f1=2 _ ~ g1+4ms". "swing 58%" and "humanize 6ms 8vel seed 3" lines set the feel for the lines after. The notes go in a clip covering from_bar to to_bar: with mode "replace" (the default) whatever was in those bars on that track goes first; with "add" they join the notes already there. Every note must start inside the bars. repeat plays the notes again that many times back to back (a one-bar beat with repeat 4 fills four bars). Lathe's Drums play the usual drum notes: 36 kick, 37 rim, 38 snare, 39 clap, 42 closed hat, 46 open hat, 41/45/48 low/mid/high tom, 49 crash, 51 ride, 56 cowbell.

Inputs: track (required), to_bar (required), from_bar (required), mode, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or actions: describe_session vs describe_track, get_notes vs write_notes, and import/export/convert MIDI are well separated. Minor potential confusion exists among analyze_mix, compare_mix, measure_performance, and compare_processing_cores, and edit_session is a broad catch-all, but the descriptions make the boundaries mostly clear.

    Naming Consistency4/5

    Names are consistently lower snake_case and mostly follow a verb_noun pattern, e.g. describe_session, write_notes, set_plugin_params. A few are nouns or bare verbs (notation_guide, play, stop), which are natural exceptions rather than inconsistent conventions.

    Tool Count3/5

    At 23 tools, the set is heavy for an MCP server, even one covering a DAW. The tools mostly earn their place, but some analysis and transport operations could potentially be consolidated, and the 16-25 range is explicitly borderline in the rubric.

    Completeness4/5

    The surface covers project lifecycle, tracks and routing, EQ and mixer edits, MIDI import/export/editing, audio export, mix analysis, and performance measurement. Gaps include no explicit undo/redo tool, limited clip-level operations beyond notes, and no automation editing, though most core production workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Free, open source REAPER MCP server that lets an AI agent drive REAPER: read every plugin and parameter, set FX values, write automation, and measure a mix move before and after. Local stdio, no network port, every change inside a REAPER undo block.
      49
      34
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Control Logic Pro locally on macOS through MCP: transport, tracks, mixer, plug-in parameters, audio analysis, bounce and delivery, with optional gesture and voice control. Uses OSC, CoreMIDI and macOS Accessibility. Actions report confirmed, uncertain or failed outcomes. Actual control requires a local Mac with Logic Pro. Hosted/Linux builds are schema inspection only; all operations are disabled.
      12
      4
      MIT