Tutorial : How to use the MCP server in Usine

Usine has a built-in MCP server. Connect an AI assistant such as Claude to it and you can ask, in plain language, for a patch, a module chain, a script module or a parameter change: the assistant builds it in Usine while you watch. It starts from a patch of the Usine library when one does the job, answers your questions from this manual, sees the panels of Usine and clicks in them as you do. It can also read the MIDI, OSC and global-array messages that go through Usine, to tell you what a controller sends or why a message does not arrive.

In short

  1. In Usine, turn enable MCP on (Setup panel, AI tab).
  2. Connect your assistant to Usine: paste the prompt below into it, or double-click the install script.
  3. Restart the assistant and ask it something about Usine.

That is all. The rest of this page gives the details, and what to do when something does not work.

Step 1 — Turn the server on in Usine

Open the Setup panel, go to the AI tab and turn enable MCP on. Leave MCP port at 3100 unless another program uses it. The setting is saved: the server starts with Usine from now on. Only the programs of this computer reach it: for an assistant on another computer, see Usine on another computer below. The settings of the tab are described in Setup tab AI.

If the AI tab shows not available in this version, your Usine edition does not include the AI features. The tab is hidden in a stand-alone application and when Usine is started with the command line option -nomcp, which turns the server off.

Step 2 — Connect your assistant

Let the assistant install itself

If your assistant can run commands on your computer (Claude Code, Codex CLI, Gemini CLI, Cursor, Windsurf...), paste this and let it work:

Usine by BrainModular is installed on this computer and I want you to use its MCP server.

1. Find the Usine installation folder: it contains Resources/AI/mcp-bridge.js
   (on macOS the folder is Usine.app/Contents).
2. Check that Node.js is installed (the "node" command). If it is not, tell me how to
   install it from https://nodejs.org and stop here.
3. Register the MCP server:
   - Windows: run "<Usine folder>\Resources\AI\install\install-mcp.cmd"
   - macOS, Linux: run sh "<Usine folder>/Resources/AI/install/install-mcp.sh"
   The script registers the server named "usine" for Claude Desktop and Claude Code.
   If you are another client, register it yourself as a stdio MCP server:
   command "node", argument "<Usine folder>/Resources/AI/mcp-bridge.js",
   environment variable USINE_WS_URL=ws://localhost:3100.
4. Read "<Usine folder>/Resources/AI/README.md" and tell me what you did.
5. Remind me to start Usine with "enable MCP" turned on (Setup panel, AI tab),
   and to restart you so that the Usine tools appear.
6. Once connected, call the Usine tool get_engine_status and show me the answer.

Or do it yourself in one click

Windows: in your Usine folder, double-click Resources\AI\install\install-mcp.cmd.

macOS: open a terminal and run sh "/Applications/Usine.app/Contents/Resources/AI/install/install-mcp.sh" (adapt the path).

The script needs Node.js (it tells you if it is missing), registers the server for Claude Desktop and Claude Code, and reminds you to turn enable MCP on. For Claude Desktop, which cannot run commands by itself, this is the way.

Then restart the assistant completely: the Usine tools appear in its tool list.

Step 3 — Talk to Usine

Start with a check:

What is the state of the Usine audio engine?

The assistant answers with the sample rate, the block size and whether the audio is running. If it does, everything is connected. Then ask for real things:

  • Create a patch named "First test" with an analog oscillator connected to the audio output.
  • Add a low-pass filter between the oscillator and the output, cutoff at 800 Hz.
  • Rename the modules of this patch with clear names.
  • List the links of the current patch and tell me what the patch does.
  • Lay out this patch, check it and tell me what the check reports.
  • Write a script module that outputs the average of its array inlet.
  • Listen to my MIDI keyboard: I play a few notes, then tell me what you received.
  • Is there an audio looper in the library? Load it and show it to me.
  • How do sub-patches work in Usine?
  • Save this patch as C:\Usine\my-patch.usine-patch.

