Chapter 15

MIDI Learn, output and Ableton Link

GeoMusica does not have to keep its music to itself. It can hand the notes your geometry makes to other instruments and programs, and it can agree on a tempo with them so everything runs together. This page covers both: MIDI, which carries the notes, and Ableton Link, which carries the beat. After reading it you will be able to play a synthesiser (hardware or software) from a rotating shape, and keep it in time with somebody else’s laptop.

MIDI is the language musical instruments use to talk to each other. It does not carry sound, only instructions: this note, this loud, starting now, stopping then. That is why it is useful: the same triggers that play GeoMusica’s own instruments can play anything else that speaks MIDI.

MIDI Learn (native Standard and Pro)

Use a hardware knob, fader, pitch wheel or note to control a GeoMusica parameter:

  1. Enable the input port in Settings → MIDI → MIDI Inputs.
  2. Turn on MIDI Learn in the transport.
  3. Click a highlighted parameter, then move the hardware control. For a VST3, open its UI and touch the parameter in the plugin window; drag it slightly if the plugin does not report a touch.
  4. Turn MIDI Learn off, or press Esc, to use the assignments.

The MIDI tab in the Parameter Panel shows one row per assignment. Ch and Control identify the MIDI channel and message; Parameter identifies the destination. Hover over a row for the full device and parameter path. L1 means Layer 1; CH1 means audio channel 1; R1 means return 1; VIS1 and VR1 mean visual strip and return 1.

Drag the compact Min and Max sliders to adjust the mapping limits. Double-click a slider to type an exact value; Enter or leaving the field applies it, and Esc cancels. Each limit is independent, so Min can be above Max for an inverted mapping. Audio gain limits use dB; VST3 limits use normalized 0–1 values. Right-click a row and choose Invert Range to reverse the limits. To remove an assignment, select its row and press Delete/Backspace, or choose Delete from the context menu. When a number field has focus, Delete edits that number.

Assignments are saved in the project and keep controlling their destination when you change the selected layer or close a VST3 editor. Learning the same parameter again replaces its MIDI source and keeps its limits. A disconnected input or unavailable plugin leaves the assignment stored and inactive; a narrow amber mark identifies it, with details in the tooltip.

Supported inputs are absolute 7-bit CC, 14-bit pitch bend, and notes used as gates (press = maximum, release = minimum). Relative encoders, NRPN/RPN, 14-bit CC and MIDI feedback are not supported. VST3 controls must be exposed by the plugin as automatable parameters.

Settings → MIDI → MIDI UI Refresh sets how often GeoMusica’s geometry, GLOBALS, tempo and visual controls display MIDI changes, whether the transport is playing or stopped: 5, 10, 15, 20, 30 or 60 Hz, with 60 Hz as the default. This is saved as an app preference. The overall UI frame-rate setting limits the available display frames; hidden panels and fields being edited catch up when visible or released. MIDI processing keeps its existing rate, and audio mixer controls and plugin editors keep their own refresh paths.

OSC Learn (native Pro)

The OSC tab in the Parameter Panel maps OSC addresses to GeoMusica and VST3 parameters. OSC is available in Pro. The input and output use UDP/IPv4; connection settings are local app preferences, and assignments are saved in the project.

  1. Open Settings → OSC → Settings… (or Settings in the OSC tab). Set the Input port, the controller’s Output IP and its receive Output port, then Connect. Defaults are input 9000 and output 127.0.0.1:9001.
  2. Enable Learn in the OSC tab, click a highlighted parameter and move the external control. For a VST3, open its editor and touch the parameter while Learn is active.
  3. Disable Learn, or press Esc. Learning records the address and numeric type without changing the parameter.

Each row contains Address, Parameter and I/O: In, Out or ↔ for both. Double-click an address to edit it. Select a row and press Delete/Backspace, or right-click and choose Delete, to remove it. Each address maps to one parameter; learning that address for another parameter replaces the previous route.

OSC values use the parameter’s own scale: for example, /radius 350.25 sets a radius of 350.25 Hz, and an audio gain assignment receives and returns dB. VST3 values use normalized 0–1. Continuous parameters preserve the received precision; discrete parameters retain their own steps, and values outside the parameter’s range are limited to that range. Configure the sending object with the corresponding units and range; OSC does not infer those from an address.

Supported messages contain one numeric argument (float32, float64, int32, or OSC T/F), at a concrete address. Immediate OSC bundles are supported. Wildcard addresses, strings, multiple arguments per message and scheduled future bundles are not applied.

Bidirectional assignments return changes made in GeoMusica, through MIDI, by automation or in a VST3 editor, including when that editor is closed. Incoming values are not echoed unchanged to the configured controller; a limited or stepped value can return one correction. Values are compared at the transmitted precision to prevent repeated echoes. A connection sends the current state; Sync sends it again after reconnecting or reloading the controller.

Refresh in OSC Settings shares the MIDI UI refresh preference (5–60 Hz, default 60 Hz). OSC input and return continue with the transport stopped and panels hidden; the global UI frame-rate setting still limits on-screen updates. The OSC OSC button or Settings → OSC → Enabled turns the connection on or off.

