Desktop companion
Connected host:
Operating system:
Detected host capabilities
Media playback: Unavailable
Capabilities describe detected host support; not all host controls are implemented.
Default playback device
Current default: Unavailable
PipeWire nodes
Active application streams and other PipeWire nodes are refreshed automatically. Select a node to inspect its name and type.
Automatic app routing
Choose an active application and destination. Rules stay on the Pi and apply when the app reconnects. The companion attempts to restore streams when a rule is removed or the desktop disconnects. The first matching rule takes priority.
Bluetooth
Connect a saved device or scan for audio devices.
Scans Classic Bluetooth. Disable this filter to include unnamed devices. Saved devices remain visible.
Effects
Plugins
Plugins are native code that runs inside the audio engine. A malicious or faulty plugin can disrupt audio, read or damage device data, and its custom UI can show misleading controls. Install only .axm packages from authors you trust.
Add installed plugins as effects from the Routing menu. Reload restarts a faulted plugin from its installed package.
Mixer
Outgoing gain: 100% = unity. Meters are pre-fader.
Use Assign CC to map a hardware control.Layout & MIDI setup
Set the pad layout and MIDI grid calibration.
Grid size: 1×1 to 8×8. Initial placement follows the sound order. Corner calibration requires at least two rows and columns.
Learn each corner pad to map grid positions to MIDI notes.
Add Sound
Drag to reorder; on touch, drag the clip name. Keyboard: focus a name, press Space, move with arrow keys, then Enter to save. Order is shared with the device display.
Unassigned sounds and actions
Drop tiles here to unassign their grid position and MIDI binding. Clips remain playable in the browser. Action tiles use the same placement controls.
Scripts
Up to 16 Lua scripts, triggered by MIDI, audio events, or Run. Run uses the saved source.
Device requirements
Keyboard output requires USB Keyboard enabled in Config and a connected host. MIDI and pad lighting require the selected controller. Sound, effects, and volume actions require neither connection.
Enter a channel and note, or select Learn MIDI Pad.
Callbacks and state
Register a handler for each event:
hook("run", function(event)
state.runs = (state.runs or 0) + 1
log("Run " .. state.runs)
end)
hook("sound_finish", function(event)
if event.sound == "intro.wav" then
log("Intro finished")
end
end) Register hooks unconditionally at top level; place actions, configuration I/O, and event/state access inside handlers. Setup reruns for every event. Only scalar state fields persist between events, not across restart. Up to 32 handlers run in registration order. Run requires a run hook. MIDI hooks require a binding; for CC, Note specifies the controller number.
Lua API quick reference and execution limits
Keyboard: tap("CTRL+A"), press("SHIFT+A"), release(), type("Text", 80). Media: tap("MEDIA_PLAY_PAUSE"), tap("MEDIA_NEXT"), tap("MEDIA_VOLUME_UP") send real USB Consumer Control keys. Use one media key per call, without modifiers. press replaces held keys; tap and type release them first. Completion or cancellation releases all keys. type uses US-layout ASCII; match the host layout and Caps Lock state. Typing interval: 50 ms default, 30 ms minimum. wait(ms) schedules a delay; light(velocity) sets the bound pad LED.
Events: note_on, note_off, cc, sound_start, sound_finish, device_connect, device_disconnect, run, boot, timer, config_change, ui, bluetooth_change, bluetooth_media_key. event.source identifies web, midi, audio, device, system, or bluetooth. Media keys supply event.key, event.pressed, and the device MAC in event.device. Use event.sound or event.device for audio/controller events. Run supplies velocity 127. state holds 32 scalar fields; edits, cancellation, and restart may reset it. millis() and epoch() are trigger-time snapshots.
Saved scripts can expose native settings and buttons below. Settings save on change and queue config_change; buttons queue ui. Queued is not confirmation of execution. Text settings allow up to 127 UTF-8 bytes. Custom script_config settings, ui controls and storage do not require official configuration or system-management permission.
Output: sound.play("clip.wav", 1.0), sound.stop_all(), midi.note_on(0,60,100), midi.note_off(0,60), midi.cc(0,1,64), midi.program(0,5), midi.send(status,...). Clips must be preloaded. MIDI output targets the controller, not the USB host. log("message") writes to device logs. Shell, network, arbitrary file access, and module loading are unavailable. Lua API and examples (internet required).
Configuration: config.list(), config.read(name), config.write(name, text). Reads: 64 KiB/file. Writes replace the whole file: 4 KiB/write, 8 KiB total payload. Saving requires confirmation. Back up first: file contents are not format-validated and may require reload/restart. Pairing credentials are inaccessible. Avoid repeated writes and recursive sound triggers.
Processing: effects.enable(id, true), effects.toggle(id), effects.set(id, parameter, value). Use valid effect IDs and parameter ranges. volume.set(id, 0..100) and volume.adjust(id, -100..100) use IDs from GET /api/audio/volumes, not names. 100% is unity; adjustments are percentage points clamped to 0..100. These changes are runtime-only.
Per event: 17,408 UTF-8 source bytes, 128 actions, 1,024 typed characters (255/call), 60 seconds scheduled duration, 100,000 instructions, 1 MiB Lua memory. Registration and handlers share the budgets. Save validates registration without running handlers. Failed evaluation discards pending actions and state changes. Lua runs outside the audio thread. Reload Scripts or inspect logs for errors.
Pad lighting
0 = off; 1–127 = controller color/velocity. Output uses the global lighting channel. Script colors take priority over sound/action mappings on the same note; Dim Lights overrides all colors. light() requires an enabled MIDI binding and connected controller, including for Run.
Actions
Assign MIDI notes to global actions.
Temporary: clears lights and pauses scripts and MIDI controls. All messages on every channel go to the USB host except this toggle. Enable USB MIDI in Config and restart first. Toggle again to restore controls.
Sampler
Set a keyboard channel for pitched sampler playback and the root note for no pitch shift.
Lighting
Controller LED velocities by playback state. 0 = off.
Dim Lights turns LEDs off without affecting audio or saved colors. Restore here or reboot.
USB Config
Save stages settings. To apply USB changes, Save Config, then use System > Restart Device (recommended). MIDI passthrough sends controller input to the host only. Unmapped excludes messages assigned to AudioX controls.
Warning: Reload Config is unreliable and may cause instability or leave the system unresponsive until rebooted. It disconnects USB audio, MIDI, keyboard, and networking. Rebooting after saving USB changes is recommended instead.
Configuration Backup
Configuration was migrated to /audiox/config/. Legacy settings and script data are retained for rollback. Back up and verify your setup before deleting them.
Export settings, routing, MIDI assignments, effects, gains, pairings, and clips as an .axb archive. Save pending edits first. Archives contain Bluetooth keys; store them securely.
Restore replaces settings and clips, then reboots. Firmware and boot files are unchanged. Maximum archive: 4 GiB. Free storage must hold both the archive and extracted files.
Device Info
Actions
Optional development telemetry
Firmware Update
Health and Logs
Power and Cooling
Recent Health
Loading history…
Audio Device Health
Waiting for devices.
Audio Buffer
Waiting for audio worker.
Restarts audio only. Playing sounds stop and effect tails reset; routing and settings are retained.
Audio Stress Tests
These tests can interrupt audio.