Audionaut

v0.6.0
io.github.kvoltmer/audionaut Checked 1 hour ago Published 4 days ago

Edit Audionaut multitrack projects: cut, fade, analyse, export.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_project_info Get project info

Summarizes an Audionaut project: tempo, tracks, clips with positions/durations and their audio files. Set raw=true for the full persistence JSON instead of the summary.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
rawbooleanDump the full persistence JSON instead of the summary

create_project Create project

Creates a new empty Audionaut project (.audium package) with one track. Fails if the path already exists.

ParameterTypeDescription
project *stringTarget path for the new .audium package
channelsintegerChannels on the initial track (default 2)

import_audio Import audio

Imports one or more audio files into the project at the given position and saves it. Note: importing creates a new track holding the files.

ParameterTypeDescription
files *arrayAudio file paths to import
project *stringPath to the .audium project package (absolute paths recommended)
position_secondsnumberTimeline position for the files (default 0)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

export_audio Export audio

Renders the project offline to an audio file (no audio device needed). The output's extension picks the format: .wav (8/16/24/32 bit), .flac (lossless and compressed, 16/24 bit, at most 8 channels per file), .aiff (8/16/24 bit), .ogg (Ogg Vorbis, lossy, at most 8 channels) or .mp3 (lossy, mono or stereo, at most 48 kHz). Lossy formats take bitrate_kbps instead of bit_depth. A render to the project's end runs on for the effects' ring-out (a delay's echoes) unless include_tails is false; a length_seconds is kept as given. The inserts' latency is compensated. Pass region to bounce a single region…

ParameterTypeDescription
output *stringOutput path ending in .wav, .flac, .aiff, .ogg or .mp3 - the format follows the extension
project *stringPath to the .audium project package (absolute paths recommended)
bit_depthintegerBit depth (default 24; not for .ogg/.mp3)
bitrate_kbpsintegerBit rate for .ogg (64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 500) or .mp3 (96, 128, 160, 192, 256, 320); default 192
channelsintegerOutput channel count (default 2)
include_tailsbooleanRun on past the project's end for the effects' ring-out (default true; only without length_seconds)
length_secondsnumberExport length (default: whole project)
multi_monobooleanWrite one mono file per channel instead
regionstringBounce this region instead of the whole project
sample_rateintegerSample rate in Hz (default 44100)
start_secondsnumberExport start position
trackintegerTrack id, to disambiguate same-named regions

analyze Analyze audio

Runs audio analysis (segment boundaries, beats with BPM, onsets) on the project's audio files - or one standalone audio file - and caches the results next to the project for auto_edit/assemble to use. Reports progress as each file and type finishes when the call carries a progressToken.

ParameterTypeDescription
target *stringA .audium project package or a single audio file
typesstringComma-separated analysis types from segments, beats, onsets (default: segments,beats, what auto_edit needs)

auto_edit Auto-edit clip

