Eureka
Inside Eureka · The software

The patches

7 min read1,522 words6 sections

The patch#

What it is. A patch is a small musical app. An exercise, a demonstration, an experiment or a piece of generated music can run on it.

Eureka ships 211 example patches. They range from a Carnatic rhythmic cycle counted aloud to a Javanese gong cycle. One follows a Bach chorale and names its harmony as it plays. Another takes a tune from straight to swung with a single fader. A patch can also be an instrument to explore, an algorithmic work, a visualization, an experiment, an installation or a performance. The founder describes the Playground as open ground: auditory illusions, musical curiosities, generative tools, personal combinations, even things beyond teaching. As for the example patches and practices, AI agents built them under the founder's direction. None of them reaches the beta until he reviews and approves it, and that curation is under way today.

Three example patches: a Carnatic cycle, a Javanese gong cycle and a Bach chorale.
One fader takes a tune from straight to swung while it plays.

Most people use a patch the way Lucía did, through the controls it shows. Anyone who wants to can open the Playground to change a patch or build their own, as Martín could. Whoever builds it, a patch can show itself in two ways. Its presentation is the finished face, and its machine is the boxes and cables underneath.

The same patch on its presentation and on its patch view.

Later, a teacher will be able to turn a patch into a program that runs on its own, outside Eureka, and give it to a student. Further out, the founder imagines a dedicated Eureka device the size of a tablet, one that stays at the musician's side as much as their own instrument does.

The presentation#

What it is. The presentation is the face of a patch. It shows only the controls and views that matter and keeps the machinery out of sight.

Whoever builds a patch picks what the user should see: a dial, a score, a harmony grid, a button to play. The builder moves those parts up to the presentation and leaves the rest underneath. A patch with a presentation opens on it, and a patch without one shows its machine. That is why a patch feels like a finished app. A builder can also give one musical idea several faces. It can have a simple face for a beginner, a fuller one for a class and a stage control for a concert.

The builder removes a control from the presentation and promotes it back.
Three patches on the same subject, each with its own face.

The layout#

What it is. The layout is how a presentation arranges its parts on the screen.

The builder places the parts in boxes split into rows and columns. The layout also offers tabs, panels that fold or fill the screen, layers that open on top, and further screens to move to. The builder can resize, fold, enlarge or remove each box. Each part keeps its own settings, such as whether a score colours its voices. The look of the screen can follow what the music is doing, because a part's colour or size can take its value from a cable. A live trace of a sung pitch and a score can share one screen, so a singer sees their voice against the page.

The three presentation styles: canvas, page and sections.
The builder turns a box into tabs and changes its rows into columns.

Nodes and operations#

What it is. Under its presentation, a patch is a set of boxes that Eureka calls nodes. Each node does one musical thing.

Some nodes show the music on their own face.

Most nodes are operations, the nodes that change music. An operation can transpose a phrase, read a chorale's harmony, build a rhythm, or generate a melodic line in a style. One of them answers which makam a Turkish piece moves in. Rhythm alone shows how wide that range is: Eureka builds the resultant of two pulses, so 3 against 2 gives a cycle of six. It also builds one limb of a cross-rhythm, or a Euclidean rhythm, which spreads a number of strokes as evenly as possible over a number of steps. And it reads a rhythm written as text, such as x.xx. The other nodes show music, as a score, a fretboard or a live pitch trace. Or they take music in, from the microphone, a recording or a touch of the screen. An operation that runs as a node in the Playground is often also a menu command in the Editor. So transposing a phrase works the same in both places. The Playground holds 423 nodes, and 349 of them are operations.

Three rhythms asked from the terminal: two against three, a Euclidean one and one written as text.
Pulling one fader adds strokes, and the patch names the rhythms it passes.

Connections#

What it is. Cables join nodes, and what travels through them is music.

In Lucía's patch, one cable carries the two notes of the chosen interval to the box that plays them. Another cable carries her press of an answer button to the box that checks it. Notes, chords, scales, tempos and pitch readings flow through cables. So do the acts of whoever plays: a press, a choice, a touch. Each node works on what arrives through its cables and hands the result on. Following the cables means following what the music is doing. Each input says what it accepts, so a cable joins only what fits.

The builder drags a cable, and the inputs that fit light up.

The contract#

What it is. The contract is what a patch tells the rest of Eureka about itself: what you can set from outside, and what it reports back.

A patch lists what it accepts from outside, such as a tempo, a key or a number of rounds. Each setting has its kind, its unit, its allowed values, its default and its role. Eureka refuses any value outside those terms. The patch also lists what it gives back: the share of right answers, how many cents a note sat off, or how far a clap landed from the beat. Thanks to the contract, a practice opens its patch already set to the chosen difficulty, and the Log receives through it what the patch measured. In the same way, when a practice asks for a setting its patch cannot take, Eureka refuses and says why.

The Details panel lists what Name the Interval accepts and what it reports.
The terminal refuses a value outside the contract, in the contract's own words.