The assistant works on the target patch: at its first action, the patch shown in Usine, or the patch selected in the workspace when no patch is shown; then the one it creates, or the one it selects when you name it. When you work on several patches, say which one you mean.

Before the assistant changes a patch, Usine stores an undo point by itself, one for a series of changes that follow each other. If the result is not what you wanted, the usual undo of the patch brings the patch back. A value set alone stores no point, as when you move a fader, nor does an automation that the assistant writes or deletes, and this undo does not bring back a rack or a workspace cleared or loaded over, nor a deleted patch: the assistant asks you before these.

While the assistant works, the information panel at the top right of the main window names what it does, such as MCP: create module osc-main or MCP: get screenshot patch_structure. Turn show MCP activity off (Setup, AI tab) to hide it.

If something does not work

What you see What to do
Failed to connect to Usine: ECONNREFUSED Usine is not running, or enable MCP is off, or the port differs. The connection retries every 2 seconds.
No Usine tools in Claude Desktop Restart Claude Desktop completely. If still nothing, a syntax error in its configuration file disables every server: correct the file, which the install script reports and leaves unchanged while it cannot read it, then run the script again.
node not found Install Node.js from nodejs.org, then run the install script again.
The assistant builds a patch but nothing moves or sounds Ask it for the engine status: with the audio stopped, the patches are not processed. Check the audio setup. Then ask it to check the patch.
The assistant builds without method: classes or ports guessed, no layout, no check Its client may not give it the rules of the server: see When the assistant does not read the rules below.
no target patch for this client No patch was shown or selected when the assistant started: ask it to select or create a patch.
The assistant received no MIDI or OSC message It only keeps what arrives after you asked it to listen: ask first, then play or send. See Reading MIDI, OSC and global-arrays below.
The assistant seems to wait It may have asked you something in a dialog of Usine, perhaps behind another window: answer it. Without an answer the dialog closes after its time, 2 minutes by default. See Messages and questions below.

Turn trace MCP messages on (Setup, AI tab) to see every request and answer in the trace panel.

What the assistant can do

99 tools, which the assistant picks by itself:

Family Examples
Workspace, racks, patches list them, create, rename, clear, delete, turn them on or off, minimize them, set the output gain of a rack, select the target patch
Search the workspace find the modules by class, name or value in every patch and sub-patch, find the modules that use a name (a global array, a chunk, a bus, a quick link, a procedure), list the scripts, with the lines that hold a text, and the comments of the patches
Library search the patches, racks and workspaces of the Usine library (tutorials, demos, modular racks...), read one without loading it, load a patch or a rack into a new rack or patch
Manual search the pages of this manual and read a page or one of its sections
Routing read and change what feeds each rack and what it feeds (another rack, an audio, MIDI or video device), list the jacks of the modular racks and wire them together
Panels and screenshots show or hide any panel, see any panel or window of Usine as an image (the control panel of a patch, the structure of a patch with its wires, a rack, the mixer, the setup, a dialog...), and save it as a PNG file
Mouse and keyboard click, double-click, drag, turn the mouse wheel and type in the interface as you do, answer or cancel a dialog
Messages and questions tell you something in Usine (a line at the top right of the main window, or a message box), ask you a question in a dialog of Usine (yes or no, a text, a choice in a list, a file or a folder to pick)
Automations record the automation of a control with a mouse gesture, write one from times and values, read it or delete it
Modules and links search the module classes and read their ports, create, rename, move, copy and paste, delete or recreate modules, connect outlets to inlets, read the whole patch structure
Layout and check lay the modules of a patch out along its wires, check a patch and list what looks wrong in it
Several actions at once send the actions that build a patch in one request, instead of one exchange for each
Parameters read and set values, texts, colours and arrays
Scripts check that a script compiles without creating anything, create a script module with its code (only once the code compiles), read or replace the code (the former code stays when the new one does not compile, and an undo point is stored before each change), see the errors of a script while it runs
Chunks, variables and global-arrays list the chunks and read their items, read and set IML variables, read and write the global-arrays by their name
Files load and save patches, racks and workspaces, save the workspace as a container, reload a patch from its file
MIDI, OSC, global-arrays and trace read the MIDI received and sent, the OSC messages, the global-arrays shared on the network and the lines of the trace panel, each message with its time
Undo and diagnostics undo, redo, read the state of the audio engine, start or stop it, read the log file of Usine

