You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-6
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ Happy new year
32
32
1
33
33
```
34
34
35
+
More examples are in the `examples/` directory.
36
+
35
37
### Structure
36
38
The input consists several tracks, each track consists several voices, and the voices are sequences of sound notes. Tracks and
37
39
voices are indicated by directives, specifying their names.
@@ -46,13 +48,16 @@ voices are indicated by directives, specifying their names.
46
48
47
49
...
48
50
```
49
-
When a track or voice appears for the first time, they'll be created, and when they appear again later in the input, the content
50
-
will be appended to the existing one. This allows one to seperate a track or voices into several parts, making the input more
51
-
readable.
51
+
Directives are started by `\`, as TeX does. When a track or voice appears for the first time, they'll be created, and when they
52
+
appear again later in the input, the content will be appended to the existing one. This allows one to seperate a track or voices
53
+
into several parts, making the input more readable.
52
54
53
-
For simplicity, the first track of the input and first voices of a track can appear directly, without `\v` or `\track` directive,
54
-
in which case their names will be assigned as `Track 1` and `1` respectively. Thus a single sequence input is legal.
55
+
For simplicity, the beginning directives, i.e. `\track` and `\v`, of the first track of the input and first voices of a track can be omitted, in which case their names will be assigned as `Track 1` and `1` respectively. Thus a single sequence input is legal, as the above examples do.
55
56
56
57
### Note sequences and modifiers
57
58
Basically, the note sequence consists of sound notes and directives. Each notes could be followed by some modifiers, modifying
58
-
their tone and durations.
59
+
their tone and durations. A **note** is a number 0 to 7, where `0` represents musical rest, 1 to 7 corresponds to musical notes
60
+
in diatonic major scale. As numbered musical notation does, the notation uses a movable Do system, in which case the pitch of the
61
+
note `1` is **C4** by default, and can be redefined by directives (see below). With no modifiers, all notes are quater notes.
0 commit comments