Ouroboros
Guide overviewVoice LeadingScripting
ManagerUpdate firmware
ContentsScripting with miti
Scripting with mitiRhythm and timeModifiersArpeggiosVariationScore structureComplete scoreReferenceReading and validating a score
  1. Scripting with miti
  2. Rhythm and time
  3. Modifiers
  4. Arpeggios
  5. Variation
  6. Score structure
  7. Complete score
  8. Reference
  9. Reading and validating a score

Scripting

Write notes, rhythms, and patterns in miti, the musical scripting language I developed. Scripting takes its note count and arpeggios from your score, independently of the module's Notes+ and Arp knobs.

See the module screens →

Audio examplesready
Audio settings
BPM96
Gate78%

Scripting with miti #

Scripting uses miti, a musical scripting language I developed for writing notes and rhythms as text. Start with four note names, then add patterns, arpeggios, or chance as the piece needs them. Ouroboros plays the score and records the resulting audio into loops. Try the examples here, then write your own in Manager’s Score editor. The module quick start shows how to patch the voice you want to record.

The language began with miti v1 and developed into miti v2 in zxcvbn. This guide covers the version used by Ouroboros.

First notes #

By default, a line lasts 96 pulses, or four quarter notes. Put four notes on it and miti divides the time evenly. That is a complete score.

Loading score engine…
0 recorded loops—

Octaves and accidentals #

Add a number to choose the octave. Sharps use # or s; flats use an apostrophe. An octave carries forward, so you only need to write it when it changes.

Loading score engine…
0 recorded loops—

Note clusters #

Write lowercase notes together to make a cluster. Each time Ouroboros reaches that cluster, it plays the next pitch, returning to the first after the last.

Loading score engine…
0 recorded loops—

Chord symbols and iteration #

Uppercase names are chord symbols. Add a note count after a semicolon, then repeat the pattern to step through the chord one note at a time.

Loading score engine…
0 recorded loops—

Rhythm and time #

miti uses 24 pulses per quarter note, the same clock as the module. Set each line's duration, then divide it with notes, rests, ties, and nested groups. Offsets let you rotate the rhythm within a line.

Musical lines #

Each musical line gets a span of time. Put p48 above the music and every following line uses 48 pulses until you change it.

Loading score engine…
0 recorded loops—

Pulses per line #

A p value at the end of a line changes that line and becomes the new default for the lines after it.

Loading score engine…
0 recorded loops—

Pulse expressions #

Pulse counts can use arithmetic. The letters m, h, q, s, and e stand for common musical lengths. For example, 2*m-q means two measures minus one quarter note.

Loading score engine…
0 recorded loops—

Uneven divisions #

A line's pulse count does not have to divide evenly by its note count. miti distributes the remainder among the notes, keeping the total duration intact. Here, three notes share eight pulses.

Loading score engine…
0 recorded loops—

Rests #

A dot is a rest. It takes its share of the line and closes the note before it.

Loading score engine…
0 recorded loops—

Ties #

A dash also takes time, but it holds the preceding note instead of closing or retriggering it.

Loading score engine…
0 recorded loops—

Nested groups and offsets #

Parentheses divide part of a line into smaller groups. Groups can contain other groups, within the score's nesting limit. The o modifier shifts note onsets by a number of pulses, wrapping them around the line.

Loading score engine…
0 recorded loops—

Modifiers #

Modifiers change the note, chord, cluster, or group immediately before them. Use them to set gate length and probability, transposition, and repeats.

Gate and probability #

h sets the gate length as a percentage. q gives an event a chance of sounding each time it is encountered.

Loading score engine…
0 recorded loops—

Chromatic and scale transpose #

Use n to move in chromatic semitones. Use y to move through degrees of the major scale rooted at the scene's tonic, with each degree resolved in the selected tuning. This also works in 19-EDO, 31-EDO and just intonation. For example, in C, c4 y1 reaches the same tuned D as d4. Negative values move down; repeated x events accumulate scale degrees.

Loading score engine…
0 recorded loops—

Retriggering #

x retriggers one event several times. If that event also moves in pitch, the movement accumulates across the retriggers.

Loading score engine…
0 recorded loops—

Inherited group modifiers #

A modifier on a group applies to everything inside it. A note or nested group can override that value with its own modifier.

