TORQWAVE v0.24.0

AI assistance: the plan

Experimental, in Torqwave since 0.17.0. This is what Torqwave does, or will do, with a language model, in the order it is being built. It is on the roadmap. The first version is a test: expect rough edges, check every plan before you apply it, and tell us what it got wrong.

The first step: a language model you run yourself

Torqwave talks to a language model on a server that speaks the OpenAI-compatible API (Chat Completions with tools), the API that local model servers share: Ollama, LM Studio, llama.cpp, vLLM, TensorFold and the like. It is made for a model you run on your own computer or your own network. Torqwave gets one new setting, Settings > AI, off by default:

Torqwave ships no model and depends on no AI company. It sends text to the server you name and reads back the answer, so it carries no model’s licence, and with a server on your computer or network nothing leaves it. No audio is sent, with one exception that is off to begin with: Let the model hear clips (0.20.0) sends the one note Torqwave Synth’s Decrypt is matching, for a model that takes audio.

It is being built and tuned against open-weights models on local servers.

How answers become edits

What the model can work

The model works Torqwave through tools: functions with typed settings that Torqwave checks, runs and reports back on. Each tool calls the same code as the menu command. There are four kinds:

Plug-ins

Plug-ins are driven through what every host can see: their parameters and their saved state. So this works for any AU, CLAP, VST3 or LV2 plug-in you have, not only Torqwave’s built-in effects.

What the model can’t do: anything a plug-in keeps only in its own window and doesn’t expose as a parameter, such as loading samples into many samplers. The plan then asks you to do that step, and opens the plug-in’s window for it. Plug-ins with unhelpful parameter names (“Param 12”) are taken as they are named.

Everything else

In 0.17.0

The first release gets the loop right on a small set of tools:

It works on audio files. The session, notes, automation, Try, batch and other-command tools follow in 0.17.x, each measured against its own set of test sentences first.

Since 0.17.0: the rest of the Effects menu

The file tools’ edit now has 72 kinds, up from 29: nearly every command in the Effects menu, with the settings and ranges of its dialog.

The commands that ran their own code are now step kinds of the shared engine (Source/Sequences.cpp), each calling the same function as its menu command with the same ranges. Two read a print from another range of the same file: noise reduction learns the noise and ambience match the room tone from printStart to printEnd, in seconds. Left out: Dynamic EQ and Match EQ (too many settings), convolution (it needs an impulse file), DTMF (text, not settings), Generate Instrument (a plug-in), Codec Preview, Spectral Heal (a drawn shape), the parametric EQ (its bands are in eqBand) and sample-rate conversion (the workspace keeps one rate).

Since 0.18.0: the multitrack view

Ask Torq on a session works as it does on a file: the model gets a copy of the session’s state, changes it with tools, and the plan is applied as one undo step (Session::apply).

What the language model would do

All of these need only text in and text out, plus pictures for a model with vision.

  1. Ask Torq. A sentence becomes a plan of commands, with settings taken from the file’s own analysis. For example, “take out the hum, bring it to -16 LUFS and trim the silence at both ends”.
  2. Batch from a description. “Every file in this folder to 48 kHz WAV at -23 LUFS, with a 10 ms fade at each end” becomes a batch job you can read and change before it runs.
  3. An effect chain from a description. “Warmer and closer”, “a telephone”, “a radio in the next room”. The model chooses built-in effects and their settings from the file’s spectrum and loudness, and saves them as a rack preset that works with AI off afterwards.
  4. Ask the guide. Questions answered from the user guide built into the app, with a link to the page and an offer to run the command.
  5. Names and notes. Suggested names for markers and regions, session notes, and file metadata (BWF descriptions, iXML).
  6. Sound Library categories. Suggested UCS categories, descriptions and keywords for sounds from their names, folders and existing tags. They are never taken as the sound’s category until accepted. This is item 1 on the roadmap, where word matching and naive Bayes were measured and weren’t good enough. A language model would be measured against the same library the same way before it’s offered.
  7. A MIDI composer. Notes written as structured data (pitch, start, length, velocity) for a key, tempo and length. “Four bars of a walking bass under these chords”, “a drum pattern for the chorus”. The result lands as a note clip, editable in the piano roll.
  8. Tidying a session. Renaming, colouring and grouping tracks, closing gaps, and evening out clip gains, as a plan of commands with checks between the steps.
  9. A second opinion on a mix. The analysis (loudness, true peak, spectrum per track, stereo width), and for a model with vision a picture of the spectrogram or meters. It answers with specific notes, each with a one-click preset to try.

Later: models that hear

These need models that run on audio, so they wait until the first step has been used. Each model’s licence is checked before any work starts. Torqwave is AGPL-3.0, so only permissively licensed models would be offered by default, and a model with a non-commercial licence would only ever be one you add yourself. They would run in a separate worker process, as the plug-in scan does, so a model that fails can’t take the editor down.

Feature Candidate Licence (to confirm)
Transcription: markers, regions, subtitles (SRT, WebVTT), search, editing speech as text whisper.cpp, or a server’s /v1/audio/transcriptions MIT
Polyphonic Audio to MIDI, into a note clip (monophonic melody & drum Audio to MIDI shipped in 0.23.0 via DSP) Basic Pitch Apache-2.0
Voice noise reduction DeepFilterNet, RNNoise MIT/Apache, BSD
Search the Sound Library by meaning (“metal door slam in a big room”) CLAP audio embeddings to check
Scratch voice-over from text Kokoro Apache-2.0
Music from a description, or a selected range regenerated in place ACE-Step 1.5, through ComfyUI on a GPU machine Apache-2.0
Sound effects from a description Stable Audio, through ComfyUI to check
Foley in sync with a video MMAudio code MIT; weights to check

Rules