-
Notifications
You must be signed in to change notification settings - Fork 0
/
markup syntax.txt
60 lines (31 loc) · 1.09 KB
/
markup syntax.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Predefined classes
<INTEGER> ::= a number
<7-BIT> ::= a number, 0-127 inclusive
# Document specification (entry point)
<document> ::= <header-chunk> <track-chunks>
# Header specification
<header-chunk> ::= <HEADER-ID>: <HEADER-SPEC>
<HEADER-SPEC> ::= <format> <ntrks> <division>
<format> ::= <FORMAT-ID>: <FORMAT-SPEC>
<FORMAT-SPEC> ::= sing | mult | seq
<ntrks> ::= <NTRKS-ID>: <NTRKS-SPEC>
<NTRKS-SPEC> ::= <7-BIT>
<division> ::= <DIV-ID>: <DIV-SPEC>
<DIV-SPEC> ::= <7-BIT>
# Track specification
<track-chunks> ::= <track-chunk> <track-chunks> | null
<track-chunk> ::= <TRACK-ID>: <INIT-EVENT> <EVENTS> <META-EOT> (?)
<INIT-EVENT> ::= <ZERO-DT> <EVENT-SPEC>
<EVENTS> ::= <event> <EVENTS> | null
<ZERO-DT> ::= <TICK-ID>: 0
<delta-time> ::= <TICK-ID>: <INTEGER>
# delta time refers to length of previous event.
# Additional types
<ID> ::= <string> | <ID> . <ID>
# Keywords
<HEADER-ID> ::= header
<FORMAT-ID> ::= format
<NTRKS-ID> ::= tracks
<DIV-ID> ::= division
<TRACK-ID> ::= track
<TICK-ID> ::= ticks