Loading score engine…
0 recorded loops—

Arpeggios #

An arpeggio plays the notes of a cluster or chord in a chosen order. Set the shape and step count; miti extends the notes across octaves and fits the phrase into the original event.

Basic arpeggios #

r starts an arpeggio phrase. Here, u6 asks for six upward steps through the octave-extended cluster.

Loading score engine…
0 recorded loops—

Counted phrases #

Put shape-and-count segments next to each other to join them into one phrase. This example walks four steps up and four back down.

Loading score engine…
0 recorded loops—

Arpeggio step time #

t fixes the space between arp steps in pulses. If the phrase ends before its source event, the unused tail stays silent instead of stretching the notes.

Loading score engine…
0 recorded loops—

Shape families #

Try convergent, divergent, pinky, and thumb patterns to hear other ways of moving through the notes. Follow each pattern in the loop drawings below.

Loading score engine…
0 recorded loops—

Variation #

Lists and ranges let a value change randomly or in order each time the score reaches it.

Random lists #

Separate values with commas to choose one at random on each encounter. The scene's random seed makes the choices reproducible.

Loading score engine…
0 recorded loops—

Ordered lists #

Separate values with dots to cycle through them in order. Each occurrence in the score keeps its own place in the list.

Loading score engine…
0 recorded loops—

Inclusive ranges #

A:B chooses a value between A and B, including both endpoints. Here, each c4 can move from two semitones down to two semitones up.

Loading score engine…
0 recorded loops—

Score structure #

Name sections of music as patterns, then use a chain to choose their order and repeats.

Comments #

Double slashes turn the rest of a line into a comment. Comments consume no pulses, so you can leave notes for your future self without changing the music.

Loading score engine…
0 recorded loops—

Sample loop #

In Auto mode, sample_loop sets the length of each recording in quarter-note beats. Without it, Ouroboros uses 16 beats. Free mode lets you start and end each take yourself.

Loading score engine…
0 recorded loops—

Patterns #

A pattern contains the musical lines beneath its name. Without a chain, patterns play in the order you define them.

Loading score engine…
0 recorded loops—

Chains #

A chain sets the order of named patterns. Use * to repeat a pattern or a parenthesized group.

Loading score engine…
0 recorded loops—

Complete score #

Combine patterns, rhythms, and modifiers in one score. The example below uses a repeating verse and fill, with variation inside each.

An expanded composition #

The verse and fill repeat. Each cluster and variation list keeps its place between repeats.

Loading score engine…
0 recorded loops—

Reference #

Use these tables to look up modifiers, pulse lengths, arpeggio shapes, and loop behavior.

Putting the vocabulary together #

This pattern combines an arpeggiated cluster with a note that has a 75% chance of playing. The whole group shares a 72% gate length.

Loading score engine…
0 recorded loops—

Modifier shorthand

ModifierMeaningValue
hGate0–100 percent
nChromatic transpose−48…48 semitones
oLine onset rotationinteger pulses
pLine durationpositive pulse expression
qProbability0–100 percent
rCounted arpeggioshape/count segments
tArpeggio step timepositive pulses
xRetrigger count1–32
yScale transpose−127…127 steps

Pulse shorthand

SymbolPulsesDuration
m96four quarter notes
h48half note
q24quarter note
s12eighth note
e6sixteenth note

Arpeggio shapes

CodeShape
u / dup / down
ud / duup-down / down-up
co / diconvergent / divergent
codi / dicoconvergent-divergent / divergent-convergent
pu / pudpinky-up / pinky-up-down
tu / tudthumb-up / thumb-up-down
rdeterministic random permutation

Scores and recorded loops

ConceptControlsGuide behavior
sample_looprecording boundariessets each retained layer length
chainpattern encounter ordercontinues across recording boundaries
runtime statecursors, selectors, probabilitypersists between captures
retained loopsmodule audio layeringshows each distinct phase, up to six

Reading and validating a score #

These rules explain how a score is read, how its state repeats, and how to correct a rejected score. The examples above remain the quickest way to try each feature.

Lines, names and headers #

Newlines matter: each musical line receives its own pulse allocation. Blank lines and comments do not consume time. Start // at the beginning of a line or after whitespace; / within a chord or pulse expression keeps its musical meaning. Lowercase notes and uppercase chord names differ, and directives, modifiers and pattern names are case-sensitive. Pattern names begin with an ASCII letter or underscore, followed by letters, digits or underscores; duplicate names are errors.