MIDI output

GeoMusica can send its triggers out as MIDI, so the same geometry that plays the built-in instruments also plays your hardware or another program.

There are only three things to set, and you will usually touch the third one once and forget it.

Everything lives in Settings → MIDI:

ItemWhat it does
MIDI Output Enabledswitches sending on and off
MTS Modesee MTS tuning
Select MIDI Output…picks the destination. The chosen device’s name is shown in brackets after the item

Try it: open Select MIDI Output… and choose your synthesiser or a virtual port, switch MIDI Output Enabled on and press Space. The other instrument should start playing your shape. If you hear GeoMusica but not it, the destination is the thing to check first.

What goes out

The notes that go out are exactly the triggers that drive the internal instruments: the same events, at the same moments, from the same geometry. Nothing separate has to be armed.

  • Pitch. A trigger’s frequency becomes the nearest MIDI note at or below it.
  • Velocity (how hard the note is struck) comes from the trigger’s velocity, scaled to 1–127. A trigger with no velocity sends nothing at all rather than a silent note.
  • Duration comes from the trigger’s duration: the note-off, the instruction that ends a note, is scheduled that far after the note-on. Velocity and duration are set in the layer’s NOTE card.
  • Channel (MIDI’s sixteen separate lines, so one cable can carry several instruments) follows the layer: layer 1 goes to MIDI channel 1, layer 2 to channel 2, and so on up to channel 15. Layer Link triggers go to channel 16.

If a note is retriggered while the previous one is still sounding, GeoMusica sends the note-off first, so nothing hangs.

MTS: microtonal pitch over MIDI

This is the one genuinely awkward corner of sending GeoMusica out as MIDI, and it is worth understanding before you blame your synthesiser.

GeoMusica’s pitches come from geometry, so they are rarely tempered semitones: they fall in the cracks between the keys of a piano. MIDI note numbers alone cannot carry them: the language only has the keys.

MTS Mode solves this with the MIDI Tuning Standard, an extension of MIDI made for exactly this problem. Before each note-on, GeoMusica sends a real-time single-note tuning message that retunes exactly that note number to the exact frequency the trigger asked for. The receiver then plays it in tune.

This only works with a receiver that implements MTS real-time single-note tuning. Many soft synths do; most hardware does not. If yours does not, the tuning messages are ignored and you hear the plain semitones, still musical, only rounded off to the nearest key.

With MTS Mode off, GeoMusica sends the fractional part of the pitch as polyphonic aftertouch on the same note instead. Whether that means anything depends entirely on what is at the other end; on a receiver that does nothing with poly aftertouch it is harmless.

Tip: if the notes arriving at your synthesiser sound close but slightly wrong, that is the rounding, not a bug. Switch MTS Mode on and try again; if nothing changes, your receiver does not support it.

Link is a small piece of technology, built into a great many music programs, that lets them agree on a tempo over a plain network connection. No cables and no settings: the machines find each other on the network and match, with no one machine in charge. If you have ever synced two laptops with a MIDI clock cable, you will notice how little there is to do.

Link shares tempo and the beat grid with other Link-enabled programs on the same network (Ableton Live, other laptops, phones) without cables or clock.

The controls are in the TIME tab:

  • Ableton Link: joins the session.
  • Start/Stop Sync: when this is on, starting or stopping the transport here starts or stops it on the peers too, and the other way round. A peer is any other program that has joined the same Link session.
  • A status line beside them: Link: off when it is not joined, Link: on - no peers when it is joined but alone, Link: on - 1 peer or Link: on - n peers once other machines appear, and Link: unavailable when this build was compiled without Link, in which case the controls are hidden.

GeoMusica sets the Link phase quantum from the time signature’s numerator, so the peers agree on where the bar begins rather than only on the beat, which is what stops two programs playing in time but a beat apart.

Try it: switch Ableton Link on with another Link program running on the same Wi-Fi. The status line should change from Link: on - no peers to Link: on - 1 peer within a second or two. Change the tempo on either side and watch the other follow.

Playback Authority

GeoMusica has two ways of driving a performance: the Session, where you launch clips by hand, and the Arrangement, where a timeline plays them for you. Both cannot be in charge at once, so you tell it which one is.

Also in the TIME tab, Playback Authority decides which of the two timelines owns the transport:

  • Session: the clip grid drives playback. Launching clips is what starts and changes the music.
  • Arrangement: the timeline drives playback, and clips follow it.

Only one can be in charge at a time, which is why this is a choice and not a pair of switches. Launching a clip in the Session hands authority to the Session; the transport bar’s Back button returns playback priority to the Arrangement.

If you know Ableton Live: it is the same relationship as Session view and Arrangement view, including the way launching a clip takes over and the Back button hands control back.

MIDI input and sync limits

MIDI input and MIDI Learn control parameters in Standard and Pro. OSC input, output and Learn are included in Pro.

Incoming MIDI notes act as parameter gates; they do not play the instruments from a keyboard. GeoMusica does not follow incoming MIDI clock, MMC or MTC. Use Ableton Link for tempo and transport sync, and MIDI output to send notes to other instruments.