-
Notifications
You must be signed in to change notification settings - Fork 11
/
GUISettings.ts
67 lines (57 loc) · 1.16 KB
/
GUISettings.ts
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
61
62
63
64
65
66
67
/**
* Interface for automaton GUI settings.
*/
export interface GUISettings {
/**
* Whether the time snap is activated or not.
*/
snapTimeActive: boolean;
/**
* Interval of time axis snap.
*/
snapTimeInterval: number;
/**
* Whether the value snap is activated or not.
*/
snapValueActive: boolean;
/**
* Interval of value axis snap.
*/
snapValueInterval: number;
/**
* Enable the beat snap.
*/
snapBeatActive: boolean;
/**
* BPM of the beat.
*/
bpm: number;
/**
* Time offset of the beat.
*/
beatOffset: number;
/**
* Use beat instead of time in GUI.
*/
useBeatInGUI: boolean;
/**
* Fractional precision for minimized data, for time axis.
*/
minimizedPrecisionTime: number;
/**
* Fractional precision for minimized data, for value axis.
*/
minimizedPrecisionValue: number;
}
export const defaultGUISettings: Readonly<GUISettings> = {
snapTimeActive: false,
snapTimeInterval: 0.1,
snapValueActive: false,
snapValueInterval: 0.1,
snapBeatActive: false,
bpm: 140.0,
beatOffset: 0.0,
useBeatInGUI: false,
minimizedPrecisionTime: 3,
minimizedPrecisionValue: 3,
};