The layout and the check of a patch

The layout places the modules of a patch from left to right along the wires, without overlap. It has an undo point of its own: an undo takes the layout back, not the build before it. The check changes nothing and lists what looks wrong: invalid modules, broken wires, script modules that do not compile, whose Init failed, that the script time limit stopped or that raise errors while they run, modules switched off, an audio module with only some channels wired or with different signals on its channels, a source that gives 0 to 1 on an inlet with a wider range (a frequency in Hz, for example), values outside the range of the inlet or in another unit (seconds for milliseconds), several wires on one data inlet, whose values are added (only an advice: such a sum is often meant), audio modules without any output module, modules without wire, boxes that overlap, wires that go from right to left, controls that kept their default caption, user names left on the modules. Both act on one patch: a sub-patch is laid out or checked on its own. Its rules tell the assistant to end a patch it built with both and to fix what the check lists, the user names included (the layout keeps a name that a script, an object address or an internal message of the patch uses): tell it when you want to keep those of your modules. In a patch of yours, it places only what it added and fixes only what the check says of it.

What Usine does by itself

Usine stores the undo point described in Step 3 above. It places beside the others each module that the assistant creates without a position, and does not open the query window of the module: the values the assistant gives, or else the default ones, are used. It refuses a request with an argument that the tool does not know, without one it needs, or with a value that the query window of the module would not offer, and tells in its answer what is valid: the assistant corrects its request. At the first action of an assistant, it shows the racks when they are not on screen.

The rules of the assistant

When it connects, the assistant receives eight short rules from the server: start from the library, never guess a module class or a port name, build from scratch in a new rack and in few requests, mind the ranges of the values, count one audio channel per wire, finish a patch it built with the layout and the check and change only what you asked in your own patches, ask you before deleting, clearing or loading over your work, correct a request that failed instead of repeating it. For the rest they send it to the tool get_guidelines: the essentials before its first change, then one section when it needs it (the scripts and the reference of the script language, the layout, the interface, the automations...). You do not have to give them to it.

Two prompts come with the server, with the same texts. Your assistant lists them with its other prompts, and you run one when you want to see it or to give it to the assistant yourself:

  • usine-guidelines: the whole guidelines, every section at once.
  • usine-scripting-reference: the reference of the script language, the summary page of this manual.

When the assistant does not read the rules

Some clients show their model only the name and the first sentence of each tool, and do not give it the rules of the server. With such a client, start your first request with:

Call the Usine tool get_guidelines first.

When an assistant starts a build or changes a patch without having called it or read the prompt usine-guidelines, Usine reminds it in the answer to that action, once per connection: the answer of a tool is the one text that every client gives to its model. A model may still take an answer as data rather than as an instruction: your own sentence is surer.

Going further

Configuration by hand

The install script writes the usine entry in the mcpServers object of the Claude Desktop configuration (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS). If the file already declares other servers, add only the usine entry inside the existing mcpServers object:

{
  "mcpServers": {
    "usine": {
      "command": "node",
      "args": ["<USINE FOLDER>/Resources/AI/mcp-bridge.js"],
      "env": { "USINE_WS_URL": "ws://localhost:3100" }
    }
  }
}

and runs, for Claude Code, claude mcp add usine -s user -e USINE_WS_URL=ws://localhost:3100 -- node "<USINE FOLDER>/Resources/AI/mcp-bridge.js". Any other client that starts stdio MCP servers takes the same command, arguments and variable. Options of the script: --port 3200, --host 192.168.1.20, --token <token> (with --host: the MCP token of the Usine of that computer), --remove.

