Controls Audacity over its mod-script-pipe scripting module. Windows + macOS.
Preferences > Modules > mod-script-pipe = Enabled, then restart Audacity.
Pipes: Windows \\.\pipe\ToSrvPipe / \\.\pipe\FromSrvPipe; macOS /tmp/audacity_script_pipe.to.<uid> / .from.<uid>.
logiplugintool generate Audacity(gives you the csproj,Helpers/PluginLog.cs,Helpers/PluginResources.cs, build targets).- Copy
src/from here over the generatedsrc/(replacesAudacityPlugin.cs,AudacityApplication.cs, addsPipe/,Actions/,Adjustments/,Images/). - Embed the icons — add to the csproj if the template doesn't already embed
Images/:<ItemGroup><EmbeddedResource Include="Images\*.png" /></ItemGroup>
- Merge
package/metadata/LoupedeckPackage.yaml(keep the template'ssupportedDevices). python3 tools/verify_commands.pywith Audacity running to check every command id.
| Button | Audacity command |
|---|---|
| Record / Record New Track | Record1stChoice / Record2ndChoice |
| Play / Stop, Stop, Pause | PlayStop, Stop, Pause |
| Go to Start / End | CursProjectStart / CursProjectEnd |
| Add Label | AddLabel (stopped) / AddLabelPlaying (playing/recording) |
| Undo, Save Project | Undo, Save |
| Zoom In / Out / Fit | ZoomIn, ZoomOut, FitInWindow |
| Dial | Turn | Press |
|---|---|---|
| Scrub | CursorShortJump* stopped, Seek*Short playing |
Go to start |
| Zoom | ZoomIn / ZoomOut (max 4 per 50 ms) |
Zoom to fit |
| Track Gain | SetTrack: Volume= on selected track(s), 0.5 dB/tick, ±36 dB, starting from the selected track's current volume |
0 dB |
- Transport state (record/play/pause highlight) is optimistic: the pipe has no state query or events, so starting playback from Audacity's own UI won't light the buttons. For the same reason, Pause does nothing while stopped (in Audacity it would arm pause for the next Play/Record, which the plugin can't track).
- Track Gain reads the first selected track's volume (
GetInfo: Type=Tracks) at the start of each turn of the dial. Audacity'sSetTrackhas no track index, so all selected tracks are set to the same value. - The plugin never sends Audacity anything unless you press a button or turn a dial: any scripting command, even a no-op, runs on Audacity's UI thread and closes open menus. Every 2 s it checks whether the Audacity process is still running (to drive the "-off" icons and plugin status) and reconnects when it isn't connected. If Audacity restarts within those 2 s, the first press afterwards fails and the plugin reconnects.
- If Audacity doesn't answer a command within 10 s (e.g. a modal Save dialog is open), the command fails, the plugin disconnects and drops anything queued behind it, then reconnects on the next poll. Up to 32 commands can queue; further presses are dropped until Audacity catches up.
src/Images/*.png— 80×80 PNG, RGBA, three variants each:<name>.png,<name>-active.png(record/play/pause),<name>-off.png(disconnected). Regenerate withtools/make_icons.py src.src/package/metadata/Icon256x256.png— 256×256 PNG, RGBA.
Download the .lplug4 from Releases and open it with Logi Options+ or the Loupedeck software. To publish a release, see docs/release-process.md; changes are listed in CHANGELOG.md.
MIT. See LICENSE.