Put optional sample_loop, chain and standalone default p declarations before the musical body, at most once each. A chain requires named patterns, and every pattern needs a musical line. Without named patterns, the body is one implicit pattern; without a chain, named patterns play in definition order. A score describes one musical line of activity: it has no instrument, track, mixer or routing declarations. instrument and instruments are reserved errors. Set tuning, routing and effects in the scene instead.

Loading score engine…
0 recorded loops—

Exact subdivisions #

A note cluster, chord, rest, tie or complete group counts as one entity. Modifiers consume no time. A span of N pulses split among K entities places boundary i at ceil(i × N / K). Every pulse belongs to one entity and neighboring durations differ by at most one pulse. Five pulses split three ways therefore last 2, 2 and 1 pulses. Groups apply the same rule recursively; more entities than pulses is an error. Gate and retrigger lengths use these allocated spans, so a dense score must still fit the 24 PPQN clock.

Loading score engine…
0 recorded loops—

Cursors and pattern repetition #

Each written cluster or chord owns its own cursor through its pitches, ordered lowest to highest after tuning and slash-bass resolution. Repeating a named pattern encounters the same cursor; writing another identical chord creates a separate cursor. Pattern, chain and recording boundaries preserve cursors. Starting or explicitly restarting the score resets them. Pattern boundaries close active spans without resetting these choices.

Ties extend the selected pitch and retriggers repeat it. Probability is checked after ordinary pitch selection, so a skipped event still advances its pitch cursor. Explicit r phrases traverse the complete source set and leave that ordinary cursor untouched. In this example, successive pattern repetitions produce C4/C-major's C, then C4/E, then C4/G.

Loading score engine…
0 recorded loops—

Modifier inheritance and variation #

A group passes event modifiers to descendants that do not already specify the same modifier; an explicit child wins. Line modifiers p and o are allowed only at the outer line level and require one deterministic value. Event modifiers h, n, q, t, x and y accept random comma lists, ordered dot lists or ascending inclusive ranges. Do not mix comma and dot selection in one value. Each written modifier owns its own iterator; a restart resets it, while normal recording boundaries preserve it. Random choices use the scene's reproducible seed.

A failed probability check silences the whole event and advances its probability selector, without consuming its other ordered modifier values. Ties resolve before gate: h50 sounds for half the resulting span. Retriggering divides that span before applying gate to each articulation; n/y offsets accumulate on successive retriggers.

Loading score engine…
0 recorded loops—

Counted arpeggio limits #

An r phrase contains 1–16 shape/count segments, each with a literal count from 1–256 and at most 256 steps in total. Counts cannot use lists, ranges or expressions. Each segment starts its own traversal, so adjacent contours may repeat their turnaround pitch. Random shape rr8 makes one reproducible eight-step permutation; separate segments shuffle independently.

With t, every possible selected step duration must fit: total steps × step pulses cannot exceed the event span. A shorter phrase leaves silence afterward. Without t, the exact subdivision rule fills the whole span; there must be at least one pulse per step. Ties extend the span first, probability selects the entire phrase once, then gate applies to each step. t requires r, and r cannot combine with x, including inherited combinations.

Loading score engine…
0 recorded loops—

Correcting a score #

The editor accepts a complete valid score or marks the source ranges that need correction. Check unmatched or empty groups, ties without an active note, ties crossing a group boundary, duplicate modifiers, unknown chords, missing chain names and subdivisions or phrases that need more pulses. Invalid edits leave the last working preview intact until a corrected score is applied.

The module's bounded score supports up to 4,096 source bytes, 16 patterns, 64 lines, eight levels of groups, eight pitches per event and 256 compiled events. An expanded chain has at most 256 pattern encounters. Simplify an oversized score or reuse named patterns instead of duplicating their text. These limits describe storage and compilation; the final pitch/gate delivery still follows the module's physical timing limits.

Loading score engine…
0 recorded loops—

Made by Infinite Digits with Maneco Labs.

Deployed with Disco.

Acknowledgements

All rights reserved.

Instagram

Interactive controls could not load. Retry loading controls.