@types/gorilla-engine 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gorilla-engine/LICENSE +0 -0
- gorilla-engine/README.md +1 -1
- gorilla-engine/components/AmpEnv.d.ts +1 -1
- gorilla-engine/components/BarStepEditor.d.ts +0 -0
- gorilla-engine/components/ComboBox.d.ts +2 -3
- gorilla-engine/components/DragContainer.d.ts +0 -0
- gorilla-engine/components/DragTarget.d.ts +0 -0
- gorilla-engine/components/DropZone.d.ts +0 -0
- gorilla-engine/components/Knob.d.ts +0 -0
- gorilla-engine/components/Label.d.ts +0 -0
- gorilla-engine/components/LevelMeter.d.ts +0 -0
- gorilla-engine/components/ListBox.d.ts +0 -0
- gorilla-engine/components/LottieAnimation.d.ts +0 -0
- gorilla-engine/components/MidiKeyboard.d.ts +0 -0
- gorilla-engine/components/Pad.d.ts +0 -0
- gorilla-engine/components/ScrollView.d.ts +0 -0
- gorilla-engine/components/SliceEditor.d.ts +97 -97
- gorilla-engine/components/Slider.d.ts +1 -1
- gorilla-engine/components/StepEditor.d.ts +0 -0
- gorilla-engine/components/TextBox.d.ts +2 -2
- gorilla-engine/components/Toggle.d.ts +0 -0
- gorilla-engine/components/Trigger.d.ts +0 -0
- gorilla-engine/components/Waveform.d.ts +53 -53
- gorilla-engine/components/Window.d.ts +0 -0
- gorilla-engine/index.d.ts +257 -254
- gorilla-engine/interfaces/Background.d.ts +0 -0
- gorilla-engine/interfaces/Bounds.d.ts +0 -0
- gorilla-engine/interfaces/Clickable.d.ts +19 -19
- gorilla-engine/interfaces/Common.d.ts +0 -0
- gorilla-engine/interfaces/Component.d.ts +0 -0
- gorilla-engine/interfaces/Font.d.ts +11 -11
- gorilla-engine/interfaces/KeyboardFocus.d.ts +0 -0
- gorilla-engine/interfaces/Scrollable.d.ts +0 -0
- gorilla-engine/interfaces/Skinnable.d.ts +0 -0
- gorilla-engine/package.json +3 -3
gorilla-engine/LICENSE
CHANGED
|
File without changes
|
gorilla-engine/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Gorilla Engine (https://gorilla-engin
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 20 Sep 2023 17:08:03 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `GorillaEngine`
|
|
14
14
|
|
|
File without changes
|
|
@@ -5,18 +5,17 @@ declare namespace GorillaEngine.UI {
|
|
|
5
5
|
right: number;
|
|
6
6
|
bottom: number;
|
|
7
7
|
}
|
|
8
|
-
interface ComboBoxPopupStyles {
|
|
8
|
+
interface ComboBoxPopupStyles extends Font {
|
|
9
9
|
backgroundColor: string;
|
|
10
10
|
itemTextColor: string;
|
|
11
11
|
itemSelectedTextColor: string;
|
|
12
12
|
itemSelectedBackgroundColor: string;
|
|
13
13
|
itemHighlightedTextColor: string;
|
|
14
14
|
itemHighlightedBackgroundColor: string;
|
|
15
|
-
checkmarkFloat:
|
|
15
|
+
checkmarkFloat: "left" | "right";
|
|
16
16
|
cornerRadius: number;
|
|
17
17
|
padding: ComboBoxPadding | number;
|
|
18
18
|
checkmarkPadding: ComboBoxPadding;
|
|
19
|
-
textAlign: string;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
interface ComboBoxProps extends Common, Bounds, Background, Clickable, Font {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
color: string;
|
|
7
|
-
image: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface Modulation {
|
|
11
|
-
legacyCompatibility?: boolean;
|
|
12
|
-
color?: string;
|
|
13
|
-
visible?: boolean;
|
|
14
|
-
active?: boolean;
|
|
15
|
-
resolution?: any;
|
|
16
|
-
tooltip: {
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
text?: string;
|
|
19
|
-
font?: {
|
|
20
|
-
size?: number;
|
|
21
|
-
color: string;
|
|
22
|
-
}
|
|
23
|
-
color: string;
|
|
24
|
-
border: {
|
|
2
|
+
interface SliceStyle {
|
|
3
|
+
y: number;
|
|
25
4
|
width: number;
|
|
5
|
+
height: number;
|
|
26
6
|
color: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
centerLine?: {
|
|
31
|
-
width?: number;
|
|
32
|
-
backgroundColor?: string;
|
|
33
|
-
visible?: boolean;
|
|
34
|
-
};
|
|
35
|
-
values: any;
|
|
36
|
-
centerValue: {
|
|
37
|
-
value?: number;
|
|
38
|
-
backgroundColor?: string;
|
|
39
|
-
visible?: boolean;
|
|
40
|
-
};
|
|
41
|
-
indication?: {
|
|
42
|
-
enabled?: boolean;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
};
|
|
45
|
-
setValues: (values: any) => void;
|
|
46
|
-
}
|
|
47
|
-
interface GridMeasure {
|
|
48
|
-
fractionOfBar: number;
|
|
49
|
-
showLabels?: boolean;
|
|
50
|
-
tickHeight: number;
|
|
51
|
-
font?: { size: number };
|
|
52
|
-
}
|
|
7
|
+
image: string;
|
|
8
|
+
}
|
|
53
9
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
10
|
+
interface Modulation {
|
|
11
|
+
legacyCompatibility?: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
resolution?: any;
|
|
16
|
+
tooltip: {
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
text?: string;
|
|
19
|
+
font?: {
|
|
20
|
+
size?: number;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
color: string;
|
|
24
|
+
border: {
|
|
25
|
+
width: number;
|
|
26
|
+
color: string;
|
|
27
|
+
radius: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
centerLine?: {
|
|
31
|
+
width?: number;
|
|
32
|
+
backgroundColor?: string;
|
|
33
|
+
visible?: boolean;
|
|
34
|
+
};
|
|
35
|
+
values: any;
|
|
36
|
+
centerValue: {
|
|
37
|
+
value?: number;
|
|
38
|
+
backgroundColor?: string;
|
|
39
|
+
visible?: boolean;
|
|
40
|
+
};
|
|
41
|
+
indication?: {
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
backgroundColor?: string;
|
|
44
|
+
};
|
|
45
|
+
setValues: (values: any) => void;
|
|
46
|
+
}
|
|
47
|
+
interface GridMeasure {
|
|
48
|
+
fractionOfBar: number;
|
|
49
|
+
showLabels?: boolean;
|
|
50
|
+
tickHeight: number;
|
|
51
|
+
font?: { size: number };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface SliceEditorProps extends Common, Bounds, Background, Clickable {
|
|
55
|
+
slices: any;
|
|
56
|
+
audioLengthInSamples: number;
|
|
57
|
+
audioLengthInBeats: number;
|
|
58
|
+
minSliceSpacing: number;
|
|
59
|
+
canChangeSlices: boolean;
|
|
60
|
+
canAddSlices: boolean;
|
|
61
|
+
canRemoveSlices: boolean;
|
|
62
|
+
snapSlicesToGrid: boolean;
|
|
63
|
+
zoom: { start: number; end: number };
|
|
64
|
+
addModulation(modulation: Partial<Modulation>): Modulation;
|
|
65
|
+
grid: Partial<{
|
|
66
|
+
position: string;
|
|
67
|
+
height: number;
|
|
68
|
+
minTickSpacing: number;
|
|
69
|
+
minLabelSpacing: number;
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
backgroundColor: string;
|
|
72
|
+
backgroundImage: string;
|
|
73
|
+
measures: GridMeasure[];
|
|
74
|
+
addMeasure(measure: GridMeasure): void;
|
|
75
|
+
}>;
|
|
76
|
+
sliceStyles: Partial<{
|
|
77
|
+
normal: Partial<SliceStyle>;
|
|
78
|
+
hover: Partial<SliceStyle>;
|
|
79
|
+
selected: Partial<SliceStyle>;
|
|
80
|
+
}>;
|
|
81
|
+
selectionAreaStyle: Partial<{
|
|
82
|
+
backgroundColor: string;
|
|
83
|
+
border: Partial<{
|
|
84
|
+
width: number;
|
|
85
|
+
radius: number;
|
|
86
|
+
color: string;
|
|
87
|
+
}>;
|
|
88
|
+
}>;
|
|
89
|
+
addMarker(marker: any): void;
|
|
90
|
+
addSlice(slice: any): void;
|
|
91
|
+
removeSlice(slice: any): void;
|
|
92
|
+
getSlicesForZoneModule(): any[];
|
|
93
|
+
clearSlices(): void;
|
|
94
|
+
setZoom: (start: number, end: number) => void;
|
|
95
|
+
mappedSampleChanged(): void;
|
|
96
|
+
modulations: Modulation[];
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
interface SliceEditor extends SliceEditorProps {}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
class SliceEditor extends Component {
|
|
102
|
+
constructor(options: Partial<SliceEditorProps>);
|
|
103
|
+
}
|
|
104
104
|
}
|
|
File without changes
|
|
@@ -11,13 +11,13 @@ declare namespace GorillaEngine.UI {
|
|
|
11
11
|
passwordCharacter: string;
|
|
12
12
|
multiLine: boolean;
|
|
13
13
|
readOnly: boolean;
|
|
14
|
-
acceptedDataType:
|
|
14
|
+
acceptedDataType: "integer" | "int" | "float" | "string";
|
|
15
15
|
minValue: number;
|
|
16
16
|
maxValue: number;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
interface TextBox extends TextBoxProps {
|
|
20
|
-
|
|
20
|
+
grabKeyboardFocus(): void;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
class TextBox extends Component {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
declare namespace GorillaEngine.UI {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
interface WaveformDragZone {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
x2: number;
|
|
6
|
+
y2: number;
|
|
7
|
+
leftHandleImage: string;
|
|
8
|
+
rightHandleImage: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
overlayColor: string;
|
|
11
|
+
leftHandleWidth: number;
|
|
12
|
+
leftHandleHeight: number;
|
|
13
|
+
rightHandleWidth: number;
|
|
14
|
+
rightHandleHeight: number;
|
|
15
|
+
canResize: boolean;
|
|
16
|
+
canPan: boolean;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
bindings: any;
|
|
19
|
+
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
interface WaveformMarker {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
x2: number;
|
|
26
|
+
y2: number;
|
|
27
|
+
leftHandleImage: string;
|
|
28
|
+
rightHandleImage: string;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
leftHandleWidth: number;
|
|
31
|
+
leftHandleHeight: number;
|
|
32
|
+
rightHandleWidth: number;
|
|
33
|
+
rightHandleHeight: number;
|
|
34
|
+
canResize: boolean;
|
|
35
|
+
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
interface WaveformProps extends Common, Bounds, Background, Font, Clickable {
|
|
38
|
+
waveformColor: string;
|
|
39
|
+
gradientCenterColor: string;
|
|
40
|
+
gradientEndColor: string;
|
|
41
|
+
horizontalAxisColor: string;
|
|
42
|
+
waveformUnavailableText: string;
|
|
43
|
+
waveWidth: number;
|
|
44
|
+
initialXOffset: number;
|
|
45
|
+
waveHorizontalSapcing: number;
|
|
46
|
+
verticalPadding: number;
|
|
47
|
+
fitHeight: boolean;
|
|
48
|
+
paintCenterLine: boolean;
|
|
49
|
+
value: number;
|
|
50
|
+
dragzone: Partial<WaveformDragZone>;
|
|
51
|
+
markers: Partial<WaveformMarker>;
|
|
52
|
+
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
interface Waveform extends WaveformProps {}
|
|
55
|
+
class Waveform extends Component {
|
|
56
|
+
constructor(options: Partial<WaveformProps>);
|
|
57
|
+
}
|
|
58
58
|
}
|
|
File without changes
|
gorilla-engine/index.d.ts
CHANGED
|
@@ -42,287 +42,290 @@
|
|
|
42
42
|
/// <reference path = "components/Window.d.ts" />
|
|
43
43
|
|
|
44
44
|
declare namespace GorillaEngine {
|
|
45
|
-
/**
|
|
46
|
-
* Instrument parameter session persistence
|
|
47
|
-
*/
|
|
48
|
-
interface InstrumentPropertyPersistence {
|
|
49
45
|
/**
|
|
50
|
-
*
|
|
46
|
+
* Instrument parameter session persistence
|
|
51
47
|
*/
|
|
52
|
-
|
|
48
|
+
interface InstrumentPropertyPersistence {
|
|
49
|
+
/**
|
|
50
|
+
* Indicates that the parameter is not exposed to the host DAW, should not saved in a preset and should not be saved in the session.
|
|
51
|
+
*/
|
|
52
|
+
private: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates the the parameter is exposed to the host DAW.
|
|
55
|
+
*/
|
|
56
|
+
showInHost: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates that the parameter should be saved in the session.
|
|
59
|
+
*/
|
|
60
|
+
saveInSession: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates that the parameter should be saved into a preset.
|
|
63
|
+
*/
|
|
64
|
+
saveInPreset: boolean;
|
|
65
|
+
}
|
|
53
66
|
/**
|
|
54
|
-
*
|
|
67
|
+
* Instrument property
|
|
55
68
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly numSteps: number;
|
|
88
|
-
readonly key: string;
|
|
89
|
-
readonly name: string;
|
|
90
|
-
readonly category: string;
|
|
91
|
-
readonly label: string;
|
|
92
|
-
readonly text: string;
|
|
93
|
-
readonly unit: string;
|
|
94
|
-
/**
|
|
95
|
-
* Its steps if it's a stepped paramter
|
|
96
|
-
*/
|
|
97
|
-
readonly steps: string[];
|
|
98
|
-
readonly persistence: InstrumentPropertyPersistence;
|
|
99
|
-
}
|
|
69
|
+
interface InstrumentProperty {
|
|
70
|
+
/**
|
|
71
|
+
* A normalised representation of its value.
|
|
72
|
+
*/
|
|
73
|
+
normValue: number;
|
|
74
|
+
/**
|
|
75
|
+
* Its actual value.
|
|
76
|
+
*/
|
|
77
|
+
value: number;
|
|
78
|
+
normValueAsync: number;
|
|
79
|
+
valueAsync: number;
|
|
80
|
+
readonly defaultValue: number;
|
|
81
|
+
readonly minValue: number;
|
|
82
|
+
readonly maxValue: number;
|
|
83
|
+
readonly resolution: number;
|
|
84
|
+
/**
|
|
85
|
+
* The number of its steps if it's a stepped parameter
|
|
86
|
+
*/
|
|
87
|
+
readonly numSteps: number;
|
|
88
|
+
readonly key: string;
|
|
89
|
+
readonly name: string;
|
|
90
|
+
readonly category: string;
|
|
91
|
+
readonly label: string;
|
|
92
|
+
readonly text: string;
|
|
93
|
+
readonly unit: string;
|
|
94
|
+
/**
|
|
95
|
+
* Its steps if it's a stepped paramter
|
|
96
|
+
*/
|
|
97
|
+
readonly steps: string[];
|
|
98
|
+
readonly persistence: InstrumentPropertyPersistence;
|
|
99
|
+
}
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* Instrument
|
|
103
|
-
*/
|
|
104
|
-
interface Instrument {
|
|
105
|
-
on(propName: string, handler: (normValue: number) => void): void;
|
|
106
|
-
/**
|
|
107
|
-
* Method used to retrieve a serialised module from the Gorilla Engine.
|
|
108
|
-
*
|
|
109
|
-
* @param path The path to the module that should be retrieved.
|
|
110
|
-
* @returns The serialised module found at the given `path` or `false` if nothing was found.
|
|
111
|
-
*/
|
|
112
|
-
getModuleAtPath(path: string): string | boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Method used to determine if a value from the Gorilla Engine is a module.
|
|
115
|
-
*
|
|
116
|
-
* @param path The path to the value that should be determined.
|
|
117
|
-
* @returns `true` if the value found at the given `path` is a module or `false` if it's not or nothing was found.
|
|
118
|
-
*/
|
|
119
|
-
isModuleAtPath(path: string): boolean;
|
|
120
101
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @param path The path to the value that should be retrieved.
|
|
124
|
-
* @returns The value found at the given `path` or `false` if nothing was found.
|
|
102
|
+
* Instrument
|
|
125
103
|
*/
|
|
126
|
-
|
|
104
|
+
interface Instrument {
|
|
105
|
+
on(propName: string, handler: (normValue: number) => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* Method used to retrieve a serialised module from the Gorilla Engine.
|
|
108
|
+
*
|
|
109
|
+
* @param path The path to the module that should be retrieved.
|
|
110
|
+
* @returns The serialised module found at the given `path` or `false` if nothing was found.
|
|
111
|
+
*/
|
|
112
|
+
getModuleAtPath(path: string): string | boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Method used to determine if a value from the Gorilla Engine is a module.
|
|
115
|
+
*
|
|
116
|
+
* @param path The path to the value that should be determined.
|
|
117
|
+
* @returns `true` if the value found at the given `path` is a module or `false` if it's not or nothing was found.
|
|
118
|
+
*/
|
|
119
|
+
isModuleAtPath(path: string): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Method used to retrieve a value from the Gorilla Engine.
|
|
122
|
+
*
|
|
123
|
+
* @param path The path to the value that should be retrieved.
|
|
124
|
+
* @returns The value found at the given `path` or `false` if nothing was found.
|
|
125
|
+
*/
|
|
126
|
+
getValueAtPath(path: string): string | object | number | Int32Array | Float64Array | boolean;
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Method used to set a string at a certain path in the engine.
|
|
130
|
+
* This method could for example be used to set a user sample to a certain Zone in the Gorilla Engine.
|
|
131
|
+
*
|
|
132
|
+
* @param path The path to the string that should be set.
|
|
133
|
+
* @param value The string that should be set at the given `path`.
|
|
134
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
135
|
+
*/
|
|
136
|
+
setStringAtPath(path: string, value: string): boolean;
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Method used to render a section of a sample to a waveform. Commonly used to source the `value` property of the `waveform` control.
|
|
140
|
+
*
|
|
141
|
+
* @param numPoints The number of points that the waveform should be rendered into.
|
|
142
|
+
* @param zoneId The id of the zone whichs sample should be rendered to a waveform.
|
|
143
|
+
* @param start A normalised value indicating from where in the sample waveform rendering should start.
|
|
144
|
+
* @param end A normalised value indicating where in the sample waveform rendering should end.
|
|
145
|
+
* @returns The waveform of the sample found at `zoneId`.
|
|
146
|
+
*/
|
|
147
|
+
getWaveformData(numPoints: number, zoneId: number, start: number, end: number): Uint8Array;
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Method used to retrieve an array of integers from the Gorilla Engine.
|
|
151
|
+
*
|
|
152
|
+
* @param path The path to the array that should be retrieved.
|
|
153
|
+
* @returns The array of integers found at the given `path` or `false` if nothing was found.
|
|
154
|
+
*/
|
|
155
|
+
getIntArrayAtPath(path: string): Int32Array | boolean;
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Method used to set an array of integers at a ceterain path in the Gorilla Engine.
|
|
159
|
+
*
|
|
160
|
+
* @param path The path to the integer array that should be set.
|
|
161
|
+
* @param value The integer array that should be set at the given `path`.
|
|
162
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
163
|
+
*/
|
|
164
|
+
setIntArrayAtPath(
|
|
165
|
+
path: string,
|
|
166
|
+
value: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array,
|
|
167
|
+
): boolean;
|
|
165
168
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Method used to retrieve an array of doubles from the Gorilla Engine.
|
|
171
|
+
*
|
|
172
|
+
* @param path The path to the array that should be retrieved.
|
|
173
|
+
* @returns The array of doubles found at the given `path` or `false` if nothing was found.
|
|
174
|
+
*/
|
|
175
|
+
getDoubleArrayAtPath(path: string): Float64Array | boolean;
|
|
173
176
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Method used to set an array of floats or doubles at a ceterain path in the Gorilla Engine.
|
|
179
|
+
*
|
|
180
|
+
* @param path The path to the double array that should be set.
|
|
181
|
+
* @param value The float or double array that should be set at the given `path`.
|
|
182
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
183
|
+
*/
|
|
184
|
+
setDoubleArrayAtPath(path: string, value: Float32Array | Float64Array): boolean;
|
|
182
185
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
/**
|
|
187
|
+
* Method used to retrieve a double from the Gorilla Engine.
|
|
188
|
+
*
|
|
189
|
+
* @param path The path to the double should be retrieved.
|
|
190
|
+
* @returns The double found at the given `path` or `false` if nothing was found.
|
|
191
|
+
*/
|
|
192
|
+
getDoubleAtPath(path: string): number | boolean;
|
|
190
193
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
/**
|
|
195
|
+
* Method used to set a double at a ceterain path in the Gorilla Engine.
|
|
196
|
+
*
|
|
197
|
+
* @param path The path to the double that should be set.
|
|
198
|
+
* @param value The double that should be set at the given `path`.
|
|
199
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
200
|
+
*/
|
|
201
|
+
setDoubleAtPath(path: string, value: number): boolean;
|
|
199
202
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
/**
|
|
204
|
+
* Method used to set an integer at a ceterain path in the Gorilla Engine.
|
|
205
|
+
*
|
|
206
|
+
* @param path The path to the integer that should be set.
|
|
207
|
+
* @param value The integer that should be set at the given `path`.
|
|
208
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
209
|
+
*/
|
|
210
|
+
setIntAtPath(path: string, value: number): boolean;
|
|
208
211
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Method used to retrieve an integer from the Gorilla Engine.
|
|
214
|
+
*
|
|
215
|
+
* @param path The path to the integer should be retrieved.
|
|
216
|
+
* @returns The integer found at the given `path` or `false` if nothing was found.
|
|
217
|
+
*/
|
|
218
|
+
getIntAtPath(path: string): number | boolean;
|
|
216
219
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Method used to insert a Gorilla Engine module at a given path.
|
|
222
|
+
* Attempting to set a variable-length module array entry greater than the current length of the array
|
|
223
|
+
* will fail (for example, to set `Groups/2` the groups `0` and `1` must exist). Setting a module always inserts
|
|
224
|
+
* the module at the speficied index while other value types overwrite the value at the index.
|
|
225
|
+
* To replace a module at a `path` use {@link Instrument#removeModuleAtPath} prior to inserting the new module.
|
|
226
|
+
*
|
|
227
|
+
* @param path The path at which the module should be inserted.
|
|
228
|
+
* @param value A Gorilla Enginge module serialised to JSON that should be set at the given `path`.
|
|
229
|
+
* @returns `true` if the module has been inserted succcessfully or `false` otherwise.
|
|
230
|
+
*/
|
|
231
|
+
insertModuleAtPath(path: string, value: string): boolean;
|
|
229
232
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
/**
|
|
234
|
+
* Method used to remove a module at a given `path`.
|
|
235
|
+
*
|
|
236
|
+
* @param path The path to the module that should be removed.
|
|
237
|
+
* @returns `true` if the module has been removed succcessfully or `false` otherwise.
|
|
238
|
+
*/
|
|
239
|
+
removeModuleAtPath(path: string): boolean;
|
|
237
240
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
/**
|
|
242
|
+
* Method used to set a normalised double at a ceterain path in the Gorilla Engine.
|
|
243
|
+
*
|
|
244
|
+
* @param path The path to the normalised double that should be set.
|
|
245
|
+
* @param value The normalised double that should be set at the given `path`.
|
|
246
|
+
* @returns `true` if the value has been set succcessfully or `false` otherwise.
|
|
247
|
+
*/
|
|
248
|
+
setNormalisedDoubleAtPath(path: string, value: number): boolean;
|
|
246
249
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
/**
|
|
251
|
+
* Method used to retrieve a normalised double from the Gorilla Engine.
|
|
252
|
+
*
|
|
253
|
+
* @param path The path to the normalised double should be retrieved.
|
|
254
|
+
* @returns The normalised double found at the given `path` or `false` if nothing was found.
|
|
255
|
+
*/
|
|
256
|
+
getNormalisedDoubleAtPath(): number | boolean;
|
|
254
257
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
/**
|
|
259
|
+
* Method used to retrieve MIDI data from the first instrument script that implements `on midi_drag`
|
|
260
|
+
*
|
|
261
|
+
* @returns Array of Midi Events
|
|
262
|
+
*/
|
|
263
|
+
getMidiDragData(): Array<{ status: any; data0: any; data1: any; tickAbsolute: any }>;
|
|
261
264
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Method used to send a `note on` MIDI event to the Gorilla Engine.
|
|
267
|
+
*
|
|
268
|
+
* @param key The musical key that should be triggered. The key is expected to be between `0` and `127`.
|
|
269
|
+
* @param velocity The velocity that the key should be triggerd with. The velocity is expected to be between `0` and `127`.
|
|
270
|
+
*/
|
|
271
|
+
noteOn(key: number, velocity: number): void;
|
|
269
272
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
/**
|
|
274
|
+
* Method used to send a `note off` MIDI event to the Gorilla Engine.
|
|
275
|
+
*
|
|
276
|
+
* @param key The musical key that should be untriggered. The key is expected to be between `0` and `127`.
|
|
277
|
+
*/
|
|
278
|
+
noteOff(ke: number): void;
|
|
276
279
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Method used to stringify a given `value` at a certain `path` in the Gorilla Engine.
|
|
282
|
+
* This is useful to get a label string for parameters in the Gorilla Engine.
|
|
283
|
+
* The value is denormalised according to the scale of the parameter found at `path` and
|
|
284
|
+
* the parameter’s unit is appended to the string accordingly.
|
|
285
|
+
*
|
|
286
|
+
* @param path The path at which the value should be stringified.
|
|
287
|
+
* @param value A value that should be stringified at the given `path`.
|
|
288
|
+
* @returns `false` if the value could not be stringified or the given `value` as a `string`.
|
|
289
|
+
*/
|
|
290
|
+
valueToStringAtPath(path: string, value: number): boolean | string;
|
|
291
|
+
}
|
|
289
292
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
interface Blob {
|
|
294
|
+
loadInstrument(name: string): Instrument;
|
|
295
|
+
getInstrumentNames(): string[];
|
|
296
|
+
}
|
|
294
297
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
interface PreviewPlayer {
|
|
299
|
+
on(eventName: string, callback: any): void;
|
|
300
|
+
}
|
|
298
301
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
302
|
+
function registerUncaughtUIExceptionCallback(handler: (err: Error) => void): void;
|
|
303
|
+
function getResourcePath(): string;
|
|
304
|
+
function getPluginName(): string;
|
|
305
|
+
function getManufacturerName(): string;
|
|
306
|
+
function loadBlob(blobPath: string): Blob;
|
|
307
|
+
function disposeInstrument(instrument: Instrument): void;
|
|
308
|
+
function setActiveInstrument(instrument: Instrument): void;
|
|
309
|
+
function setSessionSaveCallback(callback: any, instance: any): void;
|
|
310
|
+
function setSessionLoadCallback(callback: any, instance: any): void;
|
|
311
|
+
function getBuildInformation(): any;
|
|
312
|
+
function openURLinBrowser(path: string): void;
|
|
313
|
+
function getPluginMM(v: boolean): void;
|
|
314
|
+
function getPluginAE(v: boolean): void;
|
|
315
|
+
function getPreviewPlayer(): PreviewPlayer;
|
|
316
|
+
function openFileChooser(config: {
|
|
317
|
+
allowMultiple?: boolean;
|
|
318
|
+
browseDirectory?: boolean;
|
|
319
|
+
saveDialog?: boolean;
|
|
320
|
+
warnOnOverwrite?: boolean;
|
|
321
|
+
hint?: string;
|
|
322
|
+
allowedExtensions?: string;
|
|
323
|
+
defaultLocation?: string;
|
|
324
|
+
}): void;
|
|
325
|
+
let sessionSaveLoadCallbackTimeoutMs: number;
|
|
323
326
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
327
|
+
namespace UI {
|
|
328
|
+
function loadUIfromYAML(ymlPath: string): void;
|
|
329
|
+
function getControlById(id: string): Component;
|
|
330
|
+
}
|
|
328
331
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -8,24 +8,24 @@ declare namespace GorillaEngine.UI {
|
|
|
8
8
|
mouseExitAction: string;
|
|
9
9
|
clickMask: string;
|
|
10
10
|
mouseCursorType:
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
11
|
+
| "none"
|
|
12
|
+
| "normal"
|
|
13
|
+
| "wait"
|
|
14
|
+
| "IBeam"
|
|
15
|
+
| "cross hair"
|
|
16
|
+
| "copying"
|
|
17
|
+
| "pointing hand"
|
|
18
|
+
| "dragging hand"
|
|
19
|
+
| "left right resize"
|
|
20
|
+
| "up down resize"
|
|
21
|
+
| "up down left right resize"
|
|
22
|
+
| "top edge resize"
|
|
23
|
+
| "bottom edge resize"
|
|
24
|
+
| "left edge resize"
|
|
25
|
+
| "right edge resize"
|
|
26
|
+
| "top left corner resize"
|
|
27
|
+
| "top right corner resize"
|
|
28
|
+
| "bottom left corner resize"
|
|
29
|
+
| "bottom right corner resize";
|
|
30
30
|
}
|
|
31
31
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -5,16 +5,16 @@ declare namespace GorillaEngine.UI {
|
|
|
5
5
|
fontKerning: number;
|
|
6
6
|
textColor: string;
|
|
7
7
|
textAlign:
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
8
|
+
| "centered left"
|
|
9
|
+
| "centered right"
|
|
10
|
+
| "left"
|
|
11
|
+
| "right"
|
|
12
|
+
| "center"
|
|
13
|
+
| "top left"
|
|
14
|
+
| "top right"
|
|
15
|
+
| "top center"
|
|
16
|
+
| "bottom left"
|
|
17
|
+
| "bottom right"
|
|
18
|
+
| "bottom center";
|
|
19
19
|
}
|
|
20
20
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
gorilla-engine/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/gorilla-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "TypeScript definitions for Gorilla Engine",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gorilla-engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
49
|
-
"typeScriptVersion": "4.
|
|
48
|
+
"typesPublisherContentHash": "1aa3f4d68bbb00e2253209f521e251eaac38ae9f43879ed886985b3163c75569",
|
|
49
|
+
"typeScriptVersion": "4.5"
|
|
50
50
|
}
|