Eureka
Inside Eureka · The software

What it all stands on

5 min read1,179 words4 sections

The musical model#

What it is. The model is how Eureka understands music, before any screen shows it.

A note has a name and a place in its pitch system. The tuning decides how high that place sounds. Change the tuning, and every note sounds a little different but stays the same note. So a melody keeps its identity in twelve equal notes, in quarter tones or in just intonation. Eureka has 134 pitch systems built this way. Time works in the same spirit, with one rule from the beat on the page to the second of the sound. So the cursor, a recording and the musician's own take agree on where the music is.

One key sounds in twelve equal and in just intonation at once.
One note, three levels: as written, as read and as played.

Music also lives on three levels: as the page writes it, as a player of its tradition reads it, and as a performer plays it. The middle level adds what the tradition hears, such as ornaments and swing. On this ground stand 34 traditions. They range from Carnatic, Hindustani, Arabic maqam, Turkish makam and Javanese gamelan to flamenco, jazz and Western classical music. Each tradition brings its own tunings, modes, cycles and rules. Flamenco's twelve-count cycle, for example, stays whole wherever the page draws its barline. A general model is not a living tradition, though. No specialist has reviewed any of the 34 traditions yet, and Eureka seeks one for each. Playback has its own gaps, and Eureka shows them. When the page asks for a technique that playback cannot voice yet, the note sounds plain, the mark stays drawn, and playback warns about it.

Sound#

What it is. Sound is how Eureka turns the model into something to hear, and how it hears the musician back.

Eureka sounds through four engines: recorded samples, a synthesizer, a modelled reed and pure tones. It describes an instrument by its parts. The description also lists the techniques played on those parts and what plays them: fingers, a bow, the breath, two hands. An instrument without recordings of its own borrows those of an instrument in the same family of the Hornbostel–Sachs classification. A technique nobody recorded falls back to the nearest recorded one, or to the plain sound. A sampled instrument follows a vibrato or a bend as it happens. A written vibrato sounds as a curve of pitch, as wide as the page asks. It turns as many times a second on a short note as on a long one, and it continues through a tied note. Eureka schedules each note slightly ahead on the browser's audio clock. So a short stall of the page never delays or drops a note.

The musician shapes a vibrato and hears it on one long violin note.

A whole band can play a chord progression in any of 45 styles, from son cubano and bossa nova to teental and Mandé drumming. The mix works on three levels. Each part has its own level, pan, mute and solo, and it can switch to another instrument. Each sound box has its own equalizer, compressor and send to a shared reverb. The master has its own equalizer and compressor, and a limiter at the end. Eureka records what plays as a 24-bit WAV file, about 17 MB per minute in stereo, or as a video with its sound.

The musician picks a style for a twelve-bar blues and mixes the band.

The knowledge graph#

What it is. The knowledge graph is everything Eureka knows about music, and how each thing relates to the others.

Its entries are scales, chords, ragas, maqamat, metres, talas, instruments, composers and the concepts that group them. There are 4,630 entries, joined by 23,647 relations. Among the entries are 65 intervals, 65 chords, 165 scales, 34 modes, 19 cadences and 69 progressions. There are also 109 melodic frameworks such as ragas and maqamat, 121 rhythmic systems such as metres and talas, 42 forms, 130 techniques, 100 instruments, 1,024 works and 277 composers. A relation says, for example, which chord fits which scale, or which scale belongs to which raga. Of the 23,647 relations, 12,682 join one musical thing to another. Beyond the entries, the model has 177 concepts, and 155 of them have a definition with its source. The Map draws the graph, and through it Eureka finds the practices for each desire. Eureka's operations also consult the graph when they name a chord or offer a scale. Those operations follow written rules of music theory over the model and the graph. So most answers come with a reason the musician can follow. The exceptions are the few operations that learn a line from examples, such as a bebop line. They give back the line without its explanation.

Rast as the graph holds it: what it uses, what contains it and which practices work on its jins.

Later, a teacher will bring a method book of their own into Eureka. Through the graph, Eureka will find which concept each exercise trains, and it will propose one practice for each exercise. The teacher will then approve, change or drop each practice.

Content#

What it is. Content is the shelf of musical building blocks that every patch, work and practice uses: scales, chords, progressions, pitch systems, tunings and intervals.

The Content screen keeps the building blocks every patch and work uses.

The knowledge graph knows about a scale: its family and what it relates to. Content keeps the scale itself, ready to use and to change. The Library holds whole pieces, while Content keeps the building blocks, both the ones Eureka ships and the musician's own, with one shelf for each kind. There the musician can open a building block, copy it, edit it, retire it or star it. A copy gets its own identity and remembers what it came from. The Content screen also says what uses each building block. A scale or a tuning the musician makes there becomes available to every patch, work and practice that asks for one.

Content lists the eleven documents that use the jins Rast.