For a Usine on another computer, the address goes in USINE_WS_URL and the token in USINE_MCP_TOKEN: "env": { "USINE_WS_URL": "ws://192.168.1.20:3100", "USINE_MCP_TOKEN": "<token>" } in the Claude Desktop entry, -e USINE_WS_URL=ws://192.168.1.20:3100 -e USINE_MCP_TOKEN=<token> in the claude mcp add command.

How it works

The server is part of Usine and listens on a WebSocket port. Assistants start their MCP servers as local processes and talk to them through standard input and output: mcp-bridge.js sits between the two and forwards the messages.

  assistant  ──stdio──►  mcp-bridge.js  ──ws://localhost:3100──►  Usine

The assistant does not watch your screen: it knows what the tools answer, which is why they describe patches, ports, values and the engine in detail. When it needs to see something, it asks for an image: see Screenshots below. It can also click and type in Usine: see Mouse, keyboard, dialogs and automations below.

Several assistants at the same time

Several assistants, or several sessions of the same one, can be connected at the same time: each receives the answers to its own requests. They share the workspace and the target patch: two that build at the same time disturb each other, so let one work on the patches at a time.

The library, the manual and the routing of the racks

The library. Before building a patch from scratch, the assistant looks in the library of Usine, the files you also find in the browser: about 500 patches, racks and workspaces made by BrainModular, from the tutorials and the demos to the audio, MIDI, video, light and data examples and the modular racks. It reads a file without loading it, to see its modules, links and comments, then loads it and adapts it. A patch or a rack of the library goes into a new rack: nothing of your workspace is replaced, so the assistant does it without asking. It puts a patch after the patches of one of your racks only when you ask, and it builds a patch from scratch in a new rack too: in a rack whose patches run in series, a patch placed after yours would receive its audio and replace its output. A workspace of the library replaces the whole workspace: the assistant asks you first.

The manual. For a question on how Usine works (polyphony, presets, sub-patches, panels, setup, MIDI, OSC, DMX...), the assistant searches the pages of this manual, in English, and reads the page or the section that answers. It reads the pages of the families of modules, not the page of each module: it describes a module from its own description, its ports and the library files that use it.

The routing. The assistant reads and changes what feeds each rack and what each rack feeds, as you do on the rack input and rack output panels: another rack, or a device such as Audio In 1-2. With the modular racks of the library (VCO, VCF, LFO, envelopes, mixers, sequencers...), it loads the racks, lists their jacks and draws the modular wires between them.

