Timeline

TL;DR

It looks intimidating, but you can do this in the timeline editor.

A timeline lets you preview playback for music with rubato. Each timeline is tied to a particular recording.

Here's the workflow:

  1. Leave "Stable tempo" unchecked in the current analysis metadata.

  2. Click the "Analysis Editor" title on the left and switch to the Timeline Editor.

  3. Fill in the metadata.

  4. Start with the LOOP section. You can import it with the button or edit it yourself. Ordinary repeats and first/second endings can generally be generated automatically.

    1. If you'd like to know what the LOOP section means, read on below.

  5. Play the recording—you can upload a local file—and press Enter to record the time of each event. Repeated passages need timestamps for the same measures more than once, in playback order. Usually, if the LOOP logic is right, playing through once takes you back to the correct events automatically, so there's no need to worry too much about that.

  6. Zoom in or out on the timeline on the right, and drag event positions to fine-tune them.

  7. Save, and you're done.


One recording, one timeline

A timeline (.mstructtime) maps the events of an analysis file to times in one recording.

The analysis file supplies the chord and Roman content.

The timeline supplies recording metadata, an explicit traversal route (LOOP) and timestamps (MAIN).

Timeline associations require a non-stable-tempo analysis.

An analysis with associated timelines must retain its non-stable-tempo setting.

METADATA, LOOP and MAIN

Syntax / fields:

METADATA: ... LOOP: ... MAIN:

A timeline contains METADATA, LOOP and MAIN in that order.

Each section closes with its corresponding END_ marker.

METADATA describes the recording.

LOOP defines jumps between positions in the parent analysis.

An empty LOOP follows the structural source positions in order.

MAIN records timestamps at those positions.

The following example traverses measure 1 twice and measure 2 once.

The parent analysis appears before its timeline.

Examples

{BN:1}{TS:2/4}{D:1/4}{TC:C}
C|I,G|V;C|I,G|V;
METADATA:
{MSTRUCTTIME_NAME}Example recording
{PERFORMER_1}Example performer
{RECORD_YEAR}2026
{MUSIC_LENGTH}0:06
{URL_APPLE_MUSIC}https://music.apple.com/example
{SCORE_URL_1}https://example.org/score
{URL_ADDITIONAL_1:Recording details}https://example.org/recording
END_METADATA

LOOP:
1,2/4,1,1,1/4;
1,2/4,2,2,1/4;
END_LOOP

MAIN:
{BN:1}{TS:2/4}{D:1/4}
[0,1][2000,2],[1000,1][3000,2];
{BN:2}{D:1/4}[4000,1],[5000,1];
END_MAIN

Recording metadata

Syntax / fields:

{MSTRUCTTIME_NAME} / {PERFORMER_n} / {MUSIC_LENGTH}

The recording name ({MSTRUCTTIME_NAME}) is required.

At least one named performer ({PERFORMER_n}) is required.

The file retains up to 100 performers.

The recording duration ({MUSIC_LENGTH}) is required and uses m:ss or h:mm:ss.

A name, performer or album value containing non-ASCII characters requires a corresponding nonempty ASCII romanization field.

The name uses {MSTRUCTTIME_NAME_ROMANIZED}.

Each performer uses {PERFORMER_n_ROMANIZED}.

The album uses {RECORD_ALBUM_ROMANIZED}.

The optional recording year ({RECORD_YEAR}) uses a nonnegative integer string.

The recording album ({RECORD_ALBUM}) is optional.

Each analysis (.mstruct) and each recording timeline (.mstructtime) stores its own independent set of links in METADATA.

Platform links use {URL_NETEASE}, {URL_TME}, {URL_YOUTUBE}, {URL_BILIBILI}, {URL_SPOTIFY} and {URL_APPLE_MUSIC}, followed by the corresponding URL; these fields are optional.

Score links use {SCORE_URL_n} with n from 1 to 9.

Additional links use {URL_ADDITIONAL_n:label} followed by a URL, with n from 1 to 9; the editor requires both the website label and URL.

The older unnumbered input {URL_ADDITIONAL:label} remains readable; saving writes numbered fields.

A timeline without link fields has an empty link set.