Segments a clip on a track using cached analysis results (run analyze first). Splits the clip into musically-aligned regions.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
clipintegerPlaylist item id (default: the track's clip)
crossfadesbooleanApply crossfades at joints (default true)
duration_secondsnumberTarget duration
measuresnumberSegment length in measures
segmentsintegerNumber of segments
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id (default 0; imported audio lands on a new track)

assemble Assemble arrangement

Builds an arrangement of the given duration from the project's regions, sequentially or at random (requires regions - e.g. from auto_edit).

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
crossfadesbooleanApply crossfades at joints (default true)
duration_secondsnumberTarget duration (default 60)
modestringSelection mode (default sequential)
seedintegerRandom seed for reproducible random mode
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id (default 0)

split Split clips

Splits the clip under the given timeline position into two on every track that has one there (the GUI's Split command). Fails with nothing_to_split when no clip spans the position.

ParameterTypeDescription
at *numberTimeline position to split at, e.g. 23 for bar 23
project *stringPath to the .audium project package (absolute paths recommended)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

create_region Create region

Creates a named region from a timeline range on every track whose clip fully contains it (the GUI's Create Region command). The arrangement itself is unchanged. The name must not be taken by another region (error name_taken).

ParameterTypeDescription
end *numberRange end (must be after start)
name *stringName for the new region
project *stringPath to the .audium project package (absolute paths recommended)
start *numberRange start, e.g. 23 for bar 23
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

set_region Edit region

Renames a region and/or retrims its source-relative range (clamped to the source audio). Clips have no length of their own, so a retrim affects every clip using the region.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
region *stringName of the region to edit
endnumberNew source-relative end (exclusive with length)
lengthnumberNew length, keeping the start
renamestringNew name (must not collide with an existing region)
startnumberNew source-relative start
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id, to disambiguate same-named regions
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

remove_clip Remove clips

Removes the clip at a timeline position (one clip; ambiguity across tracks needs track), or every placement of a named region. delete_region also drops the region itself unless other clips use it.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
atnumberTimeline position of the clip (exclusive with region)
delete_regionbooleanAlso delete the region from the pool
regionstringRegion name; removes every placement
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

move_clip Move clip

Moves one clip to a new timeline position and/or onto another track. Address it by position (at) or region name; the address must match exactly one clip. to_track takes a track id, or "new" to create a track for it; without to the clip keeps its position. Give at least one of to and to_track.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
atnumberCurrent position of the clip (exclusive with region)
regionstringRegion name of the clip
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
tonumberTarget timeline position (default: unchanged)
to_trackTarget track id, or "new" to create a track
trackintegerTrack id
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

place_clip Place clip

Creates a new clip from an existing named region at a timeline position, on the track that owns the region (track only disambiguates same-named regions).

ParameterTypeDescription
at *numberTimeline position for the new clip
project *stringPath to the .audium project package (absolute paths recommended)
region *stringName of the region to place
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id, to disambiguate same-named regions
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

cleanup_regions Delete unused regions

Deletes every region that has no clip on the timeline (the GUI's Delete Unused Regions). The audio files stay in the package.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

clip_gain Set clip gain

Sets the addressed clip's gain - linear by default, dB with db=true - on every destination channel, or one channel. The address (at or region) must match exactly one clip.

ParameterTypeDescription
gain *numberGain value (linear unless db=true; linear must be >= 0)
project *stringPath to the .audium project package (absolute paths recommended)
atnumberTimeline position of the clip (exclusive with region)
channelintegerOne destination channel (default: all)
dbbooleanInterpret gain as decibels
regionstringRegion name of the clip
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

clip_speed Set clip speed

Sets a clip's playback speed (ratio 0.25-4, 2.0 = double speed, half as long). The mode picks how: repitch (default, varispeed - pitch and length change together) or stretch (pitch-preserving time-stretch). Mode can also be changed on its own. lockTempo ties the clip to the project tempo (speed = project tempo / clip tempo, following tempo changes); the clip tempo is detected by beat tracking or given with `tempo`, which implies the lock.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
atstringTimeline position of the clip (in `unit`)
lengthstringFit the clip to this timeline duration (in `unit`)
lockTempobooleanLock the clip to the project tempo (true) or release it (false)
modestringHow the speed is realised: varispeed or pitch-preserving
rationumberSpeed ratio (0.25-4)
regionstringRegion name of the clip
semitonesnumberPitch shift in semitones (ratio = 2^(n/12))
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
temponumberThe clip's own tempo in BPM; sets it and locks the clip
trackintegerTrack id to narrow the match
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

separate_stems Separate stems

Splits a clip into Drums/Bass/Other/Vocals tracks with the Demucs (htdemucs) source separator, aligned with the source clip. Slow: minutes for a full song, CPU only; reports progress in 5% steps when the call carries a progressToken. Needs the model weights, which the Audionaut app downloads once (Settings > Separation); fails with model_missing until then, and with demucs_unavailable in builds without Demucs.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
clipintegerPlaylist item id (default: the track's first clip)
mute_sourcebooleanMute the source track's channels (default true)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
threadsintegerParallel segments (default: physical cores)
trackintegerTrack id (default 0; imported audio lands on a new track)

clip_fades Set clip fades

Sets the addressed clip's fade ramps and curve exponents (0.1-4, 0.5 = equal power). All four fade values are in `unit` (default bars) and 0 clears one. Each ramp has two edges measured inward from the clip edge: the fade-in runs from fade_in_start to fade_in after the clip start, the fade-out from fade_out to fade_out_end before the clip end, so a ramp lasts fade_in - fade_in_start (or fade_out - fade_out_end). A negative offset puts that edge outside the clip, playing source audio beyond it - e.g. fade_out 0.25 with fade_out_end -0.25 (seconds) is a 0.5 s ramp centred on the clip end, the ou…

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
atnumberTimeline position of the clip (exclusive with region)
fade_innumberWhere the fade-in ramp reaches full level, measured from the clip start; the ramp length only when fade_in_start is 0
fade_in_curvenumberFade-in curve exponent (0.1-4, 0.5 = equal power)
fade_in_startnumberWhere the fade-in ramp begins, measured from the clip start; negative = before the clip start
fade_outnumberWhere the fade-out ramp begins, measured back from the clip end; the ramp length only when fade_out_end is 0
fade_out_curvenumberFade-out curve exponent (0.1-4, 0.5 = equal power)
fade_out_endnumberWhere the fade-out ramp reaches silence, measured back from the clip end; negative = past the clip end
regionstringRegion name of the clip
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id
unitstringUnit for positions (default bars; bars/beats are 1-based, seconds/clocks absolute)

remove_track Remove track

Removes a whole track from the project, including its channels, clips and regions. Track ids are positions in the track list, so the ids of the tracks below shift up by one. The audio files stay in the package.

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
track *integerTrack id
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

remove_channel Remove channel

Removes one channel (0-based) from a track, like deleting a channel strip in the GUI. Channel mappings and per-channel clip gains shift down; the audio files stay in the package.

ParameterTypeDescription
channel *integerChannel index within the track (0-based)
project *stringPath to the .audium project package (absolute paths recommended)
track *integerTrack id
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

track_pan Pan a track

Sets the pan position of a track's channel strips, -1 (hard left) to 1 (hard right), 0 centred - the pan slider of the channel view. Every strip of the track by default, one with channel. A mono stem has one strip; a stereo import's two strips start at -1 and 1. Playback and export_audio both follow it; get_project_info shows the current pans per track.

ParameterTypeDescription
pan *numberPan position, -1 left .. 0 centre .. 1 right
project *stringPath to the .audium project package (absolute paths recommended)
track *integerTrack id
channelintegerOne channel strip (0-based; default: all)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

list_effects List effect types

The effect types add_insert can create: the built-ins (builtin:trim, builtin:eq3, builtin:compressor, builtin:delay; category Utility, EQ, Dynamics, Delay) with their parameters (id, name, unit, range, default, default_text, values in their units; a stepped parameter takes whole numbers and lists what each is called in steps, lowest first - builtin:delay's mode is 0 Dotted, 1 Straight, 2 Triplets, 3 ms, and its time is time_division (0 = 1/32 to 5 = 1/1, at the project's tempo) in the first three and time_ms in the last), and the plugins installed on this machine (type ids au:, vst3:, lv2:; ca…

ParameterTypeDescription
typestringOne type id to list with its parameters (loads a plugin)

add_insert Add an insert effect

Inserts an effect (a type id from list_effects: a built-in like builtin:eq3, or a plugin like au:1a2b3c4d) into a chain: a track's (track; it processes all the track's channels together), an aux bus's (aux) or the master's (master). Appends by default, or at position at. Parameters start at their defaults - on an aux bus a dry/wet mix (builtin:delay's mix) at fully wet instead, as the return carries no dry signal: set them with set_insert. Playback and export_audio both run the inserts; get_project_info lists them (a plugin with its plugin block and loaded state, no parameter values).

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
type *stringEffect type id from list_effects, e.g. builtin:eq3 or a plugin's au:/vst3:/lv2: id
atintegerPosition in the chain (0-based; default: the end)
auxintegerAn aux bus's chain (its id, as get_project_info lists it)
masterbooleanThe master chain, before master gain
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id: the track's chain, over all its channels

remove_insert Remove an insert effect

Removes the insert at index (0-based, as get_project_info lists them) from a chain named like add_insert names it. The inserts after it move up.

ParameterTypeDescription
index *integerSlot index in the chain
project *stringPath to the .audium project package (absolute paths recommended)
auxintegerAn aux bus's chain (its id, as get_project_info lists it)
masterbooleanThe master chain, before master gain
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id: the track's chain, over all its channels

set_insert Set an insert's parameter or enabled state

Sets parameter param (an id from list_effects, e.g. gain_db; for a plugin the ids list_effects gives with type, values normalised 0 to 1) of the insert at index to value, clamped to the parameter's range, and/or enables or disables the insert. A disabled insert passes the signal through unchanged.

ParameterTypeDescription
index *integerSlot index in the chain
project *stringPath to the .audium project package (absolute paths recommended)
auxintegerAn aux bus's chain (its id, as get_project_info lists it)
enabledbooleanSwitch the insert on or off
masterbooleanThe master chain, before master gain
paramstringParameter id, e.g. gain_db
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…
trackintegerTrack id: the track's chain, over all its channels
valuenumberThe new value (goes with param)

add_aux Add an aux bus

Adds a stereo aux bus - a send destination with its own insert chain and a return into the main mix - after the existing ones, named name or "Aux <id>". Every project has Aux 1 and Aux 2 from the start; get_project_info lists them with their ids. Feed it with set_send, put effects on it with add_insert (aux).

ParameterTypeDescription
project *stringPath to the .audium project package (absolute paths recommended)
namestringThe bus's name (default: Aux <id>)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

remove_aux Remove an aux bus

Removes the aux bus with the id together with every channel's send into it. The other buses keep their ids.

ParameterTypeDescription
aux *integerAux bus id
project *stringPath to the .audium project package (absolute paths recommended)
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

set_aux Set an aux bus's name or return

Sets an aux bus's name and/or its return into the main mix: gain (linear, 1 = unity), pan (-1 left .. 1 right, a balance: the side you turn away from is attenuated), mute, solo. With an aux soloed only the soloed aux returns are heard.

ParameterTypeDescription
aux *integerAux bus id
project *stringPath to the .audium project package (absolute paths recommended)
gainnumberReturn gain, linear (1 = unity)
muteboolean
namestringA new name
pannumberReturn pan, -1 left .. 1 right (a balance: the side you turn away from is attenuated)
soloboolean
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

set_send Set a channel strip's send into an aux bus

Sets the send from a track's channel strip (every strip of the track without channel) into an aux bus: level (linear, 0 = off, 1 = unity), pre_fader (then the strip's gain, mute and solo do not apply to it) and mute. A send is made the first time it is set; a strip without one sends nothing. The send follows the strip's pan.

ParameterTypeDescription
aux *integerAux bus id
project *stringPath to the .audium project package (absolute paths recommended)
track *integerTrack id
channelintegerChannel strip (0-based); default: every strip of the track
levelnumberSend level, linear (0 = off, 1 = unity)
muteboolean
pre_faderbooleanTap before the strip's fader
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

remove_send Remove a channel strip's send

Removes the send from a track's channel strip (every strip of the track without channel) into the aux bus with the id.

ParameterTypeDescription
aux *integerAux bus id
project *stringPath to the .audium project package (absolute paths recommended)
track *integerTrack id
channelintegerChannel strip (0-based); default: every strip of the track
taskstringName of the task this edit is part of, e.g. "remove speech pauses". In the open app, all edits with the same task name become one undo step: keep the name for every call of the task and change it when…

request_feature Request a feature

Sends a feature request to the Audionaut maintainer as a GitHub issue. Use it when a task needs something the other tools cannot do: a missing verb or option, a limit that got in the way, or a workflow that took a clumsy workaround. Say what the user was trying to achieve and why the current tools fall short - that context is what makes the request actionable. Tell the user you are sending it; include their name or e-mail only if they offered it. If nothing could be sent, the reply carries a prefilled issue link to hand to the user.

ParameterTypeDescription
description *stringWhat is missing, why it matters, and how it should behave
title *stringOne-line summary of the requested feature
contextstringWhat you were trying to do, which tool fell short, and any workaround used
reporterstringThe user's name or e-mail for follow-up, only if they offered it

report_bug Report a bug

Reports a bug in Audionaut to the maintainer as a GitHub issue. Use it when a tool misbehaves: an error that should not happen, a wrong or inconsistent result, a crash, or a project left in a bad state. Quote the exact tool call and error text - the CLI's code and message - and say what you expected instead; that is what makes the report reproducible. Never include the audio itself, and keep file paths to what is needed. Tell the user you are sending it; include their name or e-mail only if they offered it. If nothing could be sent, the reply carries a prefilled issue link to hand to the user.

ParameterTypeDescription
description *stringWhat happened, including the exact error text if there was one
title *stringOne-line summary of the problem
contextstringProject shape (tracks, clips, sample rate), platform, anything else relevant
expectedstringWhat should have happened instead
reporterstringThe user's name or e-mail for follow-up, only if they offered it
stepsstringHow to reproduce it: the tool calls in order, with their arguments