An assistant that lists the MCP resources also sees the folders of the library (usine-library:///...) and the pages of the manual (usine-manual:///...).

Screenshots

The assistant can ask Usine for an image of:

Usine draws the image as it draws the screen, so it shows the current values, captions and colours. A panel that is not shown is opened first: the assistant shows it as its button or its icon does, and can hide it again. Ask for example show me the control panel of this patch and tell me which controls are hard to read, check that the faders you added are aligned, or open the mixer and tell me which racks are muted. The assistant can also save the image as a PNG file.

Good to know:

  • Only what is displayed can be captured. The control panels of a minimized or reduced rack are hidden, a minimized panel gives only its header, and the controls of a module whose display location is invisible are not drawn.
  • The workspace image shows what fits in the window: the racks scrolled out of view are left out, and the assistant captures them one by one. In the patch editor, it can zoom and scroll the view to show every module.
  • What a control does not paint, such as the background of a transparent knob, stays transparent in the image, as in the screenshots Usine saves.
  • The 3D (OpenGL), web, video and plug-in views come out empty in the image of a panel or a window. On Windows the assistant can ask for the window as the system shows it, with these views, and for a window that Usine does not draw itself, such as a file dialog of the system or the editor of a plug-in.
  • A large panel is scaled down to about 1600 pixels on its longest side. The assistant can ask for up to about 2600 pixels, the most Claude reads, or capture a part of it, such as one rack or one patch. A saved PNG file is always at full size.

Mouse, keyboard, dialogs and automations

The assistant can also use the interface as you do: it points at what it saw in an image, then clicks, double-clicks, drags, turns the mouse wheel or types. It does so for what only the interface does, such as pressing a button of a panel, choosing an item in a list, answering a dialog or recording a movement; to set a value or to build a patch it keeps using its other tools, which are exact.

  • It looks first. It takes an image of the panel, clicks a point of that image, then takes a new image to see the result.
  • As fast as a hand. The gesture plays in Usine right after the assistant asks for it: a click takes about a tenth of a second, a drag half a second unless the assistant chooses another duration. The assistant waits until it is over before its next action.
  • The gestures of Usine. A click does not move a fader or a knob, whose mouse mode is relative by default: a drag does. A [Double-Click] opens the value editor of a fader, in which the assistant types the value. A [Right-Click] opens the settings panel of the object and shows its commands in the contextual menu. The mouse wheel acts on a control once it was clicked, and zooms a patch or a rack. In the patch editor the assistant can draw a wire from an outlet to an inlet, or move a module.
  • The modes. With lock off a drag moves or resizes the control, with learn on a click arms the learn of the control, and in help mode a click opens the manual. The assistant checks these modes before it clicks.
  • The keyboard. The assistant types only into a text field that has the focus: the value editor, the rename field of a control, the search field of the patch editor, a field of a window. Anywhere else its keys would run the shortcuts of Usine. It cannot send the shortcuts that quit Usine, clear the workspace or a patch, reload, or open a file dialog: it has its own tools to load and save.
  • Dialogs. When a click opens a dialog (the query window of a module, a message, a file dialog), the assistant sees it in an image and answers it, or cancels it as its close button does. While the dialog is open the assistant can only see it and act on it: it does the rest once the dialog is closed.
  • Your mouse pointer. By default the clicks and the keys go straight to the windows of Usine: your pointer does not move, and Usine can stay behind another window. For a window that Usine does not draw itself (a file dialog of the system, the editor of a plug-in) or for a drag and drop (a file of the browser into a patch), the assistant moves the real pointer and clicks through the system: Usine must be in front and the point uncovered, and you should not touch the mouse until it is done. This works on Windows, and for the mouse on macOS once Usine is allowed in System Settings > Privacy & Security > Accessibility.

Automations. The assistant records the automation of a control as you do with the rec Automation switch of the main menu: it turns the switch on, drags the control along the movement to record, then turns the switch off. The duration of its drag gives the length of the curve. It can also write an automation from a list of times and values, without the mouse, read the curve of a control (its points, its duration, whether it plays) or delete it. An automation plays while the audio engine is on and the interface is locked.

Record an automation on the "cutoff" fader of the current patch: a slow rise from the
minimum to the maximum over 4 seconds, then back, in a loop. Check that it plays.

Good to know:

  • The assistant asks you before a click that could change or delete your work, such as a delete, clear, load or save button, a command of the contextual menu or the trash.
  • When a click does not do what was expected, ask the assistant to check the state of Usine: it reads whether a dialog is open, where the keys go, and the lock, learn, rec Automation and help modes.
  • If you move the mouse while the assistant holds a button down, it stops its gesture so as not to mix your movements with its own. When it moves the real pointer, keep your hands off the mouse until it is done.

Messages and questions

The conversation with the assistant stays where it talks to you, but it can also reach you inside Usine, which helps when you work at the instrument rather than in front of the assistant:

  • A message. One line at the top right of the main window for a few seconds, such as Step 2 of 3: the filters are in place, or a message box that you close with OK.
  • A question. A dialog of Usine: yes or no (or OK and Cancel), a text to type, a choice in a list, or the file and folder dialogs of your system to pick a file to load, a place to save or a folder. The assistant only gets the path you picked: it loads or saves with its other tools, and asks first when that would replace your work.

The assistant waits for your answer. Cancel means no: it does not do what it asked about. Without an answer the dialog closes after its time, 2 minutes by default, and the assistant goes on without it or asks you later. Ask it for example:

When the patch is ready, ask me in Usine which waveform I want for the oscillator:
sine, square or saw.

Reading MIDI, OSC, global-arrays and the trace panel

The assistant can read five kinds of messages that go through Usine:

Messages What the assistant reads
MIDI in the messages received from your MIDI devices, with the name of the device
MIDI out the messages Usine sends to the MIDI devices
OSC the OSC messages received and sent, with their address and their values
Global-arrays the global-arrays sent to and received from the other computers of the network, and the arrays that are not found
Trace panel the lines written in the trace panel, such as the Trace of a script module the assistant wrote

It does not follow them as they happen: it reads them when you ask. Work in two steps:

  1. Ask it to listen, for example listen to the MIDI coming in. Usine starts to keep these messages at that moment.
  2. Play, move your controller or send your messages, then ask what it received.

Each message is kept with its time, to the millisecond. The assistant can therefore give the order of the messages, a rhythm or a tempo, and not only their content.

Only what arrives after you asked is kept. If you play first and ask afterwards, the assistant has nothing to read.

Good to know:

  • Usine keeps the last 2000 messages of each kind. On a long take, ask the assistant to read from time to time.
  • It stops keeping them when the assistant has not read them for 10 minutes. Ask it to listen again to restart.
  • You do not have to turn any trace option on. The assistant gets the same lines as the trace MIDI in, trace MIDI out, trace OSC in messages, trace OSC out messages and global-arrays options of the trace panel, whether they are on or not, and nothing is added to the panel.
  • The MIDI clock and the SysEx messages are left out.
  • For a MIDI message sent by Usine, the assistant does not know to which device it goes.
  • For an OSC message sent by an OSC Send module, the assistant gets the address and the types of the values, not the values.
  • For the trace panel, the assistant gets what the panel shows: the Trace of the scripts, the messages of the trace options that are on, and the errors and warnings when the setup shows them in the panel. The messages of the assistant itself (trace MCP messages) are left out.

Reading the log of Usine

Usine writes what it does in a log file: its start-up (version, paths, audio), the workspaces it loads, and every error. The assistant can read this file, the last lines, only the errors, or only what was written since its previous reading. Ask for example what errors did Usine log while loading this workspace?. The requests of the assistant and the answers of Usine, which Usine logs too, are left out.

Usine on another computer

On the Usine computer, turn open MCP to the network on (Setup panel, AI tab) and open the port in its firewall: by default the server answers the programs of its own computer only. Copy the MCP token of the same tab, which Usine creates when you turn the network access on. Then install the bridge on the computer running the assistant with --host <address of the Usine computer> --token <token>. Without the right token Usine refuses the assistant, and the bridge reports Usine refused the connection (401): it needs the token of its AI tab. See the AI tab and the network setup.

Security

By default the server answers the programs of this computer only, and any of them that reaches the port controls Usine. With open MCP to the network, a program of another computer must also send the MCP token of the AI tab (the header Authorization: Bearer <token>, or ?token=<token> in the address), and so must a program of this computer that connects through another address than localhost or 127.0.0.1 (WSL2, a virtual machine, a container): without it the server refuses the connection (error 401) and warns once in the trace panel for each address. A tunnel or a proxy that runs on the Usine computer (ssh -R, ngrok...) brings its clients through localhost, which needs no token: do not open one to the port of the server. Anyone who has the token controls Usine as well: turn this option on only on a network you trust, or keep the port closed in the firewall, give the token only to the assistants you use, and make a new one (new MCP token) when it may have leaked. The token is saved in clear in the setup file of Usine. The server refuses the web pages open in a browser, which could otherwise reach it on your own computer, and warns once in the trace panel for each site that tries. Turn enable MCP off when you do not use it. The assistant can load, save and clear patches, racks and the workspace, change the routing of the racks, write the global-arrays, write script modules, whose code reads and writes files and runs as soon as it compiles, start or stop the audio engine, read the log of Usine, and with its mouse and keyboard tools click and type anything you can in the windows of Usine. Its clicks go straight to Usine by default; for a file dialog, a plug-in editor or a drag and drop it moves your real mouse pointer and types through the system, into the window in front, and stops when another window covers the point or comes in front. Usine refuses by itself the keys that quit, clear, reload or open a file dialog, and the guidelines of the assistant tell it to ask you before a destructive action or a click that could change your work, but keep your work saved.

Examples to try

Start simple, then let the requests grow. The assistant finds the module classes, the port names and the values by itself.

Start from the library instead of an empty patch:

Find in the library a granular effect for a live input. Tell me what it does, load it,
connect its input to Audio In 1-2 and show me its control panel.

A modular synth from the racks of the library:

Load a VCO, a VCF, an envelope and an LFO from the modular racks of the library, wire the
VCO into the VCF, the envelope to the cutoff of the VCF and the LFO to the pitch of the VCO,
then tell me which jacks you used.

A question on Usine itself:

How does polyphony work in Usine? Read the manual and explain it with an example.

A large workspace, searched without reading every patch:

Which patches of this workspace use the global array "scene"? List the scripts that
call WriteToChunk, and the comments that talk about the lights.

A small synth, with a control in the control panel:

Create a patch named "Pad" with a sawtooth oscillator, a low-pass filter (cutoff 1200 Hz,
resonance 0.3), a stereo volume at -6 dB and the audio output. Add a horizontal fader in
the control panel that drives the filter cutoff between 200 and 8000 Hz.

Change an existing patch without redoing it:

In the current patch, insert a stereo delay of 375 ms between the filter and the volume,
mixed at 30%, and add a switch to bypass it.

Understand a patch you did not build:

Describe this patch: list its modules and connections, then explain the signal path in a
few sentences. Tell me which controls are visible in the control panel.

A mixer built in one go:

Build a 4-channel mixer: for each channel an audio input, a volume fader and a mute switch
in the control panel, all summed to a stereo volume and the audio output. Name the modules
"channel 1" to "channel 4".

A script module written and compiled for you:

Write a script module with an array inlet and two data outlets, "minimum" and "maximum",
that outputs the smallest and the largest value of the array each time it changes.
Compile it, connect its inlet to an array display and tell me if it compiled.

Two scripts that share data through a chunk, without a wire between them:

Create a patch with two script modules: the first writes the array received on its
inlet into the item "array" of the chunk "example.chunk" each time it changes, the
second subscribes to that item and outputs the array. Add an array display before
and after, connect everything, and add a comment that explains the patch.

The assistant loads the scripting reference, writes the two scripts with WriteToChunk and SubscribeChunk, places and connects the displays, and checks with the chunk tools that the array goes through. Change the bars of the first display: the second one follows.

A step sequencer, data and timing together:

Make an 8-step sequencer at 120 BPM: a clock advances a step counter in a loop, each step
reads a pitch in semitones from an 8-value array shown in the control panel, and the pitch
drives a sine oscillator going to the audio output. Add a start/stop switch.

Housekeeping and files:

Lay out this patch and check it, fix what the check lists, then save the patch as
C:\Usine\Patches\pad.usine-patch and tell me what you changed.

What a controller sends, read for you:

Listen to the MIDI coming in. I move the eight knobs of my controller one after the
other and I tell you when I am done: give me the channel and the controller number
of each knob.

A phrase played on the keyboard:

Listen to my MIDI keyboard. I play a short phrase and tell you when I am done: give me
the notes, the tempo and how regular my timing is.

When something is wrong:

The output of the module "low pass 1" stays at 0. Read its parameters, check the links
around it and the state of the audio engine, and tell me why.

An OSC message that does not arrive:

My tablet sends OSC to Usine and the fader does not move. Listen to the OSC messages,
I touch the fader on the tablet, then tell me which address and which values Usine
receives.

See also

Tutoriel Usine

version 7.0.250921

Edit All Pages