-
Notifications
You must be signed in to change notification settings - Fork 256
Expand file tree
/
Copy pathRestPosition.ts
More file actions
54 lines (53 loc) · 1.25 KB
/
RestPosition.ts
File metadata and controls
54 lines (53 loc) · 1.25 KB
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
/**
* Defines named vertical positions for rests on a standard 5-line staff,
* expressed as steps in alphaTab's internal coordinate system.
* Use these values with {@link EngravingSettings.restPositionMain} and
* {@link EngravingSettings.restPositionSecondary}.
* @public
*/
/*
* The settings assume a 5 line staff or lower and are adjusted proportionally within ScoreBeatGlypth._createRestGlyphs()
* based upon the renderer.bar.staff.standardNotationLineCount value
*/
export enum RestPosition {
/**
* Bottom line of the staff (line 1 in standard notation).
*/
Line1 = 8.5,
/**
* Space between line 1 and line 2.
*/
Line1Space = 7.5,
/**
* Second line from the bottom.
*/
Line2 = 6.5,
/**
* Space between line 2 and line 3.
*/
Line2Space = 5.5,
/**
* Middle line of the staff.
*/
Line3 = 4.5,
/**
* Space between line 3 and line 4.
*/
Line3Space = 3.5,
/**
* Second line from the top.
*/
Line4 = 2.5,
/**
* Space between line 4 and line 5.
*/
Line4Space = 1.5,
/**
* Top line of the staff (line 5 in standard notation).
*/
Line5 = 0.5,
/**
* Space above the top line.
*/
Line5Space = -0.5
}