On the website, analysis links and the selected timeline's recording links are displayed separately.

LOOP: playback route

LOOP jump instruction

Syntax / fields:

sourceMeasure,sourceBeat,pass,targetMeasure,targetBeat;

Each nonempty LOOP line contains one jump instruction.

The source and target each specify a measure number and a beat coordinate.

The pass is the positive count of visits to that source position.

After the specified visit, traversal jumps to the target position.

A source position with no applicable instruction proceeds to the next structural source position.

Each source-measure, source-beat and pass combination must be unique.

Both coordinates must resolve to positions in the parent analysis.

The route must finish within the traversal step limit.

Examples

1,2/4,1,1,1/4;
1,2/4,2,2,1/4;

Source endpoint versus target start

A source beat p/q identifies a slot end at p/q whole notes after the measure begins.

A target beat p/q identifies a slot start at (p-1)/q whole notes after the measure begins.

Displayed event beats use the same one-based start notation.

Their denominator is a common denominator of the meter (TS) and slot durations (D).

A 4/4 measure can contain two half-note slots.

The second slot starts halfway through the measure, so its target coordinate is 3/4.

It ends at the measure boundary, so its source coordinate is 4/4.

A jump after this slot back to its own start therefore uses source 4/4 and target 3/4.

LOOP end instruction

Syntax / fields:

sourceMeasure,sourceBeat,pass,end;

The four-field end instruction terminates traversal after the specified source visit.

That visit remains the final position in the route.

The last recorded event remains selected until the recording duration (MUSIC_LENGTH) ends.

The word end is case insensitive.

Examples

1,2/4,1,1,1/4;
1,2/4,2,end;

MAIN: timestamps

Timestamp record

Syntax / fields:

[milliseconds,pass] / [,pass]

Recording timestamps are normally entered with the timeline editor.

A timestamp [milliseconds,pass] assigns a recording time to one visit of a source position.

The time uses integer milliseconds from the recording start.

The pass uses a positive integer.

An empty time field, as in [,2], marks an unrecorded visit.

An explicit 0 marks the recording start.

Records for several visits to the same position appear in adjacent brackets.

BN selects the source measure.

Each comma advances the position by D, and each semicolon advances to the next measure.

Examples

{BN:1}{TS:2/4}{D:1/4}
[0,1][2000,2],[1000,1][,2];

Which positions receive rows

Syntax / fields:

START / event / ...

The timeline table begins with an implicit START row at 0 ms.

Musical events and visible ellipses each receive a row.

Empty comma slots extend the preceding event.

A slot containing only settings produces no event row.

An ellipsis has its own measure, start position and pass.

Its timestamp can appear as ...[5000,1] in timeline MAIN.

Recorded times must be nondecreasing along the actual LOOP route.

Several consecutive rows may have equal times.

Unrecorded and residual timestamps

Syntax / fields:

[,1]

Playback keeps the existing highlight while passing an unrecorded event.

The next recorded event receives the highlight at its timestamp.

Residual timestamps are records for visits outside the current route.

The file preserves these records for recovery.

Resetting from a measure clears timestamps in that measure and all later measures, including residual records.

Importing analysis repeats

Repeat import converts a validated analysis route, including its ending choices, into explicit LOOP instructions.

The conversion uses slot ends for sources and slot starts for targets.

The resulting timeline follows the LOOP route.

Repeats with continuous measure numbering (>>) cannot be imported.

Changes to the parent analysis structure require the route coordinates and existing timestamps to be checked again.

Offsets and file association

Syntax / fields:

{MSTRUCTTIME_n}filename.mstructtime

Parent metadata associates timelines through MSTRUCTTIME_n fields.

It retains up to 100 distinct associated filenames.

A generated filename uses the form parent-time-eightcharacters.mstructtime, with a fresh identifier for each new file.

Non-stable playback follows the associated timeline timestamps and adds the user global delay and temporary session offset.

These offsets leave the timestamps stored in the timeline unchanged.

Stable analyses use the BPM route without an associated timeline, adding the user global delay, temporary session offset and analysis file's OFFSET.

The analysis file's OFFSET applies only to stable playback.