Documentation · Structure

assert A == B Assert

Play both sides silently and compare them event for event. It sounds nothing. If they differ, the line is an error that shows the first difference.

  • Two spellings that play the same events are the same music, and an assert is how a document says so.
  • Use it to pin a claim so it stays true while the document changes.

A slice, stated two ways.

running…edit it and it re-runs as you type

c4 d4 e4 f4 g4 a4 b4 c5

Different spellings, the same events.

running…edit it and it re-runs as you type

c4 e4 g4

Pinning what a transform does to a rule.

running…edit it and it re-runs as you type

c4 d4 e4 f4 e4 f4 g4 a4